Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.transpiler.preset_passmanagers.plugin.passmanager_stage_plugins

passmanager_stage_plugins(stage)

GitHub

Return a dict with, for each stage name, the class type of the plugin.

This function is useful for getting more information about a plugin:

from qiskit.transpiler.preset_passmanagers.plugin import passmanager_stage_plugins
routing_plugins = passmanager_stage_plugins('routing')
basic_plugin = routing_plugins['basic']
help(basic_plugin)
Help on BasicSwapPassManager in module ...preset_passmanagers.builtin_plugins object:
 
class BasicSwapPassManager(...preset_passmanagers.plugin.PassManagerStagePlugin)
 |  Plugin class for routing stage with :class:`~.BasicSwap`
 |
 |  Method resolution order:
 |      BasicSwapPassManager
 |      ...preset_passmanagers.plugin.PassManagerStagePlugin
 |      abc.ABC
 |      builtins.object
 ...

Parameters

stage (str) – The stage name to get

Returns

the key is the name of the plugin and the value is the class type for each.

Return type

dict

Raises

TranspilerError – If an invalid stage name is specified.

Was this page helpful?
Report a bug or request content on GitHub.