qrisp.swap#

swap(qubits_0, qubits_1)[source]#

Applies a SWAP gate.

Parameters:
qubits_0Qubit or list[Qubit] or QuantumVariable

The first Qubit.

qubits_1Qubit or list[Qubit] or QuantumVariable

The second Qubit.