BasePass.run

abstract async BasePass.run(circuit, data)[source]

Perform the pass’s operation on circuit.

Parameters:
  • circuit (Circuit) – The circuit to operate on.

  • data (PassData) – Associated data for the pass. Can be used to get auxillary information from previous passes and to store information for future passes.

Note

  • This function should be self-contained and have no side effects. This is because it will be potentially run in parallel.