The swap gate.
cirq_rigetti.quil_input.SWAP(
*qubits, **kwargs
)
This gate will swap two qubits (in any basis).
The unitary matrix of this gate is:
\[ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \]