PassManager.append

PassManager.append(passes, max_iteration=None, **flow_controller_conditions)[source]

Append a Pass Set to the schedule of passes.

Parameters
  • passes (Union[BasePass, List[BasePass]]) – A set of passes (a pass set) to be added to schedule. A pass set is a list of passes that are controlled by the same flow controller. If a single pass is provided, the pass set will only have that pass a single element.

  • max_iteration (Optional[int]) – max number of iterations of passes.

  • flow_controller_conditions (Any) – control flow plugins.

Raises

TranspilerError – if a pass in passes is not a proper pass.

See also

RunningPassManager.add_flow_controller() for more information about the control flow plugins.

Return type

None