circuit_knitting.cutting.cut_wires

cut_wires(circuit, /)[source]

Transform all CutWire instructions in a circuit to Move 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 with CutWire instructions

Returns:

New circuit with CutWire instructions replaced by Move instructions wrapped in TwoQubitQPDGates

Return type:

circuit