DoWhileController#
- class qiskit.transpiler.DoWhileController(passes, options=None, do_while=None, **partial_controller)[소스]#
기반 클래스:
FlowController
Implements a set of passes in a do-while loop.
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.
- 반환 형식:
- dump_passes()#
Fetches the passes added to this flow controller.
- 반환:
{‘options’: self.options, ‘passes’: [passes], ‘type’: type(self)}
- 반환 형식: