Skip to main content
KetQat

Appearance

Theorem · intermediate

Dimension of a stabilizer code

A stabilizer group on n qubits with n − k independent generators fixes a subspace of dimension exactly 2^k, and the 2^(n−k) syndrome eigenspaces all have that same dimension and together make up the whole Hilbert space.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let SS be a stabilizer group on nn qubits with independent generators g1,…,gn−kg_1, \dots, g_{n-k}. For each σ∈F2 n−k\sigma \in \F_2^{\,n-k} let

Vσ={ ∣ψ⟩:gj∣ψ⟩=(−1)σj∣ψ⟩  for j=1,…,n−k }.V_\sigma = \bigl\{\, \ket{\psi} : g_j \ket{\psi} = (-1)^{\sigma_j} \ket{\psi} \ \text{ for } j = 1, \dots, n-k \,\bigr\} .

Then dim⁡Vσ=2k\dim V_\sigma = 2^{k} for every σ\sigma, the subspaces VσV_\sigma are mutually orthogonal, and

(C2)⊗n=⨁σ∈F2 n−kVσ.(\C^2)^{\otimes n} = \bigoplus_{\sigma \in \F_2^{\,n-k}} V_\sigma .

In particular the stabilizer code C(S)=V0C(S) = V_0 has dimension 2k2^k and encodes kk qubits, and a Pauli operator EE with syndrome σ(E)\sigma(E) maps V0V_0 unitarily onto Vσ(E)V_{\sigma(E)}. The orthogonal projector onto C(S)C(S) is the stabilizer-code projector.

The statement is in Gottesman and, for the code space, Proposition 10.5 of Nielsen and Chuang.

Holds when

  • S≤PnS \le \mathcal{P}_n is abelian and −I∉S-I \notin S.
  • SS is generated by n−kn - k independent elements g1,…,gn−kg_1, \dots, g_{n-k}, 0≤k≤n0 \le k \le n.

Proof

Proof of the dimension of a stabilizer codeMachine-checked

Put r=n−kr = n - k.

Step 1: the generators are commuting Hermitian involutions. Each gjg_j lies in SS, which does not contain −I-I. An element of Pn\mathcal{P}_n with phase ±i\pm i squares to −I-I, so gj=±P1⊗⋯⊗Png_j = \pm P_1 \otimes \cdots \otimes P_n, which is Hermitian with gj2=Ig_j^2 = I. Hence Πj±=12(I±gj)\Pi_j^{\pm} = \tfrac12 (I \pm g_j) are the projectors onto the ±1\pm 1 eigenspaces of gjg_j, and since the gjg_j commute these projectors commute.

Step 2: the syndrome projectors. The projector onto VσV_\sigma is

Πσ=∏j=1rI+(−1)σjgj2=12r∑x∈F2r(−1)σ⋅x g1x1g2x2⋯grxr.\Pi_\sigma = \prod_{j=1}^{r} \frac{I + (-1)^{\sigma_j} g_j}{2} = \frac{1}{2^{r}} \sum_{x \in \F_2^{r}} (-1)^{\sigma \cdot x}\, g_1^{x_1} g_2^{x_2} \cdots g_r^{x_r} .

For σ≠σ′\sigma \ne \sigma' some factor appears as Πj+\Pi_j^{+} in one product and Πj−\Pi_j^{-} in the other, and Πj+Πj−=0\Pi_j^{+} \Pi_j^{-} = 0, so ΠσΠσ′=0\Pi_\sigma \Pi_{\sigma'} = 0. Summing over σ\sigma, each factor contributes Πj++Πj−=I\Pi_j^{+} + \Pi_j^{-} = I, so ∑σΠσ=I\sum_\sigma \Pi_\sigma = I. This gives the orthogonal direct sum.

Step 3: non-identity products are traceless. Let x≠0x \ne 0 and s=g1x1⋯grxrs = g_1^{x_1} \cdots g_r^{x_r}. Its binary vector is ∑jxjvj\sum_j x_j v_j, where vjv_j is the vector of gjg_j, and this is nonzero because the vjv_j are linearly independent. So s=±P1⊗⋯⊗Pns = \pm P_1 \otimes \cdots \otimes P_n with at least one Pm≠IP_m \ne I, and Tr⁡s=±∏mTr⁡Pm=0\tr s = \pm \prod_m \tr P_m = 0 because Tr⁡X=Tr⁡Y=Tr⁡Z=0\tr X = \tr Y = \tr Z = 0. For x=0x = 0 the product is II, with trace 2n2^n.

Step 4: count. Taking the trace of the expansion in Step 2,

dim⁡Vσ=Tr⁡Πσ=12r 2n=2 n−r=2k.\dim V_\sigma = \tr \Pi_\sigma = \frac{1}{2^{r}}\, 2^{n} = 2^{\,n-r} = 2^{k} .

Step 5: Pauli errors permute the syndrome spaces. If E∈PnE \in \mathcal{P}_n has syndrome σ(E)\sigma(E), then gjE=(−1)σj(E)Egjg_j E = (-1)^{\sigma_j(E)} E g_j, so for ∣ψ⟩∈V0\ket{\psi} \in V_0 we get gjE∣ψ⟩=(−1)σj(E)E∣ψ⟩g_j E \ket{\psi} = (-1)^{\sigma_j(E)} E \ket{\psi}. Thus the unitary EE maps V0V_0 into Vσ(E)V_{\sigma(E)}, and since both have dimension 2k2^k it maps it onto. Every syndrome occurs: by linear independence the map v↦(⟨v,vj⟩s)jv \mapsto (\langle v, v_j \rangle_s)_j from F22n\F_2^{2n} to F2r\F_2^{r} is surjective, so for every σ\sigma there is a Pauli operator with syndrome σ\sigma. This last fact is not needed for the dimension count but confirms that no VσV_\sigma is special.

The dimension 2k2^k is stated in Section 3.2 of Gottesman; the trace computation above is a standard way to prove it. Compare the proof of Proposition 10.5 in Nielsen and Chuang.

Builds on
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Daniel Gottesman (1997). Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology. arXiv:quant-ph/9705052
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Statement re-proved (syndrome projectors, E maps V_0 unitarily onto V_sigma) and checked numerically on the five-qubit code (all 16 syndrome spaces have dimension 2); compared with Gottesman thesis, arXiv quant-ph/9705052, Sec. 3.2 (T has dimension 2^k when S is abelian without -1). Nielsen-Chuang is not openly readable, so its section/theorem numbers were not checked.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 5159eb90587d46f9. Source file knowledge/records/theorem/stabilizer-code-dimension.md in the content repository (readable there once it is public).