-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update Target to use CalibrationEntry to create inst map #9597
Conversation
InstructionProperties._calibration now only takes CalibrationEntry and use this instance to create an inst map.
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:
|
Pull Request Test Coverage Report for Build 4204268420
💛 - Coveralls |
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.
Overall this fix LGTM, thanks for the speedy fix! Just a couple small comments iinline mostly about the release notes and tests
releasenotes/notes/fix-instmap-from-target-f38962c3fd03e5d3.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2367db6
to
292fabd
Compare
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 the quick updates
* Bug fix for InstructionScheduleMap.has_custom_gate. InstructionProperties._calibration now only takes CalibrationEntry and use this instance to create an inst map. * Fix repr not to call .calibration * Review comment Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Remove getattr --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit ecb6f9a)
* Bug fix for InstructionScheduleMap.has_custom_gate. InstructionProperties._calibration now only takes CalibrationEntry and use this instance to create an inst map. * Fix repr not to call .calibration * Review comment Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Remove getattr --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit ecb6f9a) Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
Summary
This PR fixes a bug that
InstructionScheduleMap.has_custom_gate()
always return True when the inst map is created byTarget.instruction_schedule_map
.In previous implementation,
.get_schedule()
method is called viaInstructionProperties.calibration
, which generates a schedule fromPulseQobjDef
, to create an inst map. In this PR,Target.instruction_schedule_map
is updated to bypassget_schedule
call to keepPulseQobjDef
un-parsed.Fix #9595
Details and comments
InstructionProperties._calibration
is updated to only storeCalibrationEntry
, which was previouslyUnion[CalibrationEntry, Schedule, ScheduleBlock]
.