qiskit_addon_cutting.cut_wires¶
- cut_wires(circuit, /)[source]¶
Transform all
CutWire
instructions in a circuit toMove
instructions marked for cutting.The returned circuit will have one newly allocated qubit for every
CutWire
instruction.See Sec. 3 and Appendix A of 2302.03366v1 for more information about the two different representations of wire cuts: single-qubit (
CutWire
) vs. two-qubit (Move
).- Parameters:
circuit (
QuantumCircuit
) – Original circuit withCutWire
instructions- Returns:
New circuit with
CutWire
instructions replaced byMove
instructions wrapped inTwoQubitQPDGate
s- Return type:
circuit