AddNoopsActiveCircuit¶
- class samplomatic.transpiler.passes.insert_noops.AddNoopsActiveCircuit(*args, **kwargs)[source]¶
Bases:
TransformationPassExpand boxes to any qubit marked as active at any point in the circuit.
This pass leaves non-box operations as-is, but boxes are modified to span the original qubits, original clbits, and any qubits not already included in the original qubits which have been marked as active at any other point in the circuit.
Methods Summary
run(dag)Run a pass on the DAGCircuit.
Methods Documentation
- run(dag: DAGCircuit)[source]¶
Run a pass on the DAGCircuit. This is implemented by the pass developer.
- Parameters:
dag – the dag on which the pass is run.
- Raises:
NotImplementedError – when this is left unimplemented for a pass.