quantum gate directory

Gates Groups SDKs GitHub

Group· 25 gates

Orthogonal Group

The real unitaries. Circuits built from them keep every amplitude real, and that costs surprisingly little.

The orthogonal group consists of the real unitaries — gates whose matrices have no imaginary entries. Real gates compose to real gates, so circuits built from them keep all amplitudes real, and a surprising amount of quantum computing happens entirely inside this group.

$$ \begin{aligned} \mathsf{O}(n) &:= \left\{ O \in \mathrm{GL}(n, \mathbb{R}) \mid O^{\mathsf{T}} O = I \right\} \\ &= \mathsf{U}(n) \cap \mathrm{GL}(n, \mathbb{R}) \end{aligned} $$

Properties

  • Every orthogonal matrix has $\det O = \pm 1$. The $+1$ component $\mathsf{SO}(n)$ contains the rotations, such as $R_y(\theta)$ and Givens rotations; determinant $-1$ elements are reflections, such as the Grover diffuser.
  • Orthogonal gates are exactly the gates invariant under complex conjugation — quantum operations indistinguishable from their own "time-reversed-frame" copies.
  • Permutation matrices form a finite subgroup: $X$, CNOT, Toffoli, SWAP, and the qudit shift all just shuffle basis states. All of classical reversible logic lives here.

Why real amplitudes suffice

Restricting to real amplitudes costs almost nothing: a single extra qubit can carry the role of the imaginary unit, and real gates on $n+1$ qubits then simulate arbitrary complex circuits on $n$ qubits (Rudolph and Grover showed a single two-qubit real gate suffices for universality). Many textbook algorithms — Grover search among them — never produce a complex amplitude in the first place.

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 1 $Z$ Pauli-Z n $I$ Identity 1 $H$ Hadamard 1 $G$ unnamed 1 1 $R_y$ y Rotation 2 1 $\mathrm{C}R_y$ Controlled y Rotation 2 $\mathrm{C}X$ Controlled Not 2 $\mathrm{C}Z$ Controlled-Z 2 $\mathrm{C}H$ Controlled-Hadamard 3 $\mathrm{CC}X$ Toffoli 3 $\mathrm{CC}Z$ Controlled-CZ 3 $\mathrm{CSWAP}$ Fredkin n+1 $\mathrm{C}^nX$ Multi-Controlled X 3 $\mathrm{RCC}X$ Margolus 2 $\mathrm{SWAP}$ SWAP 2 $\mathrm{fSWAP}$ fSWAP 2 $\mathrm{DC}X$ Double CX 2 1 $G_{ij}$ Givens Rotation 1 $X_d$ Shift 2 $\mathrm{SUM}_d$ Controlled Shift (SUM) n $O_f$ Oracle n $O_f^\pm$ Phase Oracle n $U_s$ Grover Diffuser 2 $B^{(2)}_i$ Virtual Distillation

On the map

How the orthogonal 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