User:Jaydavidmartin/Swap gate
Appearance

The SWAP gate is a two-qubit quantum logic gate that swaps the states of two qubits.
Operation
The SWAP gate is represented by the 4x4 unitary matrix:
- .
The application of quantum gates to qubits corresponds to matrix multiplication. Hence, the application of SWAP to a two-qubit quantum register is denoted by the matrix multiplaction SWAP. For example, on the computational basis states , , , and .