French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

PassManager

class PassManager(passes=None, max_iteration=1000)[source]

Bases : object

Manager for a set of Passes and their scheduling during transpilation.

Initialize an empty PassManager object (with no passes scheduled).

Paramètres
  • passes (Union[BasePass, List[BasePass]]) – A pass set (as defined in qiskit.transpiler.PassManager.append()) to be added to the pass manager schedule.

  • max_iteration (int) – The maximum number of iterations the schedule will be looped if the condition is not met.

Methods

append

Append a Pass Set to the schedule of passes.

draw

Draw the pass manager.

passes

Return a list structure of the appended passes and its options.

remove

Removes a particular pass in the scheduler.

replace

Replace a particular pass in the scheduler.

run

Run all the passes on the specified circuits.

to_flow_controller

Linearize this manager into a single FlowController, so that it can be nested inside another PassManager.