quantum gate directory

Gates Groups SDKs GitHub

Group· 26 gates

Number-Preserving Group

Gates that conserve the number of excitations, moving them around and adjusting phases without creating or destroying any.

Number-preserving (or excitation-preserving) gates conserve the total number of $|1\rangle$s: they never create or destroy excitations, only move them around and adjust phases. Formally, they are the unitaries commuting with the total number operator $\hat{N} = \sum_i (I - Z_i)/2$ — the gates with a global $\mathsf{U}(1)$ symmetry.

$$\mathcal{N}_n := \left\{ U \in \mathsf{U}(2^n) \mid U \hat{N} U^\dag = \hat{N} \right\}$$

Equivalently, $U$ is block-diagonal with respect to Hamming weight: it decomposes as $\bigoplus_{k=0}^{n} U_k$ with $U_k$ acting on the $\binom{n}{k}$-dimensional weight-$k$ sector.

Properties

  • The whole diagonal group is contained here: a gate that fixes every basis state certainly fixes its Hamming weight. The interesting members are the ones that move excitations — SWAP, iSWAP, the XY interaction, Givens rotations, FSim.
  • On two qubits, a number-preserving gate is a phase on $|00\rangle$, a phase on $|11\rangle$, and an arbitrary $\mathsf{U}(2)$ rotation of the single-excitation subspace — exactly the FSim family and its relatives. The contrast case is the $XX - YY$ interaction, which coherently converts $|00\rangle \leftrightarrow |11\rangle$ and breaks the symmetry.

Why it matters

  • Chemistry and fermions. Molecular Hamiltonians conserve electron number, so chemistry ansätze are built from number-preserving blocks: ladders of Givens rotations tiled across a register can prepare any state of fixed particle number.
  • Hardware. Energy-conserving interactions (exchange couplings, beam splitters) are natively number-preserving, which is why the iSWAP/FSim families are what superconducting hardware actually implements.
  • Error mitigation. If a circuit should conserve $\hat{N}$, measuring the total excitation number and discarding violating shots (symmetry verification) catches any error that changes the weight — bit flips in particular.

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 $Z$ Pauli-Z n $I$ Identity 1 $S$ Phase 1 $T$ T 1 1 $R_z$ z Rotation 1 1 $P$ Phase Shift 2 1 $R_{zz}$ zz Rotation 2 1 $\mathrm{C}R_z$ Controlled z Rotation 2 $\mathrm{C}Z$ Controlled-Z 2 1 $\mathrm{C}P$ Controlled Phase 2 $\mathrm{C}S$ Controlled-S 3 $\mathrm{CC}Z$ Controlled-CZ 3 $\mathrm{CSWAP}$ Fredkin 2 $\mathrm{SWAP}$ SWAP 2 $i\mathrm{SWAP}$ iSWAP 2 $\sqrt{\mathrm{SWAP}}$ Square Root SWAP 2 $\sqrt{i\mathrm{SWAP}}$ Square Root iSWAP 2 $\mathrm{fSWAP}$ fSWAP 2 $\mathrm{SYC}$ Sycamore 2 1 $\mathrm{XY}$ XY Interaction 2 2 $\mathrm{FSim}$ Fermionic Simulator 2 1 $G_{ij}$ Givens Rotation 1 $Z_d$ Clock 2 $\mathrm{C}Z_d$ Controlled Clock n 1 $\mathrm{Ph}$ Global Phase n $O_f^\pm$ Phase Oracle

On the map

How the number-preserving 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