Skip to main content
KetQat

Appearance

Theorem · advanced

Stabilizer codes are self-orthogonal additive codes over GF(4)

Labelling the Pauli matrices I, X, Z, Y by the four elements of GF(4) turns commutation into a trace inner product. Qubit stabilizer codes then correspond to additive codes over GF(4) contained in their duals, and linear codes containing their Hermitian duals give quantum codes directly.

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.

Define ϕ:F22n→F4n\phi : \F_2^{2n} \to \F_4^n by ϕ(a∣b)=a+ω b\phi(a \mid b) = a + \omega\, b. On a single qubit this labels the Pauli matrices as I↦0, X↦1, Z↦ω, Y↦ωˉI \mapsto 0,\ X \mapsto 1,\ Z \mapsto \omega,\ Y \mapsto \bar\omega.

  1. Dictionary. ϕ\phi is an isomorphism of F2\F_2-vector spaces. It carries the symplectic weight to the Hamming weight and the symplectic inner product to the trace-Hermitian inner product: ⟨u,v⟩s=⟨ϕ(u),ϕ(v)⟩tr\langle u, v \rangle_s = \langle \phi(u), \phi(v) \rangle_{\mathrm{tr}}.
  2. Stabilizer codes. Let SS be the stabilizer of an [[n,k,d]][[n, k, d]] stabilizer code, k≥1k \ge 1, and C⊆F4nC \subseteq \F_4^n the image under ϕ\phi of its binary representation. Then CC is an additive code with 2 n−k2^{\,n-k} elements, C⊆C⊥trC \subseteq C^{\perp_{\mathrm{tr}}}, the normalizer of SS corresponds to C⊥trC^{\perp_{\mathrm{tr}}}, which has 2 n+k2^{\,n+k} elements, and
d  =  min⁡{ wt⁡(v)  :  v∈C⊥tr∖C }.d \;=\; \min \bigl\{\, \operatorname{wt}(v) \;:\; v \in C^{\perp_{\mathrm{tr}}} \setminus C \,\bigr\} .

Conversely every additive code C⊆C⊥trC \subseteq C^{\perp_{\mathrm{tr}}} with 2 n−k2^{\,n-k} elements arises in this way from a stabilizer group, unique up to the signs of its generators. 3. Linear codes. If CC is F4\F_4-linear, then C⊥tr=C⊥hC^{\perp_{\mathrm{tr}}} = C^{\perp_h}, the Hermitian dual. Hence a linear [n,k′,d′]4[n, k', d']_4 code DD with D⊥h⊆DD^{\perp_h} \subseteq D yields an [[ n,  2k′−n,  d ]][[\,n,\; 2k' - n,\; d\,]] stabilizer code with d=min⁡wt⁡(D∖D⊥h)≥d′d = \min \operatorname{wt}(D \setminus D^{\perp_h}) \ge d', provided 2k′>n2k' > n.

This is the formulation of Calderbank, Rains, Shor and Sloane. Any of the six bijections between {X,Y,Z}\{X, Y, Z\} and the nonzero elements of F4\F_4 would serve in item 1, because the trace-Hermitian form only records whether two symbols are distinct and nonzero. The labelling above is one common convention; the literature is not uniform, so check the convention before comparing generator matrices.

Holds when

  • Qubit stabilizer codes with k≥1k \ge 1 logical qubits; the distance statement uses the characterisation of the distance by the normalizer.
  • F4={0,1,ω,ωˉ}\F_4 = \{0, 1, \omega, \bar\omega\} with ωˉ=ω2=ω+1\bar\omega = \omega^2 = \omega + 1, and the trace-Hermitian form ⟨u,v⟩tr=Tr⁡∑iuivˉi\langle u, v \rangle_{\mathrm{tr}} = \tr \sum_i u_i \bar v_i.

Proof

Proof of the correspondence between stabilizer codes and additive codes over GF(4)Machine-checked

1. Dictionary. Since {1,ω}\{1, \omega\} is a basis of F4\F_4 over F2\F_2, the map (a∣b)↦a+ωb(a \mid b) \mapsto a + \omega b is an F2\F_2-linear bijection, and its ii-th coordinate ai+ωbia_i + \omega b_i is nonzero exactly when (ai,bi)≠(0,0)(a_i, b_i) \ne (0,0), so weights correspond. Both forms are sums over coordinates, so it suffices to compare them for n=1n = 1. With a,b,a′,b′∈F2a, b, a', b' \in \F_2, using ωˉ=ω2\bar\omega = \omega^2 and ωωˉ=1\omega \bar\omega = 1,

(a+ωb) (a′+ωb′)‾=(a+ωb)(a′+ωˉb′)=aa′+bb′+ωˉ ab′+ω a′b.(a + \omega b)\, \overline{(a' + \omega b')} = (a + \omega b)(a' + \bar\omega b') = a a' + b b' + \bar\omega\, a b' + \omega\, a' b .

Taking the trace, with Tr⁡(1)=0\tr(1) = 0 and Tr⁡(ω)=Tr⁡(ωˉ)=1\tr(\omega) = \tr(\bar\omega) = 1, gives ab′+a′ba b' + a' b, the symplectic product of (a∣b)(a \mid b) and (a′∣b′)(a' \mid b').

2. Stabilizer codes. The binary representation of SS is an isotropic subspace W⊆F22nW \subseteq \F_2^{2n} of dimension n−kn - k: it is a subspace because the representation is a homomorphism, it has 2n−k2^{n-k} elements because the only scalar in SS is the identity, and it is isotropic because SS is abelian and commutation is measured by the symplectic form. By item 1, C=ϕ(W)C = \phi(W) is additive with 2n−k2^{n-k} elements and C⊆C⊥trC \subseteq C^{\perp_{\mathrm{tr}}}. A Pauli operator commutes with all of SS exactly when its vector lies in W⊥sW^{\perp_s}, so the normalizer corresponds to ϕ(W⊥s)=C⊥tr\phi(W^{\perp_s}) = C^{\perp_{\mathrm{tr}}}, of size 22n−(n−k)2^{2n - (n-k)}. The distance of the code is the least weight of a Pauli operator in the normalizer that is not, up to phase, in SS (distance of a stabilizer code), which translates to the displayed formula.

Conversely, given CC, let W=ϕ−1(C)W = \phi^{-1}(C), choose a basis w1,…,wn−kw_1, \dots, w_{n-k} of WW and let gjg_j be either of the two Hermitian Pauli operators with vector wjw_j. The gjg_j commute because WW is isotropic. A product of a nonempty subset of them has a nonzero vector, hence is not ±I\pm I; so the group they generate does not contain −I-I and is a stabilizer group with n−kn - k independent generators. Different sign choices give the 2n−k2^{n-k} groups whose code spaces are the joint eigenspaces of g1,…,gn−kg_1, \dots, g_{n-k}.

3. Linear codes. Let CC be F4\F_4-linear. The inclusion C⊥h⊆C⊥trC^{\perp_h} \subseteq C^{\perp_{\mathrm{tr}}} holds because Tr⁡(0)=0\tr(0) = 0. For the reverse, let v∈C⊥trv \in C^{\perp_{\mathrm{tr}}} and u∈Cu \in C, and put x=⟨u,v⟩hx = \langle u, v \rangle_h. Then Tr⁡(x)=0\tr(x) = 0, and since ωu∈C\omega u \in C also Tr⁡(ωx)=Tr⁡⟨ωu,v⟩h=0\tr(\omega x) = \tr \langle \omega u, v \rangle_h = 0. The elements of trace zero are 00 and 11, and Tr⁡(ω⋅1)=1\tr(\omega \cdot 1) = 1, so x=0x = 0. Hence v∈C⊥hv \in C^{\perp_h}.

Now let DD be linear of dimension k′k' with D⊥h⊆DD^{\perp_h} \subseteq D and put C=D⊥hC = D^{\perp_h}, a linear code of dimension n−k′n - k' with C⊥tr=C⊥h=D⊇CC^{\perp_{\mathrm{tr}}} = C^{\perp_h} = D \supseteq C. Then ∣C∣=4 n−k′=2 n−(2k′−n)\abs{C} = 4^{\,n-k'} = 2^{\,n - (2k' - n)}, so item 2 gives a stabilizer code with k=2k′−nk = 2k' - n logical qubits and distance min⁡wt⁡(D∖D⊥h)\min \operatorname{wt}(D \setminus D^{\perp_h}), which is at least the minimum distance d′d' of DD.

Mentioned 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. A. R. Calderbank, E. M. Rains, P. W. Shor, N. J. A. Sloane (1998). Quantum error correction via codes over GF(4). IEEE Transactions on Information Theory 44 (4), 1369-1387. doi:10.1109/18.681315arXiv:quant-ph/9608006
  2. A. R. Calderbank, E. M. Rains, P. W. Shor, N. J. A. Sloane (1997). Quantum Error Correction and Orthogonal Geometry. Physical Review Letters 78, 405-408. doi:10.1103/PhysRevLett.78.405arXiv:quant-ph/9605005

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)

    Compared with Calderbank-Rains-Shor-Sloane, arXiv quant-ph/9608006 sec. 3: trace inner product, Theorem 2 (stabilizer code from self-orthogonal additive code, distance from C-perp minus C), Theorem 3 (linear codes: trace and Hermitian orthogonality agree; the stronger equality of duals re-derived using closure under multiplication by omega), and the convention that differs from this record's labelling (CRSS use omega a + omega-bar b, as the record warns). Map phi(a|b) = a + omega b checked by enumeration for n = 1, 2 (symplectic product = trace-Hermitian product, weights preserved). Item 3 parameters [[n, 2k'-n]] re-derived.

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 22ac99e759a35508. Source file knowledge/records/theorem/stabilizer-codes-as-additive-codes-over-gf4.md in the content repository (readable there once it is public).