QuantumCircuit.swap

QuantumCircuit.swap(qubit1, qubit2)[source]

Apply SwapGate.