samplomatic.transpiler.passes

Transpiler passes

Classes

AbsorbSingleQubitGates(*args, **kwargs)

Absorb all chains of single-qubit gates that are left of a box instruction into the box.

AddInjectNoise(*args, **kwargs)

Inserts InjectNoise annotations to all the unique boxes with twirling annotation.

AddTerminalRightDressedBoxes(*args, **kwargs)

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

GroupGatesIntoBoxes(*args, **kwargs)

Collect the two-qubit gates in a circuit inside left-dressed boxes.

GroupMeasIntoBoxes(*args, **kwargs)

Collect the measurements in a circuit inside boxes.

InlineBoxes(*args, **kwargs)

Inline every box in the input circuit by replacing it with its content.

Submodules