-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix oversights in generate_preset_pass_manager
#12799
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
Conversation
|
releasenotes/notes/add-generate-preset-pm-global-import-efb12f185f3f738b.yaml
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 10075733597Details
💛 - Coveralls |
…e not migrated from transpile to generate_preset_pm with the others.
One or more of the following people are relevant to this code:
|
initial_layout = _parse_initial_layout(initial_layout) | ||
approximation_degree = _parse_approximation_degree(approximation_degree) |
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.
Before this PR, setting a custom initial_layout
or approximation_degree
could lead to different results on generate_preset_pass_manager
vs transpile
, while the rest of inputs would be consistent.
- | | ||
A series of input-handling inconsistencies between :func:`.transpile` and :func:`.generate_preset_pass_manager` | ||
have been fixed. These inconsistencies would lead to different transpilation outputs for the same inputs, | ||
or :func:`.generate_preset_pass_manager` failing for certain input combinations accepted by :func:`.transpile`. |
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.
Most of the inconsistencies were fixed in the previous PR but we didn't have any reno to refer to. Given that there have been issues about these inconsistencies, I think it would be good to mention that they will no longer happen (but we can adjust the wording).
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, this is straightforward enough and inline with the other changes made.
* Fix oversight from Qiskit#12185 where two input parsing functions were not migrated from transpile to generate_preset_pm with the others. * Add fix to reno from Qiskit#12185
Summary
This PR fixes a couple of issues that should have been addressed in #12185. Found while working on #12762 and changes built on top of it (must be rebased).
Details and comments