quantum gate directory

Gates Groups SDKs GitHub

Group· 11 gates

Permutation Group

Gates that shuffle computational basis states: classical reversible logic inside quantum computing.

Permutation gates do the one thing a classical reversible computer can do: shuffle computational basis states. No superpositions are created from basis states, no phases appear — every entry of the matrix is a $0$ or a $1$. This group is the precise sense in which classical reversible logic sits inside quantum computing.

$$\mathrm{S}_N \cong \left\{ P \in \mathsf{U}(N) \mid P|x\rangle = |\pi(x)\rangle \right\}$$

where $\pi$ ranges over the permutations of $\{0, \ldots, N-1\}$.

For $n$ qubits, $N = 2^n$, and the group is the symmetric group on $2^n$ letters — finite, with $N!$ elements, and a subgroup of the orthogonal group.

Properties

  • The classical logic dictionary: $X$ is NOT, CNOT is XOR, and the Toffoli computes AND. The Toffoli alone (with ancilla bits) generates every permutation — it is universal for classical reversible computation.
  • Basis states map to basis states, so a permutation circuit acting on a basis-state input is simulable by literally running the classical program. All the quantumness comes from superposed inputs: a CNOT applied after a Hadamard entangles precisely because the permutation acts on both branches at once.
  • This is how classical functions enter quantum algorithms: an oracle $|x, y\rangle \mapsto |x, y \oplus f(x)\rangle$ is a permutation gate, queried in superposition.
  • Closed under composition and inverse (a permutation matrix's inverse is its transpose), and every element has finite order.

Relations to other groups

Permutation gates are exactly the gates that are simultaneously real and "phase-free": the intersection of the orthogonal group with matrices of non-negative entries. Signed permutations like $Z$, $\mathrm{C}Z$, or the Margolus gate sit just outside, in the orthogonal group proper.

All groups

  • clifford
  • diagonal
  • matchgate
  • number-preserving
  • orthogonal
  • pauli
  • permutation
  • unitary

Edit this page on GitHub

Gates in this group

In the order of the table on the home page; the colour bar is the gate's family.

1 $X$ Pauli-X n $I$ Identity 2 $\mathrm{C}X$ Controlled Not 3 $\mathrm{CC}X$ Toffoli 3 $\mathrm{CSWAP}$ Fredkin n+1 $\mathrm{C}^nX$ Multi-Controlled X 2 $\mathrm{SWAP}$ SWAP 2 $\mathrm{DC}X$ Double CX 1 $X_d$ Shift 2 $\mathrm{SUM}_d$ Controlled Shift (SUM) n $O_f$ Oracle

On the map

How the permutation group sits among the others: nested regions are subgroups, overlaps are shared gates, and the small labels are one example gate per region.

unitary clifford orthogonal number-preserving diagonal pauli permutation matchgate YXZI HCNOTSWAP ToffoliCSWAPS TCZCCZiSWAP XYfSWAP GivensRy FSimRxRxx

← All groups

gate.directory made by nts $\oplus$ rdls