Skip to main content
KetQat

Appearance

Topic · intermediate

Finite Fields and Coding Algebra

The algebra that classical and quantum codes are built on. Construction and structure of the fields GF(q), the trace, the symplectic and Hermitian inner products that encode commutation of Pauli operators, and cyclic codes described by polynomials and their roots.

ExpositionMachine-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.

Overview

A finite field is a finite set in which one can add, subtract, multiply and divide by nonzero elements with the usual rules. The integers modulo a prime are the simplest examples, and there is exactly one further field for each prime power. Coding theory lives in vector spaces over these fields: a code is a subspace, its checks are linear equations, and the best algebraic codes are defined by polynomials over a field larger than the alphabet in which they are finally written.

Quantum codes add a second reason to care. The Pauli group on nn qubits, with phases ignored, is a vector space over F2\F_2 of dimension 2n2n, and whether two Pauli operators commute is given by a bilinear form on it. That form can be written in two equivalent ways, as a symplectic form over F2\F_2 or as the trace of a Hermitian form over the four-element field F4\F_4. The second description turns the search for quantum codes into a problem about classical codes over F4\F_4.

This page collects the field theory, the inner products and the polynomial description of cyclic codes. Code parameters, families and bounds are on the page Classical Error-Correcting Codes.

Intuition

Building a field. The complex numbers are the real polynomials in a symbol ii, reduced by the rule i2=−1i^2 = -1, and this works because x2+1x^2 + 1 has no real root. Finite fields are built the same way: take polynomials over Fp\F_p in a symbol α\alpha and reduce by a rule f(α)=0f(\alpha) = 0, where ff cannot be factored. A degree-mm rule gives pmp^m elements. Addition is addition of coefficient vectors; multiplication is where the rule enters.

One generator. The nonzero elements of a finite field are all powers of a single element. Multiplication is then addition of exponents modulo q−1q - 1, which is how field arithmetic is implemented with logarithm tables, and it is why "evaluate at the powers of α\alpha" is a natural way to define a code.

Inner products that are not positive. Over a finite field there is no notion of positivity, so a nonzero vector can be orthogonal to itself. What looks like a defect is the mechanism of quantum code constructions: a set of commuting Pauli checks is a subspace orthogonal to itself.

Prerequisites

Groups and Lagrange's theorem, vector spaces and bilinear forms over a general field, and polynomial division with remainder. Familiarity with the Pauli matrices helps for the parts about quantum codes.

Mathematical Definitions

DefinitionFinite fieldEstablished definition

A field is a set FF with two operations, addition and multiplication, such that (F,+)(F, +) is an abelian group with identity 00, (F∖{0},⋅)(F \setminus \{0\}, \cdot) is an abelian group with identity 1≠01 \ne 0, and multiplication distributes over addition. A finite field is a field with finitely many elements.

  • For a prime pp, the integers modulo pp form a field Fp=Z/pZ\F_p = \Z/p\Z, the prime field.
  • The characteristic of a finite field FF is the least positive integer pp with p⋅1=0p \cdot 1 = 0; it is a prime, and FF contains a copy of Fp\F_p.
  • A finite field with qq elements is written Fq\F_q or GF(q)\mathrm{GF}(q). By the classification theorem, qq is a power pmp^m of the characteristic and the field is determined by qq up to isomorphism.
  • A primitive element of Fq\F_q is a generator of the multiplicative group Fq×=Fq∖{0}\F_q^{\times} = \F_q \setminus \{0\}, that is, an element of multiplicative order q−1q - 1.

Construction. Let f∈Fp[x]f \in \F_p[x] be a polynomial of degree mm that is irreducible, meaning it is not a product of two polynomials of smaller positive degree. The quotient ring

Fp[x]/(f)  =  { a0+a1x+⋯+am−1xm−1  :  ai∈Fp },\F_p[x] / (f) \;=\; \bigl\{\, a_0 + a_1 x + \dots + a_{m-1} x^{m-1} \;:\; a_i \in \F_p \,\bigr\} ,

with coefficientwise addition and multiplication of polynomials followed by reduction modulo ff, is a field with pmp^m elements: irreducibility of ff makes every nonzero class invertible, by the extended Euclidean algorithm. An irreducible polynomial of every degree exists over Fp\F_p, and different choices of ff give isomorphic fields with different names for the elements. The same construction with Fq\F_q in place of Fp\F_p builds Fqm\F_{q^m} as an extension of Fq\F_q.

As an additive group, Fpm\F_{p^m} is the vector space Fpm\F_p^m; all the structure beyond linear algebra is in the multiplication.

DefinitionTrace of a finite field extensionEstablished definition

Let qq be a prime power and m≥1m \ge 1. The trace from Fqm\F_{q^m} to Fq\F_q is

Tr⁡qm/q(a)  =  a+aq+aq2+⋯+aqm−1,a∈Fqm.\tr_{q^m/q}(a) \;=\; a + a^{q} + a^{q^2} + \dots + a^{q^{m-1}} , \qquad a \in \F_{q^m} .

It has the following properties, proved in chapter 2 of Lidl and Niederreiter.

  • Values in the base field. Tr⁡(a)q=Tr⁡(a)\tr(a)^q = \tr(a), because raising to the power qq permutes the summands cyclically (aqm=aa^{q^m} = a). Hence Tr⁡(a)∈Fq\tr(a) \in \F_q.
  • Linearity. Tr⁡(a+b)=Tr⁡(a)+Tr⁡(b)\tr(a + b) = \tr(a) + \tr(b) and Tr⁡(ca)=c Tr⁡(a)\tr(ca) = c\, \tr(a) for c∈Fqc \in \F_q.
  • Surjectivity. Tr⁡\tr is a polynomial function of degree qm−1<qmq^{m-1} < q^m, so it is not identically zero; its image is a nonzero Fq\F_q-subspace of Fq\F_q, hence all of Fq\F_q. Each value is taken qm−1q^{m-1} times.
  • Nondegenerate pairing. The symmetric Fq\F_q-bilinear form (a,b)↦Tr⁡(ab)(a, b) \mapsto \tr(ab) on Fqm\F_{q^m} is nondegenerate: if a≠0a \ne 0, then abab runs over the whole field as bb does, and Tr⁡\tr is not zero.

Consequently every basis β1,…,βm\beta_1, \dots, \beta_m of Fqm\F_{q^m} over Fq\F_q has a unique dual basis γ1,…,γm\gamma_1, \dots, \gamma_m with Tr⁡(βiγj)=δij\tr(\beta_i \gamma_j) = \delta_{ij}, and the coordinates of aa in the first basis are Tr⁡(aγj)\tr(a \gamma_j). A basis is self-dual if it is its own dual.

The norm is Nqm/q(a)=a⋅aq⋯aqm−1=a(qm−1)/(q−1)N_{q^m/q}(a) = a \cdot a^{q} \cdots a^{q^{m-1}} = a^{(q^m - 1)/(q - 1)}; it is multiplicative and maps Fqm×\F_{q^m}^{\times} onto Fq×\F_q^{\times}.

For the quadratic extension Fq2/Fq\F_{q^2}/\F_q one writes aˉ=aq\bar a = a^q (conjugation), so that Tr⁡(a)=a+aˉ\tr(a) = a + \bar a and N(a)=aaˉN(a) = a \bar a, in analogy with complex numbers over the reals.

Inner products used for quantum codes

Three forms appear in constructions of quantum codes from classical ones. The Euclidean form x⋅y=∑ixiyix \cdot y = \sum_i x_i y_i and its duals underlie the CSS construction. The other two are below.

DefinitionSymplectic inner product on binary vectorsEstablished definition

Write vectors of F22n\F_2^{2n} as (a∣b)(a \mid b) with a,b∈F2na, b \in \F_2^n. The symplectic inner product is

⟨(a∣b), (a′∣b′)⟩s  =  a⋅b′+a′⋅b  =  ∑i=1n(aibi′+ai′bi)(mod2).\bigl\langle (a \mid b),\, (a' \mid b') \bigr\rangle_s \;=\; a \cdot b' + a' \cdot b \;=\; \sum_{i=1}^{n} \bigl( a_i b'_i + a'_i b_i \bigr) \pmod 2 .

It is bilinear, symmetric (signs are immaterial over F2\F_2), alternating (⟨v,v⟩s=0\langle v, v \rangle_s = 0 for every vv) and nondegenerate (only v=0v = 0 is orthogonal to everything). The symplectic weight of (a∣b)(a \mid b) is the number of positions ii with (ai,bi)≠(0,0)(a_i, b_i) \ne (0, 0).

For a subspace W⊆F22nW \subseteq \F_2^{2n} the symplectic complement is W⊥s={ v:⟨v,w⟩s=0 for all w∈W }W^{\perp_s} = \{\, v : \langle v, w \rangle_s = 0 \text{ for all } w \in W \,\}. Nondegeneracy gives

dim⁡W+dim⁡W⊥s=2n,(W⊥s)⊥s=W.\dim W + \dim W^{\perp_s} = 2n , \qquad (W^{\perp_s})^{\perp_s} = W .

WW is isotropic (self-orthogonal) if W⊆W⊥sW \subseteq W^{\perp_s}; then dim⁡W≤n\dim W \le n. A hyperbolic pair is a pair u,vu, v with ⟨u,v⟩s=1\langle u, v \rangle_s = 1.

Two structural facts are used repeatedly.

  • Canonical basis of a subspace. Every subspace WW has a basis z1,…,zr,u1,v1,…,ug,vgz_1, \dots, z_r, u_1, v_1, \dots, u_g, v_g in which z1,…,zrz_1, \dots, z_r span the radical W∩W⊥sW \cap W^{\perp_s}, each (uj,vj)(u_j, v_j) is a hyperbolic pair, and all other pairs of basis vectors are orthogonal. It is produced by a Gram–Schmidt-like procedure.
  • Extension. Any such basis extends to a symplectic basis of the whole space, nn hyperbolic pairs with all other products zero. The linear maps preserving the form make up the symplectic group Sp(2n,2)\mathrm{Sp}(2n, 2), which acts transitively on nonzero vectors and on symplectic bases.

Under the correspondence (a∣b)↔XaZb(a \mid b) \leftrightarrow X^{a} Z^{b} with Pauli operators, the form records commutation (commutation criterion) and the symplectic weight is the number of qubits acted on; this is the setting of Calderbank, Rains, Shor and Sloane.

Larger fields. For a prime power q=pmq = p^m the analogue on Fq2n\F_q^{2n} is the trace-symplectic form ⟨(a∣b),(a′∣b′)⟩s=Tr⁡q/p(b⋅a′−b′⋅a)\langle (a \mid b), (a' \mid b') \rangle_s = \tr_{q/p}(b \cdot a' - b' \cdot a), which plays the same role for qudits of dimension qq (Ketkar, Klappenecker, Kumar and Sarvepalli).

DefinitionHermitian and trace-Hermitian inner products over GF(q²)Established definition

Let qq be a prime power and write aˉ=aq\bar a = a^{q} for a∈Fq2a \in \F_{q^2}; this conjugation is the automorphism of Fq2\F_{q^2} that fixes Fq\F_q. The Hermitian inner product of u,v∈Fq2nu, v \in \F_{q^2}^n is

⟨u,v⟩h  =  ∑i=1nui vˉi  =  ∑i=1nui vi q.\langle u, v \rangle_h \;=\; \sum_{i=1}^{n} u_i\, \bar v_i \;=\; \sum_{i=1}^{n} u_i\, v_i^{\,q} .

It is linear in uu, conjugate-linear in vv, and ⟨v,u⟩h=⟨u,v⟩h‾\langle v, u \rangle_h = \overline{\langle u, v \rangle_h}. The Hermitian dual of a code C⊆Fq2nC \subseteq \F_{q^2}^n is C⊥h={ u:⟨u,c⟩h=0 for all c∈C }C^{\perp_h} = \{\, u : \langle u, c \rangle_h = 0 \text{ for all } c \in C \,\}, and CC is Hermitian self-orthogonal if C⊆C⊥hC \subseteq C^{\perp_h}.

The case q=2q = 2. Write F4={0,1,ω,ωˉ}\F_4 = \{0, 1, \omega, \bar\omega\} with ωˉ=ω2=ω+1\bar\omega = \omega^2 = \omega + 1. Conjugation swaps ω\omega and ωˉ\bar\omega, and the trace to F2\F_2 is Tr⁡(a)=a+aˉ\tr(a) = a + \bar a, so Tr⁡(0)=Tr⁡(1)=0\tr(0) = \tr(1) = 0 and Tr⁡(ω)=Tr⁡(ωˉ)=1\tr(\omega) = \tr(\bar\omega) = 1. The trace-Hermitian inner product on F4n\F_4^n is

⟨u,v⟩tr  =  Tr⁡⟨u,v⟩h  =  ∑i=1n(uivˉi+uˉivi)  ∈  F2.\langle u, v \rangle_{\mathrm{tr}} \;=\; \tr \langle u, v \rangle_h \;=\; \sum_{i=1}^{n} \bigl( u_i \bar v_i + \bar u_i v_i \bigr) \;\in\; \F_2 .

It is F2\F_2-bilinear (not F4\F_4-bilinear), symmetric and alternating. For single symbols a,b∈F4a, b \in \F_4,

Tr⁡(abˉ)={0a=0, b=0, or a=b,1a,b distinct and nonzero,\tr(a \bar b) = \begin{cases} 0 & a = 0,\ b = 0, \text{ or } a = b, \\ 1 & a, b \text{ distinct and nonzero,} \end{cases}

since aaˉ=a3=1a \bar a = a^3 = 1 for a≠0a \ne 0, while for distinct nonzero a,ba, b the element abˉ=ab−1a \bar b = a b^{-1} is ω\omega or ωˉ\bar\omega.

An additive code over F4\F_4 is a subgroup of (F4n,+)(\F_4^n, +), equivalently an F2\F_2-subspace; it need not be closed under multiplication by ω\omega. Its dual with respect to ⟨⋅,⋅⟩tr\langle \cdot, \cdot \rangle_{\mathrm{tr}} is the notion of duality used in the description of stabilizer codes by Calderbank, Rains, Shor and Sloane. The Hermitian form for general qq gives quantum codes on qq-dimensional systems in the same way (Ketkar, Klappenecker, Kumar and Sarvepalli).

Polynomial codes

DefinitionCyclic codeEstablished definition

A linear code C⊆FqnC \subseteq \F_q^n is cyclic if

(c0,c1,…,cn−1)∈C  ⟹  (cn−1,c0,…,cn−2)∈C.(c_0, c_1, \dots, c_{n-1}) \in C \;\Longrightarrow\; (c_{n-1}, c_0, \dots, c_{n-2}) \in C .

Identify a word with the polynomial c(x)=c0+c1x+⋯+cn−1xn−1c(x) = c_0 + c_1 x + \dots + c_{n-1} x^{n-1} in the ring Rn=Fq[x]/(xn−1)R_n = \F_q[x]/(x^n - 1). The cyclic shift is multiplication by xx, so a linear code is cyclic exactly when it is an ideal of RnR_n: closed under addition and under multiplication by arbitrary polynomials.

  • Generator polynomial. Every cyclic code C≠{0}C \neq \{0\} contains a unique monic polynomial g(x)g(x) of least degree. It divides xn−1x^n - 1, and C={ a(x) g(x):deg⁡a<n−deg⁡g }C = \{\, a(x)\, g(x) : \deg a < n - \deg g \,\}. Hence dim⁡C=n−deg⁡g\dim C = n - \deg g, and cyclic codes of length nn correspond one-to-one to monic divisors of xn−1x^n - 1.
  • Check polynomial. With h(x)=(xn−1)/g(x)h(x) = (x^n - 1)/g(x), a word cc is in CC if and only if c(x) h(x)=0c(x)\, h(x) = 0 in RnR_n.
  • Zeros. Suppose gcd⁡(n,q)=1\gcd(n, q) = 1. Then xn−1x^n - 1 has nn distinct roots, the nn-th roots of unity, in a suitable extension Fqm\F_{q^m}; they are the powers of a primitive nn-th root of unity α\alpha. The code is determined by the set of roots of gg:
C  =  { c(x)∈Rn  :  c(αj)=0 for all j∈T },T={ j:g(αj)=0 }.C \;=\; \bigl\{\, c(x) \in R_n \;:\; c(\alpha^{j}) = 0 \text{ for all } j \in T \,\bigr\} , \qquad T = \{\, j : g(\alpha^{j}) = 0 \,\} .

The defining set TT is closed under multiplication by qq modulo nn, because gg has coefficients in Fq\F_q and so g(βq)=g(β)qg(\beta^q) = g(\beta)^q.

Designing a cyclic code thus amounts to choosing which roots of unity its codewords must vanish at; the BCH bound converts a run of consecutive zeros into a guarantee on the minimum distance, and BCH codes are the codes designed this way. Proofs of the statements above are in chapter 4 of Huffman and Pless.

Reed–Solomon codes are polynomial codes of a second kind: the codeword is the list of values of a low-degree polynomial rather than its list of coefficients. With evaluation points 1,β,…,βq−21, \beta, \dots, \beta^{q-2} the two views coincide, the transform between values and coefficients being a discrete Fourier transform over Fq\F_q.

Theorems

TheoremClassification of finite fieldsEstablished result

Let pp denote a prime.

  1. Order. A finite field of characteristic pp has pmp^m elements for some integer m≥1m \ge 1.
  2. Roots of xq−xx^q - x. If FF is a field with qq elements, then aq=aa^q = a for every a∈Fa \in F, and xq−x=∏a∈F(x−a)x^q - x = \prod_{a \in F} (x - a) in F[x]F[x].
  3. Cyclicity. The multiplicative group F×F^{\times} of a finite field is cyclic.
  4. Existence. For every prime power q=pmq = p^m there is a field with qq elements.
  5. Uniqueness. Any two fields with qq elements are isomorphic.
  6. Subfields. Fpm\F_{p^m} has a subfield with prp^r elements if and only if rr divides mm, and then exactly one, namely { a:apr=a }\{\, a : a^{p^r} = a \,\}.

A consequence of items 2 and 6 is that the Frobenius map a↦apa \mapsto a^{p} is an automorphism of Fpm\F_{p^m} whose fixed points are the prime field, and that a↦aqa \mapsto a^{q} is an automorphism of Fqm\F_{q^m} fixing exactly Fq\F_q.

Holds when
  • Fields are commutative; "unique" means unique up to field isomorphism.
Proof · Proof of the classification of finite fields

1. Order. Let FF have characteristic pp. The multiples of 11 form a subfield isomorphic to Fp\F_p, and FF is a vector space over it, of some finite dimension mm. Choosing a basis identifies FF with Fpm\F_p^m as a set, so ∣F∣=pm\abs{F} = p^m.

2. Roots of xq−xx^q - x. The group F×F^{\times} has order q−1q - 1, so by Lagrange's theorem aq−1=1a^{q-1} = 1 for a≠0a \ne 0, hence aq=aa^q = a for all a∈Fa \in F. The polynomial xq−xx^q - x has degree qq and the qq elements of FF as roots, so it equals ∏a∈F(x−a)\prod_{a \in F}(x - a).

3. Cyclicity. Let ee be the least common multiple of the orders of the elements of F×F^{\times}. Every a∈F×a \in F^{\times} satisfies ae=1a^e = 1, so xe−1x^e - 1 has q−1q - 1 roots and therefore q−1≤eq - 1 \le e. Also ee divides q−1q - 1, since each order does. Hence e=q−1e = q - 1, and F×F^{\times}, being a finite abelian group, contains an element of order e=q−1=∣F×∣e = q - 1 = \abs{F^{\times}}.

4. Existence. Let KK be a splitting field of f=xq−xf = x^q - x over Fp\F_p, where q=pmq = p^m. The derivative is f′=qxq−1−1=−1f' = q x^{q-1} - 1 = -1, which has no root, so ff has no repeated root and R={ a∈K:aq=a }R = \{\, a \in K : a^q = a \,\} has exactly qq elements. In characteristic pp the binomial coefficients (pi)\binom{p}{i}, 0<i<p0 < i < p, vanish, so (a+b)p=ap+bp(a + b)^p = a^p + b^p and by iteration (a+b)q=aq+bq(a+b)^q = a^q + b^q. Thus RR is closed under addition; it is closed under multiplication and inversion because (ab)q=aqbq(ab)^q = a^q b^q; it contains 00 and 11; and (−a)q=−aq(-a)^q = -a^q (for p=2p = 2 note −a=a-a = a). So RR is a field with qq elements.

5. Uniqueness. Let FF be any field with q=pmq = p^m elements. By item 2, xq−xx^q - x splits into linear factors over FF and its roots are all of FF, so FF is generated over its prime field by those roots: FF is a splitting field of xq−xx^q - x over Fp\F_p. Splitting fields of a given polynomial are isomorphic.

6. Subfields. If E⊆FpmE \subseteq \F_{p^m} is a subfield with prp^r elements, then Fpm\F_{p^m} is a vector space over EE of some dimension ss, so pm=(pr)sp^m = (p^r)^s and r∣mr \mid m. By item 2 applied to EE, its elements are roots of xpr−xx^{p^r} - x, and there are only prp^r such roots, so E={a:apr=a}E = \{a : a^{p^r} = a\}; this proves uniqueness. Conversely let m=rsm = rs. Then pr−1p^r - 1 divides pm−1p^m - 1, so xpr−1−1x^{p^r - 1} - 1 divides xpm−1−1x^{p^m - 1} - 1, and xpr−xx^{p^r} - x divides xpm−xx^{p^m} - x. The latter splits into distinct linear factors over Fpm\F_{p^m} by item 2, hence so does the former, which therefore has prp^r roots in Fpm\F_{p^m}. By the argument of item 4 these roots form a field.

TheoremBCH boundEstablished result

Let CC be a cyclic code of length nn over Fq\F_q with gcd⁡(n,q)=1\gcd(n, q) = 1, and let α\alpha be a primitive nn-th root of unity in an extension of Fq\F_q. Suppose there are integers b≥0b \ge 0 and δ≥2\delta \ge 2 such that

c(αb)=c(αb+1)=⋯=c(αb+δ−2)=0for every c∈C.c(\alpha^{b}) = c(\alpha^{b+1}) = \dots = c(\alpha^{b + \delta - 2}) = 0 \qquad \text{for every } c \in C .

Then the minimum distance of CC is at least δ\delta.

The bound is the basis of the codes of Bose and Ray-Chaudhuri and of Hocquenghem. The true distance can exceed δ\delta. For Reed–Solomon codes, where n=q−1n = q - 1 and the generator polynomial has exactly the δ−1\delta - 1 prescribed roots, the bound gives d≥n−k+1d \ge n - k + 1 and is tight by the Singleton bound.

Holds when
  • gcd⁡(n,q)=1\gcd(n, q) = 1, so that a primitive nn-th root of unity α\alpha exists in an extension field of Fq\F_q.
  • C≠{0}C \ne \{0\} is a cyclic code of length nn over Fq\F_q and δ≥2\delta \ge 2.
Proof · Proof of the BCH bound

Suppose, for contradiction, that c∈Cc \in C is nonzero of weight w≤δ−1w \le \delta - 1. Let 0≤i1<i2<⋯<iw≤n−10 \le i_1 < i_2 < \dots < i_w \le n - 1 be the positions of its nonzero coefficients, so that c(x)=∑l=1wcilxilc(x) = \sum_{l=1}^{w} c_{i_l} x^{i_l}.

Since w≤δ−1w \le \delta - 1, the exponents b,b+1,…,b+w−1b, b+1, \dots, b + w - 1 are among the prescribed zeros. Evaluating cc at αb+j\alpha^{b+j} for j=0,…,w−1j = 0, \dots, w - 1 gives the homogeneous linear system

∑l=1wα(b+j) il  cil  =  0,j=0,1,…,w−1,\sum_{l=1}^{w} \alpha^{(b+j)\, i_l}\; c_{i_l} \;=\; 0 , \qquad j = 0, 1, \dots, w - 1 ,

in the unknowns ci1,…,ciwc_{i_1}, \dots, c_{i_w}. Put xl=αilx_l = \alpha^{i_l}. The coefficient matrix is M=(xl b xl j)j,lM = (x_l^{\,b}\, x_l^{\,j})_{j, l}, and taking the factor xl bx_l^{\,b} out of column ll,

det⁡M  =  (∏l=1wxl b)det⁡(xl j)0≤j≤w−1,  1≤l≤w  =  (∏l=1wxl b)∏1≤l<l′≤w(xl′−xl),\det M \;=\; \Bigl( \prod_{l=1}^{w} x_l^{\,b} \Bigr) \det\bigl( x_l^{\,j} \bigr)_{0 \le j \le w-1,\; 1 \le l \le w} \;=\; \Bigl( \prod_{l=1}^{w} x_l^{\,b} \Bigr) \prod_{1 \le l < l' \le w} (x_{l'} - x_l) ,

the second factor being a Vandermonde determinant.

Because α\alpha has multiplicative order exactly nn and the exponents ili_l are distinct integers in {0,…,n−1}\{0, \dots, n-1\}, the nodes xl=αilx_l = \alpha^{i_l} are distinct and nonzero. Hence det⁡M≠0\det M \ne 0, the system has only the zero solution, and ci1=⋯=ciw=0c_{i_1} = \dots = c_{i_w} = 0, contradicting the choice of the ili_l as positions of nonzero coefficients. Therefore every nonzero codeword has weight at least δ\delta.

TheoremStabilizer codes are self-orthogonal additive codes over GF(4)Established result

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)

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.

For systems of dimension qq in place of qubits the same dictionary holds with the trace-symplectic form on Fq2n\F_q^{2n}, and with the Hermitian form on Fq2n\F_{q^2}^n for linear codes: a linear [n,k′,d′]q2[n, k', d']_{q^2} code containing its Hermitian dual gives an [[n,2k′−n,≥d′]]q[[n, 2k' - n, \ge d']]_q stabilizer code (Ashikhmin and Knill; Ketkar, Klappenecker, Kumar and Sarvepalli).

Worked Examples

The field with four elements

Over F2\F_2 the polynomial x2+x+1x^2 + x + 1 has no root (00 and 11 both give 11), so it is irreducible. Adjoining a root ω\omega gives F4={0,1,ω,ω+1}\F_4 = \{0, 1, \omega, \omega + 1\} with ω2=ω+1\omega^2 = \omega + 1. Write ωˉ=ω+1\bar\omega = \omega + 1. Then

ω⋅ωˉ=ω2+ω=1,ωˉ2=ω2+1=ω,ω3=1.\omega \cdot \bar\omega = \omega^2 + \omega = 1 , \qquad \bar\omega^2 = \omega^2 + 1 = \omega , \qquad \omega^3 = 1 .

The nonzero elements {1,ω,ω2}\{1, \omega, \omega^2\} form a cyclic group of order 3, squaring swaps ω\omega and ωˉ\bar\omega, and the trace a+a2a + a^2 takes the values Tr⁡(0)=0\tr(0) = 0, Tr⁡(1)=1+1=0\tr(1) = 1 + 1 = 0, Tr⁡(ω)=ω+ωˉ=1\tr(\omega) = \omega + \bar\omega = 1, Tr⁡(ωˉ)=1\tr(\bar\omega) = 1.

The field with eight elements

x3+x+1x^3 + x + 1 has no root in F2\F_2 and, being cubic, is therefore irreducible. Let α\alpha be a root, so α3=α+1\alpha^3 = \alpha + 1. The powers of α\alpha are

α0=1,α1=α,α2=α2,α3=α+1,α4=α2+α,α5=α2+α+1,α6=α2+1,α7=1,\begin{aligned} \alpha^0 &= 1, & \alpha^1 &= \alpha, & \alpha^2 &= \alpha^2, & \alpha^3 &= \alpha + 1, \\ \alpha^4 &= \alpha^2 + \alpha, & \alpha^5 &= \alpha^2 + \alpha + 1, & \alpha^6 &= \alpha^2 + 1, & \alpha^7 &= 1 , \end{aligned}

all seven nonzero elements, so α\alpha is primitive. Products are computed by adding exponents modulo 7: for instance (α+1)(α2+α+1)=α3α5=α8=α(\alpha + 1)(\alpha^2 + \alpha + 1) = \alpha^3 \alpha^5 = \alpha^8 = \alpha, which one confirms by expanding to α3+1\alpha^3 + 1.

Trace. Tr⁡(a)=a+a2+a4\tr(a) = a + a^2 + a^4. For a=αa = \alpha this is α+α2+(α2+α)=0\alpha + \alpha^2 + (\alpha^2 + \alpha) = 0, and for a=α3a = \alpha^3 it is α3+α6+α12=α3+α6+α5=1\alpha^3 + \alpha^6 + \alpha^{12} = \alpha^3 + \alpha^6 + \alpha^5 = 1. In full, Tr⁡(αi)=1\tr(\alpha^i) = 1 for i∈{0,3,5,6}i \in \{0, 3, 5, 6\} and 00 for i∈{1,2,4}i \in \{1, 2, 4\}: four elements of trace 1, and four of trace 0 counting 00, as surjectivity requires.

A self-dual basis. {α3,α5,α6}\{\alpha^3, \alpha^5, \alpha^6\} satisfies Tr⁡(αiαj)=δij\tr(\alpha^{i} \alpha^{j}) = \delta_{ij} for i,j∈{3,5,6}i, j \in \{3, 5, 6\}: the squares are α6,α10=α3,α12=α5\alpha^6, \alpha^{10} = \alpha^3, \alpha^{12} = \alpha^5, all of trace 1, and the mixed products are α8=α\alpha^8 = \alpha, α9=α2\alpha^9 = \alpha^2 and α11=α4\alpha^{11} = \alpha^4, all of trace 0. Writing each element of F8\F_8 in this basis turns a code over F8\F_8 into a binary code three times as long, in such a way that the Euclidean dual of the binary image is the binary image of the dual.

A Reed–Solomon codeword

Evaluate polynomials of degree less than 3 over F8\F_8 at 1,α,…,α61, \alpha, \dots, \alpha^6 to obtain a [7,3,5]8[7, 3, 5]_8 code. For f(x)=1+xf(x) = 1 + x the codeword is

(f(αi))i=06=(0, α3, α6, α, α5, α4, α2),\bigl( f(\alpha^i) \bigr)_{i=0}^{6} = (0,\ \alpha^3,\ \alpha^6,\ \alpha,\ \alpha^5,\ \alpha^4,\ \alpha^2) ,

of weight 6: the single zero is at the root x=1x = 1. The polynomial (x+1)(x+α)(x + 1)(x + \alpha) has two roots among the evaluation points and gives a codeword of weight 5, the minimum, since a nonzero polynomial of degree at most 2 has at most two roots.

The five-qubit code over GF(4)

The five-qubit code of Laflamme, Miquel, Paz and Zurek has stabilizer generators XZZXIXZZXI and its cyclic shifts. Under X↦1X \mapsto 1, Z↦ωZ \mapsto \omega the first two become

u=(1,ω,ω,1,0),v=(0,1,ω,ω,1).u = (1, \omega, \omega, 1, 0), \qquad v = (0, 1, \omega, \omega, 1) .

Their Hermitian product is

⟨u,v⟩h=1⋅0ˉ+ω⋅1ˉ+ω⋅ωˉ+1⋅ωˉ+0⋅1ˉ=ω+1+ωˉ=0,\langle u, v \rangle_h = 1 \cdot \bar 0 + \omega \cdot \bar 1 + \omega \cdot \bar\omega + 1 \cdot \bar\omega + 0 \cdot \bar 1 = \omega + 1 + \bar\omega = 0 ,

and ⟨u,u⟩h=1+1+1+1=0\langle u, u \rangle_h = 1 + 1 + 1 + 1 = 0. The four generators span, over F2\F_2, a set of 16 vectors that is closed under multiplication by ω\omega: it is a linear [5,2]4[5, 2]_4 code CC, Hermitian self-orthogonal. Its Hermitian dual DD is a [5,3,3]4[5, 3, 3]_4 code containing CC, and item 3 of the theorem above gives k=2⋅3−5=1k = 2 \cdot 3 - 5 = 1 and d=3d = 3: the [[5,1,3]][[5, 1, 3]] code.

Applications

  • Stabilizer and CSS codes. Commutation of checks is self-orthogonality: symplectic in general, Euclidean for CSS codes, Hermitian for F4\F_4-linear codes. See stabilizer codes and CSS codes.
  • Algebraic code families. Reed–Solomon and BCH codes (Reed and Solomon, Bose and Ray-Chaudhuri) and the quantum codes derived from them are defined by zeros in extension fields.
  • Qudit codes. Systems of prime-power dimension qq have a Pauli group labelled by Fq2n\F_q^{2n}, with the trace entering the commutation phase (Ashikhmin and Knill).
  • Quasi-cyclic and product constructions. Check matrices whose entries are polynomials in a cyclic shift, a staple of quantum LDPC codes, use the polynomial ring F2[x]/(xn−1)\F_2[x]/(x^n - 1) of the cyclic-code definition.

Limitations and Common Pitfalls

  • F4\F_4 is not Z/4Z\Z/4\Z. In the integers modulo 4, 2⋅2=02 \cdot 2 = 0, so they do not form a field. Fpm\F_{p^m} for m>1m > 1 is never the ring of integers modulo pmp^m; it has characteristic pp, so 1+1=01 + 1 = 0 in F4\F_4 and F8\F_8.
  • Element names depend on the chosen polynomial. F8\F_8 built from x3+x+1x^3 + x + 1 and from x3+x2+1x^3 + x^2 + 1 are isomorphic, but the element called α\alpha is different, and so are statements such as "Tr⁡(α)=0\tr(\alpha) = 0". Always state the defining polynomial.
  • Irreducible is not primitive. A root of an irreducible polynomial need not generate the multiplicative group. It does for the examples here because 3 and 7 are prime; over F2\F_2, x4+x3+x2+x+1x^4 + x^3 + x^2 + x + 1 is irreducible but its roots have order 5, not 15.
  • Additive is weaker than linear. A stabilizer group corresponds to an additive code over F4\F_4, closed under addition only. Most stabilizer codes are not F4\F_4-linear, and the Hermitian form applies only to those that are; the trace-Hermitian form is the general one.
  • Three different duals. Euclidean, Hermitian and symplectic duals of the same set of vectors are different codes. A statement "CC contains its dual" is meaningless until the form is named.
  • The BCH bound is a lower bound. The designed distance can be smaller than the true distance, and it depends on the choice of primitive root of unity.
Builds on
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. Rudolf Lidl, Harald Niederreiter (1996). Finite Fields. Cambridge University Press (Encyclopedia of Mathematics and its Applications 20, 2nd edition). doi:10.1017/CBO9780511525926
  2. W. Cary Huffman, Vera Pless (2003). Fundamentals of Error-Correcting Codes. Cambridge University Press. doi:10.1017/CBO9780511807077
  3. 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
  4. 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
  5. A. Ketkar, A. Klappenecker, S. Kumar, P. K. Sarvepalli (2006). Nonbinary Stabilizer Codes Over Finite Fields. IEEE Transactions on Information Theory 52 (11), 4892-4914. doi:10.1109/TIT.2006.883612arXiv:quant-ph/0508070
  6. A. Ashikhmin, E. Knill (2001). Nonbinary quantum stabilizer codes. IEEE Transactions on Information Theory 47 (7), 3065-3072. doi:10.1109/18.959288arXiv:quant-ph/0005008
  7. I. S. Reed, G. Solomon (1960). Polynomial Codes Over Certain Finite Fields. Journal of the Society for Industrial and Applied Mathematics 8 (2), 300-304. doi:10.1137/0108018
  8. R. C. Bose, D. K. Ray-Chaudhuri (1960). On a class of error correcting binary group codes. Information and Control 3 (1), 68-79. doi:10.1016/S0019-9958(60)90287-4
  9. Raymond Laflamme, Cesar Miquel, Juan Pablo Paz, Wojciech H. Zurek (1996). Perfect Quantum Error Correcting Code. Physical Review Letters 77, 198-201. doi:10.1103/PhysRevLett.77.198arXiv:quant-ph/9602019

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)

    Topic body only (embedded records carry their own states). GF(4) and GF(8) examples recomputed by script: power table for alpha^3 = alpha + 1, product example, traces (trace 1 exactly for i in {0,3,5,6}), self-dual basis {alpha^3, alpha^5, alpha^6}, Reed-Solomon codeword of f = 1 + x; five-qubit-code example checked by enumeration (span of 16 vectors closed under omega, Hermitian self-orthogonal, Hermitian dual of size 64 with distance 3). Qudit Hermitian construction [[n, 2k'-n, >= d']]_q compared with Ketkar et al., arXiv quant-ph/0508070, Lemma 18 and Cor. 19; trace-based qudit Pauli labelling with Ashikhmin-Knill, arXiv quant-ph/0005008. Laflamme et al. (1996), Reed-Solomon (1960), Bose-Ray-Chaudhuri (1960) metadata checked on Crossref.

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 9d07885c52ae406a. Source file knowledge/records/topic/finite-fields.md in the content repository (readable there once it is public).