-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate legacy pulse builder command #11249
deprecate legacy pulse builder command #11249
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
@nkanazawa1989 , please see if this is good enough :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MozammilQ for opening this PR.
I believe the deprecation message and the release notes should be clearer in conveying the alternative we want the users to use. While it is possible to extract the calibration from the Target
and add it to the ScheduleBlock
, the thing we want them to do is actually to move this logic into the circuit portion of their jobs. So, instead of having pulse.cx
we want them to use circuit.cx
outside of the pulse builder, as part of the circuit.
Thanks Tsafrir. That's good point. I agree we should encourage users to write their program with
should be okey. |
@nkanazawa1989 , please see if this is good enough :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better. Still needs some more careful wording. Some of the docs haven't been adjusted, I will try to highlight them separately.
The example here should be removed. |
@TsafrirA , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecation for circuit_scheduler_settings command is missing. Apart from this, the PR looks good to go.
@nkanazawa1989 , please see if this is good enough :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't carefully check the release note. Here is additional suggestions to make it better.
releasenotes/notes/Deprecate_legacy_pulse_builder_command-2a3c8dcbceae624e.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/Deprecate_legacy_pulse_builder_command-2a3c8dcbceae624e.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/Deprecate_legacy_pulse_builder_command-2a3c8dcbceae624e.yaml
Outdated
Show resolved
Hide resolved
@nkanazawa1989 , please see if this is good enough :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @MozammilQ
Summary
This addresses issue #11152
This PR
Deprecates
qiskit.pulse.builder.call_gate
qiskit.pulse.builder.cx
qiskit.pulse.builder.u1
qiskit.pulse.builder.u2
qiskit.pulse.builder.u3
qiskit.pulse.builder.x
qiskit.pulse.builder.active_transpiler_settings
qiskit.pulse.builder.active_circuit_scheduler_settings
qiskit.pulse.builder.transpiler_settings
arguments
default_transpiler_settings
,and
default_circuit_scheduler_settings
ofqiskit.pulse.builder.build
function.QuantumCircuit
type of thetarget
argument inqiskit.pulse.builder.call
functionModifies:
qiskit.pulse.builder.py
(example code with circuit elements)qiskit.pulse.builder.call
and, modifies related tests in
Details and comments
Refer to Issue: #11152
fixes #11152