-
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
Add stage plugin interface for transpile #8305
Commits on Jul 6, 2022
-
Add stage plugin interface for transpile
This commit adds a new plugin interface to qiskit for enabling external packages to write plugins that will replace a stage in the transpilation pipeline. For example, if an external package had a custom layout pass that they wanted to integrate into transpile() they could export a plugin using this new interface and then users would just need to run transpile(.., layout_method=foo) This adds long asked for extensibility to the transpiler so that to cleanly integrate new transpiler passes we're no longer required to merge the features into terra. This should hopefully make it easier for downstream pass authors to integrate their passes into terra and make it easier for the terra maintainers to evaluate new transpiler passes.
Configuration menu - View commit details
-
Copy full SHA for 16c4ab6 - Browse repository at this point
Copy the full SHA 16c4ab6View commit details
Commits on Jul 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5ec9324 - Browse repository at this point
Copy the full SHA 5ec9324View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eca33c - Browse repository at this point
Copy the full SHA 5eca33cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfeb064 - Browse repository at this point
Copy the full SHA dfeb064View commit details
Commits on Jul 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c1afe2c - Browse repository at this point
Copy the full SHA c1afe2cView commit details -
Make routing methods all plugins
This commit converts all the built-in routing method options into separate plugins and also adds a default plugin for the default behavior at each optimization level. To support using plugins for routing method adding the optimization_level to the passmanager config was necessary so that the plugin has sufficient context on how to construct the routing pass used for the routing stage. As depending on the optimization level the settings for each pass differs. For example on stochastic swap the number of stochastic trials increases for level 3 to try and find a better solution at the cost of more runtime.
Configuration menu - View commit details
-
Copy full SHA for 150c838 - Browse repository at this point
Copy the full SHA 150c838View commit details
Commits on Jul 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d900f8a - Browse repository at this point
Copy the full SHA d900f8aView commit details
Commits on Jul 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2839d5e - Browse repository at this point
Copy the full SHA 2839d5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19df4a0 - Browse repository at this point
Copy the full SHA 19df4a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e11723 - Browse repository at this point
Copy the full SHA 0e11723View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb72d1d - Browse repository at this point
Copy the full SHA fb72d1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ea9949 - Browse repository at this point
Copy the full SHA 4ea9949View commit details -
Configuration menu - View commit details
-
Copy full SHA for e96b120 - Browse repository at this point
Copy the full SHA e96b120View commit details
Commits on Jul 27, 2022
-
Apply suggestions from code review
Co-authored-by: Alexander Ivrii <alexi@il.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for a0054ed - Browse repository at this point
Copy the full SHA a0054edView commit details -
Apply suggestions from code review
Co-authored-by: Alexander Ivrii <alexi@il.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for 0599830 - Browse repository at this point
Copy the full SHA 0599830View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26ae3c4 - Browse repository at this point
Copy the full SHA 26ae3c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62b4f3f - Browse repository at this point
Copy the full SHA 62b4f3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a52f7ed - Browse repository at this point
Copy the full SHA a52f7edView commit details -
Deduplicate code in built-in routing plugins
This commit deduplicates the code in the built-in routing stage plugins. First it removes the default plugin which was duplicated with the stochastic and sabre plugins. There was no functional difference between just setting the implicit default method name and using a per method plugin and having a standalone default plugin. Secondly all the vf2 call limit code is abstracted into a helper function which reduces code duplication.
Configuration menu - View commit details
-
Copy full SHA for 5dec6c8 - Browse repository at this point
Copy the full SHA 5dec6c8View commit details
Commits on Jul 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for adaa169 - Browse repository at this point
Copy the full SHA adaa169View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58f6306 - Browse repository at this point
Copy the full SHA 58f6306View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7963e84 - Browse repository at this point
Copy the full SHA 7963e84View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2d186d - Browse repository at this point
Copy the full SHA b2d186dView commit details -
Update qiskit/transpiler/preset_passmanagers/level1.py
Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for 3c19b4a - Browse repository at this point
Copy the full SHA 3c19b4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c03969 - Browse repository at this point
Copy the full SHA 2c03969View commit details
Commits on Jul 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e0a7d38 - Browse repository at this point
Copy the full SHA e0a7d38View commit details
Commits on Aug 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eca7f38 - Browse repository at this point
Copy the full SHA eca7f38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08a4972 - Browse repository at this point
Copy the full SHA 08a4972View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4190774 - Browse repository at this point
Copy the full SHA 4190774View commit details -
Update qiskit/transpiler/preset_passmanagers/plugin.py
Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for 38931c8 - Browse repository at this point
Copy the full SHA 38931c8View commit details -
Prefer toqm plugin if one is available
The qiskit-toqm project will be one of the first users of this plugin interface. Once this is released in qiskit, qiskit-toqm will likely publish their own plugin soon after and if they do we want that plugin to be used instead of the hardcoded stage in terra. This commit updates the logic for toqm handling to only use the built-in toqm if a version of qiskit-toqm is installed without a plugin present.
Configuration menu - View commit details
-
Copy full SHA for 9b928a0 - Browse repository at this point
Copy the full SHA 9b928a0View commit details
Commits on Aug 4, 2022
-
Apply suggestions from code review
Co-authored-by: Kevin Hartman <kevin@hart.mn> Co-authored-by: Toshinari Itoko <15028342+itoko@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7b67905 - Browse repository at this point
Copy the full SHA 7b67905View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89b6d3b - Browse repository at this point
Copy the full SHA 89b6d3bView commit details
Commits on Aug 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0afc56d - Browse repository at this point
Copy the full SHA 0afc56dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23a2b36 - Browse repository at this point
Copy the full SHA 23a2b36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cb6b20 - Browse repository at this point
Copy the full SHA 6cb6b20View commit details
Commits on Aug 25, 2022
-
Apply suggestions from code review
Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for d756597 - Browse repository at this point
Copy the full SHA d756597View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7120d2d - Browse repository at this point
Copy the full SHA 7120d2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d731d06 - Browse repository at this point
Copy the full SHA d731d06View commit details -
Configuration menu - View commit details
-
Copy full SHA for f185c59 - Browse repository at this point
Copy the full SHA f185c59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d344c0 - Browse repository at this point
Copy the full SHA 6d344c0View commit details
Commits on Aug 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c4816d3 - Browse repository at this point
Copy the full SHA c4816d3View commit details