-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin convenience function for getting the entry point object (#9275)
* plugin convenience function for getting the entry point object * simpler code, thanks to Jake Co-authored-by: Jake Lishman <[email protected]> * typehint and docstring * reno update * thanks Jake * Fix docs build --------- Co-authored-by: Jake Lishman <[email protected]>
- Loading branch information
1 parent
ebf83b6
commit c4f1b0b
Showing
3 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
features: | ||
- | | ||
The function ``passmanager_stage_plugins`` in the module | ||
``qiskit.transpiler.preset_passmanagers.plugin`` was added to obtain a map between | ||
plugin names and their class type. | ||
This allows to identify and query passmanager plugin documentation. For example:: | ||
>>> from qiskit.transpiler.preset_passmanagers.plugin import passmanager_stage_plugins | ||
>>> passmanager_stage_plugins('routing')['lookahead'].__class__ | ||
qiskit.transpiler.preset_passmanagers.builtin_plugins.LookaheadSwapPassManager | ||
>>> help(passmanager_stage_plugins('routing')['lookahead']) | ||
Help on BasicSwapPassManager in module qiskit.transpiler.preset_passmanagers.builtin_plugins object: | ||
class BasicSwapPassManager(qiskit.transpiler.preset_passmanagers.plugin.PassManagerStagePlugin) | ||
| Plugin class for routing stage with :class:`~.BasicSwap` | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters