About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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.