qiskit.transpiler.FlowController.controller_factory¶
-
classmethod
FlowController.
controller_factory
(passes, options, **partial_controller)[source]¶ Constructs a flow controller based on the partially evaluated controller arguments.
- Parameters
passes (list[BasePass]) – passes to add to the flow controller.
options (dict) – PassManager options.
**partial_controller (dict) – Partially evaluated controller arguments in the form {name:partial}
- Raises
TranspilerError – When partial_controller is not well-formed.
- Returns
A FlowController instance.
- Return type