qiskit.transpiler.preset_passmanagers.common.generate_control_flow_options_check
generate_control_flow_options_check(layout_method=None, routing_method=None, translation_method=None, optimization_method=None, scheduling_method=None)
Generate a pass manager that, when run on a DAG that contains control flow, fails with an error message explaining the invalid options, and what could be used instead.
Returns
a pass manager that populates the contains_x
properties for each of the control-flow operations, and raises an error if any of the given options do not support control flow, but a circuit with control flow is given.
Return type
Was this page helpful?
Report a bug or request content on GitHub.