-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove calibrations APIs and related functionality #13861
Conversation
Fix some doc issues
Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
This commit removes pulse-related functionality from GenericBackendV2, as part of Pulse removal in Qiskit 2.0. This includes the ability to initialize the backend with custom calibrations and query it for channel information. Also, various clean ups where made to accommodate for the updated API of GenericBackendV2.
One or more of the following people are relevant to this code:
|
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 for this thorough PR. I have a couple of comments but they are tiny and given the queue of removals I would merge this PR now regardless of them.
# does this run have uncalibrated gates? | ||
uncalibrated_p = not has_cals_p or any(not dag._has_calibration_for(g) for g in old_run) | ||
# does this run have gates not in the image of ._decomposers _and_ uncalibrated? | ||
# does this run have gates not in the image of ._decomposers? |
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.
I find this comment a bit cryptic but probably not the time to pick on it either.
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 the original comment for this execution path. I agree it's cryptic especially since what is .decomposers
. Also agree we should not try to address this here and now.
releasenotes/notes/remove-pulse-calibrations-4486dc101b76ec51.yaml
Outdated
Show resolved
Hide resolved
Thanks @ElePT for the review and comments, all applied. There was a stuck job from yesterday before your review, hopefully this time it'll go through. |
Summary
This PR removes the calibration functionality from everywhere in Qiskit, outside of Pulse itself. This includes things like the
calibrations
property inQuantumCircuit
andDAGCircuit
, andTarget
's support for calibrations. It also removes transitive dependencies on the calibrations functionality, e.g. within passes and the scheduler.Details and comments
The following user-facing parts have been removed (alongside any internal dependencies):
calibration
,has_calibration_for
etc.) fromQuantumCircuit
,DAGCircuit
,Target
,DAGDependency
andInstructionProperties
.inst_map
argument fromgenerate_preset_pass_manager
,transpile
,PassManagerConfig
andTarget.from_configuration
.qiskit.scheduler
module has been removed.This PR is based on changes introduced in: #13814Part of #13662