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 06:42, 23 March 2020 (Operation: added). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Representation

The SWAP gate is represented by the 4x4 unitary matrix:

.

The quantum circuit symbol for the SWAP gate is:

SWAP gate symbol

Operation

The application of quantum gates to qubits corresponds to matrix multiplication. Hence, the application of SWAP to the state of a two-qubit quantum register is represented by the matrix multiplaction SWAP. For example, on the computational basis states , , , and :

SWAP=
SWAP=
SWAP=
SWAP=

See also

References