Skip to main content
IBM Quantum Platform

AddNoopsAll

class samplomatic.transpiler.passes.insert_noops.AddNoopsAll(*args, **kwargs)

GitHub

Bases: TransformationPass

Expand boxes to all qubits contained in a circuit.

This pass leaves non-box operations as-is, but boxes are modified to span all the qubits as defined when initializing the QuantumCircuit object.

Methods Summary

Column 1
Column 2
run(dag)Run a pass on the DAGCircuit.

Methods Documentation

run

run(dag: DAGCircuit)

GitHub

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.

Was this page helpful?
Report a bug, typo, or request content on GitHub.