Jump to content

User:Jaydavidmartin/Swap gate

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jaydavidmartin (talk | contribs) at 07:07, 23 March 2020 (moved image and merged sections). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Circuit representation of SWAP gate

The SWAP gate is a two-qubit quantum logic gate that swaps the states of two qubits.

Operation

The SWAP gate operates on a quantum register of two qubits. The SWAP gates swaps the states of the two qubits. For example, on the computational basis states , , , and :

SWAP=
SWAP=
SWAP=
SWAP=

In permutation matrix form, the SWAP gate is represented by the 4x4 unitary matrix:

.

Hence, on a more general arbitrary superposition ,

SWAP =

See also

References