Skip to main content
IBM Quantum Platform

AddTerminalRightDressedBoxes

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

GitHub

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.

Parameters

  • group – The group to use for the box.
  • decomposition – The decomposition to use for the box.

Methods Summary

Column 1
Column 2
run(dag)Add right-dressed boxes to collect the uncollected leftwards virtual gates emitted.

Methods Documentation

run

run(dag: DAGCircuit) → DAGCircuit

GitHub

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

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