FlowController#
- class qiskit.transpiler.FlowController(passes, options, **partial_controller)[ソース]#
ベースクラス:
object
Base class for multiple types of working list.
This class is a base class for multiple types of working list. When you iterate on it, it returns the next pass to run.
Attributes
- registered_controllers = {'condition': <class 'qiskit.transpiler.runningpassmanager.ConditionalController'>, 'do_while': <class 'qiskit.transpiler.runningpassmanager.DoWhileController'>}#
Methods
- classmethod add_flow_controller(name, controller)[ソース]#
Adds a flow controller.
- パラメータ:
name (string) – Name of the controller to add.
controller (type(FlowController)) – The class implementing a flow controller.
- classmethod controller_factory(passes, options, **partial_controller)[ソース]#
Constructs a flow controller based on the partially evaluated controller arguments.
- パラメータ:
- 例外:
TranspilerError – When partial_controller is not well-formed.
- 戻り値:
A FlowController instance.
- 戻り値の型: