AddTerminalRightDressedBoxes

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

Bases: TransformationPass

Add right-dressed boxes to collect uncollected virtual gates emitted by left-dressed boxes.

Note

All boxes added by this pass are empty, so consider combining this pass with AbsorbSingleQubitGates if you would like nearby single-qubit gates to be placed into the boxes this pass adds.

Methods Summary

run(dag)

Add right-dressed boxes to collect the uncollected leftwards virtual gates emitted.

Methods Documentation

run(dag: DAGCircuit) DAGCircuit[source]

Add right-dressed boxes to collect the uncollected leftwards virtual gates emitted.