qrisp.QuantumCircuit.swap#

QuantumCircuit.swap(qubits_0, qubits_1)[source]#

Instruct a SWAP-gate.

Parameters:
qubits_0Qubit

The qubit to swap.

qubits_1Qubit

The other qubit to swap.