|q⟩ Bad Qubits

advanced · Physics · Stabilizer Formalism & CSS Codes

Stabilizer States

A remarkable fact underlies the whole formalism: when a stabilizer group has the maximum number of independent generators, it determines a single quantum state completely. Such a state is called a stabilizer state, and it can be specified by its stabilizers alone — no amplitudes required.

The maximal case

On nn qubits, take a stabilizer group SS with nn independent generators g1,,gng_1, \dots, g_n, so S=2n|S| = 2^n. Each generator halves the Hilbert-space dimension, so the simultaneous +1+1 eigenspace has dimension

2nn=1.2^{\,n - n} = 1.

There is exactly one (up to global phase) state ψ|\psi\rangle satisfying giψ=ψg_i|\psi\rangle = |\psi\rangle for all ii. That state is the stabilizer state of SS, and we say SS is its stabilizer group.

Specifying a state by its stabilizers

This gives an economical, basis-independent way to name a quantum state. Instead of listing 2n2^n complex amplitudes, we list nn Pauli generators — just O(n2)O(n^2) bits. Some familiar examples:

| State | Stabilizer generators | | --- | --- | | 0\lvert 0\rangle | ZZ | | 1\lvert 1\rangle | Z-Z | | +\lvert +\rangle | XX | | \lvert -\rangle | X-X | | Bell 12(00+11)\tfrac{1}{\sqrt2}(\lvert 00\rangle + \lvert 11\rangle) | X0X1, Z0Z1X_0 X_1,\ Z_0 Z_1 | | GHZ 12(000+111)\tfrac{1}{\sqrt2}(\lvert 000\rangle + \lvert 111\rangle) | X0X1X2, Z0Z1, Z1Z2X_0 X_1 X_2,\ Z_0 Z_1,\ Z_1 Z_2 |

Notice how the signs matter: ZZ stabilizes 0|0\rangle while Z-Z stabilizes 1|1\rangle. The same Pauli group element with a flipped sign picks out the orthogonal eigenstate.

Reading a state off its generators

Take the GHZ generators {X0X1X2,Z0Z1,Z1Z2}\{X_0X_1X_2,\, Z_0Z_1,\, Z_1Z_2\} and decode them:

The three commuting constraints leave precisely one state — exactly as the dimension count predicted.

How many stabilizer states are there?

The number of distinct nn-qubit stabilizer states is

2nk=1n(2k+1),2^{n} \prod_{k=1}^{n} \left(2^{k} + 1\right),

which grows fast but is vastly smaller than the continuum of all nn-qubit states. For n=1n=1 there are 66 (the eigenstates of XX, YY, ZZ); for n=2n=2 there are 6060. This finiteness is the seed of the Gottesman–Knill theorem we reach later: a discrete state set with structured updates can be tracked classically.

Try it

The GHZ state 12(000+111)\tfrac{1}{\sqrt2}(|000\rangle + |111\rangle) is the unique +1+1 eigenstate of the generators X0X1X2X_0X_1X_2, Z0Z1Z_0Z_1, Z1Z2Z_1Z_2. Build a circuit that prepares it from 000|000\rangle.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.