SWAP gate (source code)

= SWAP gate
{c}

The SWAP gate maps $|x\rangle|y\rangle$ to $|y\rangle|x\rangle$.