-
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
Migrate translation stage to plugins #10621
Conversation
This commit updates the preset pass manager construction to only use plugins for the translation stage. To accomplish this the previously hard coded built-in translation methods, unroller, translator, and synthesis are migrated to be exposed as built-in plugins. This simplifies the preset pass manager construction as now the translation stage is solely built via plugins. Fixes Qiskit#9456
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 5857576511
💛 - 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.
This looks sensible and straightforwards to me. Do we have a policy for documenting what plugin names we register as internal to the library (e.g. release note, public docs, etc)?
It is documented here: https://qiskit.org/documentation/apidoc/transpiler_plugins.html#plugin-stages the names here are already covered there which is why I didn't do a release note. I added a release note for the |
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.
Ah nice, thanks - I didn't realise that we'd already reserved the names. Good forward thinking!
This commit changes the plugin construction logic slightly to adjust how the embedded translation stage is created. After Qiskit#10621 merged we only need to use the plugin interface to get the translation stage pass manager.
* Initial: Optimization stage as a plugin. * CI: Added fix to preset_passmanager test * Simplify inner translation stage creation logic This commit changes the plugin construction logic slightly to adjust how the embedded translation stage is created. After #10621 merged we only need to use the plugin interface to get the translation stage pass manager. * Update documentation --------- Co-authored-by: Matthew Treinish <[email protected]>
This commit updates the preset pass manager construction to only use plugins for the translation stage. To accomplish this the previously hard coded built-in translation methods, unroller, translator, and synthesis are migrated to be exposed as built-in plugins. This simplifies the preset pass manager construction as now the translation stage is solely built via plugins. Fixes Qiskit#9456
* Initial: Optimization stage as a plugin. * CI: Added fix to preset_passmanager test * Simplify inner translation stage creation logic This commit changes the plugin construction logic slightly to adjust how the embedded translation stage is created. After Qiskit#10621 merged we only need to use the plugin interface to get the translation stage pass manager. * Update documentation --------- Co-authored-by: Matthew Treinish <[email protected]>
Summary
This commit updates the preset pass manager construction to only use plugins for the translation stage. To accomplish this the previously hard coded built-in translation methods, unroller, translator, and synthesis are migrated to be exposed as built-in plugins. This simplifies the preset pass manager construction as now the translation stage is solely built via plugins.
Details and comments
Fixes #9456