AddNoopsActiveAccum

class samplomatic.transpiler.passes.insert_noops.AddNoopsActiveAccum(*args, **kwargs)[source]

Bases: TransformationPass

Expand each box to any qubits that have been marked as active so far in the circuit.

This pass leaves non-box operations as-is, but boxes are modified to span any qubits that are part of a previous box.

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.