Circuit.perform

Circuit.perform(compiler_pass, data=None)[source]

Execute the provided compiler_pass on this circuit.

This function is necessary since BQSKit Pass objects cannot have their run() function directly called on a circuit.

Parameters:
  • compiler_pass (BasePass) – The BQSKit pass to perform on this circuit.

  • data (dict[str, Any] | None) – Optionally provide additional pass data to the compiler pass.

Note

You cannot perform a pass using this method while a local Compiler object is live. Rather, you should use the Compiler directly.