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 qubits, with phases ignored, is a vector space over of dimension , 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 or as the trace of a Hermitian form over the four-element field . The second description turns the search for quantum codes into a problem about classical codes over .
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 , reduced by the rule , and this works because has no real root. Finite fields are built the same way: take polynomials over in a symbol and reduce by a rule , where cannot be factored. A degree- rule gives 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 , which is how field arithmetic is implemented with logarithm tables, and it is why "evaluate at the powers of " 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
A field is a set with two operations, addition and multiplication, such that is an abelian group with identity , is an abelian group with identity , and multiplication distributes over addition. A finite field is a field with finitely many elements.
- For a prime , the integers modulo form a field , the prime field.
- The characteristic of a finite field is the least positive integer with ; it is a prime, and contains a copy of .
- A finite field with elements is written or . By the classification theorem, is a power of the characteristic and the field is determined by up to isomorphism.
- A primitive element of is a generator of the multiplicative group , that is, an element of multiplicative order .
Construction. Let be a polynomial of degree that is irreducible, meaning it is not a product of two polynomials of smaller positive degree. The quotient ring
with coefficientwise addition and multiplication of polynomials followed by reduction modulo , is a field with elements: irreducibility of makes every nonzero class invertible, by the extended Euclidean algorithm. An irreducible polynomial of every degree exists over , and different choices of give isomorphic fields with different names for the elements. The same construction with in place of builds as an extension of .
As an additive group, is the vector space ; all the structure beyond linear algebra is in the multiplication.
Let be a prime power and . The trace from to is
It has the following properties, proved in chapter 2 of Lidl and Niederreiter.
- Values in the base field. , because raising to the power permutes the summands cyclically (). Hence .
- Linearity. and for .
- Surjectivity. is a polynomial function of degree , so it is not identically zero; its image is a nonzero -subspace of , hence all of . Each value is taken times.
- Nondegenerate pairing. The symmetric -bilinear form on is nondegenerate: if , then runs over the whole field as does, and is not zero.
Consequently every basis of over has a unique dual basis with , and the coordinates of in the first basis are . A basis is self-dual if it is its own dual.
The norm is ; it is multiplicative and maps onto .
For the quadratic extension one writes (conjugation), so that and , 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 and its duals underlie the CSS construction. The other two are below.
Write vectors of as with . The symplectic inner product is
It is bilinear, symmetric (signs are immaterial over ), alternating ( for every ) and nondegenerate (only is orthogonal to everything). The symplectic weight of is the number of positions with .
For a subspace the symplectic complement is . Nondegeneracy gives
is isotropic (self-orthogonal) if ; then . A hyperbolic pair is a pair with .
Two structural facts are used repeatedly.
- Canonical basis of a subspace. Every subspace has a basis in which span the radical , each 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, hyperbolic pairs with all other products zero. The linear maps preserving the form make up the symplectic group , which acts transitively on nonzero vectors and on symplectic bases.
Under the correspondence 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 the analogue on is the trace-symplectic form , which plays the same role for qudits of dimension (Ketkar, Klappenecker, Kumar and Sarvepalli).
Let be a prime power and write for ; this conjugation is the automorphism of that fixes . The Hermitian inner product of is
It is linear in , conjugate-linear in , and . The Hermitian dual of a code is , and is Hermitian self-orthogonal if .
The case . Write with . Conjugation swaps and , and the trace to is , so and . The trace-Hermitian inner product on is
It is -bilinear (not -bilinear), symmetric and alternating. For single symbols ,
since for , while for distinct nonzero the element is or .
An additive code over is a subgroup of , equivalently an -subspace; it need not be closed under multiplication by . Its dual with respect to is the notion of duality used in the description of stabilizer codes by Calderbank, Rains, Shor and Sloane. The Hermitian form for general gives quantum codes on -dimensional systems in the same way (Ketkar, Klappenecker, Kumar and Sarvepalli).
Polynomial codes
A linear code is cyclic if
Identify a word with the polynomial in the ring . The cyclic shift is multiplication by , so a linear code is cyclic exactly when it is an ideal of : closed under addition and under multiplication by arbitrary polynomials.
- Generator polynomial. Every cyclic code contains a unique monic polynomial of least degree. It divides , and . Hence , and cyclic codes of length correspond one-to-one to monic divisors of .
- Check polynomial. With , a word is in if and only if in .
- Zeros. Suppose . Then has distinct roots, the -th roots of unity, in a suitable extension ; they are the powers of a primitive -th root of unity . The code is determined by the set of roots of :
The defining set is closed under multiplication by modulo , because has coefficients in and so .
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 the two views coincide, the transform between values and coefficients being a discrete Fourier transform over .
Theorems
Let denote a prime.
- Order. A finite field of characteristic has elements for some integer .
- Roots of . If is a field with elements, then for every , and in .
- Cyclicity. The multiplicative group of a finite field is cyclic.
- Existence. For every prime power there is a field with elements.
- Uniqueness. Any two fields with elements are isomorphic.
- Subfields. has a subfield with elements if and only if divides , and then exactly one, namely .
A consequence of items 2 and 6 is that the Frobenius map is an automorphism of whose fixed points are the prime field, and that is an automorphism of fixing exactly .
- Fields are commutative; "unique" means unique up to field isomorphism.
Proof · Proof of the classification of finite fields
1. Order. Let have characteristic . The multiples of form a subfield isomorphic to , and is a vector space over it, of some finite dimension . Choosing a basis identifies with as a set, so .
2. Roots of . The group has order , so by Lagrange's theorem for , hence for all . The polynomial has degree and the elements of as roots, so it equals .
3. Cyclicity. Let be the least common multiple of the orders of the elements of . Every satisfies , so has roots and therefore . Also divides , since each order does. Hence , and , being a finite abelian group, contains an element of order .
4. Existence. Let be a splitting field of over , where . The derivative is , which has no root, so has no repeated root and has exactly elements. In characteristic the binomial coefficients , , vanish, so and by iteration . Thus is closed under addition; it is closed under multiplication and inversion because ; it contains and ; and (for note ). So is a field with elements.
5. Uniqueness. Let be any field with elements. By item 2, splits into linear factors over and its roots are all of , so is generated over its prime field by those roots: is a splitting field of over . Splitting fields of a given polynomial are isomorphic.
6. Subfields. If is a subfield with elements, then is a vector space over of some dimension , so and . By item 2 applied to , its elements are roots of , and there are only such roots, so ; this proves uniqueness. Conversely let . Then divides , so divides , and divides . The latter splits into distinct linear factors over by item 2, hence so does the former, which therefore has roots in . By the argument of item 4 these roots form a field.
Let be a cyclic code of length over with , and let be a primitive -th root of unity in an extension of . Suppose there are integers and such that
Then the minimum distance of is at least .
The bound is the basis of the codes of Bose and Ray-Chaudhuri and of Hocquenghem. The true distance can exceed . For Reed–Solomon codes, where and the generator polynomial has exactly the prescribed roots, the bound gives and is tight by the Singleton bound.
- , so that a primitive -th root of unity exists in an extension field of .
- is a cyclic code of length over and .
Proof · Proof of the BCH bound
Suppose, for contradiction, that is nonzero of weight . Let be the positions of its nonzero coefficients, so that .
Since , the exponents are among the prescribed zeros. Evaluating at for gives the homogeneous linear system
in the unknowns . Put . The coefficient matrix is , and taking the factor out of column ,
the second factor being a Vandermonde determinant.
Because has multiplicative order exactly and the exponents are distinct integers in , the nodes are distinct and nonzero. Hence , the system has only the zero solution, and , contradicting the choice of the as positions of nonzero coefficients. Therefore every nonzero codeword has weight at least .
Define by . On a single qubit this labels the Pauli matrices as .
- Dictionary. is an isomorphism of -vector spaces. It carries the symplectic weight to the Hamming weight and the symplectic inner product to the trace-Hermitian inner product: .
- Stabilizer codes. Let be the stabilizer of an stabilizer code, , and the image under of its binary representation. Then is an additive code with elements, , the normalizer of corresponds to , which has elements, and
Conversely every additive code with elements arises in this way from a stabilizer group, unique up to the signs of its generators. 3. Linear codes. If is -linear, then , the Hermitian dual. Hence a linear code with yields an stabilizer code with , provided .
This is the formulation of Calderbank, Rains, Shor and Sloane. Any of the six bijections between and the nonzero elements of 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.
- Qubit stabilizer codes with logical qubits; the distance statement uses the characterisation of the distance by the normalizer.
- with , and the trace-Hermitian form .
Proof · Proof of the correspondence between stabilizer codes and additive codes over GF(4)
1. Dictionary. Since is a basis of over , the map is an -linear bijection, and its -th coordinate is nonzero exactly when , so weights correspond. Both forms are sums over coordinates, so it suffices to compare them for . With , using and ,
Taking the trace, with and , gives , the symplectic product of and .
2. Stabilizer codes. The binary representation of is an isotropic subspace of dimension : it is a subspace because the representation is a homomorphism, it has elements because the only scalar in is the identity, and it is isotropic because is abelian and commutation is measured by the symplectic form. By item 1, is additive with elements and . A Pauli operator commutes with all of exactly when its vector lies in , so the normalizer corresponds to , of size . The distance of the code is the least weight of a Pauli operator in the normalizer that is not, up to phase, in (distance of a stabilizer code), which translates to the displayed formula.
Conversely, given , let , choose a basis of and let be either of the two Hermitian Pauli operators with vector . The commute because is isotropic. A product of a nonempty subset of them has a nonzero vector, hence is not ; so the group they generate does not contain and is a stabilizer group with independent generators. Different sign choices give the groups whose code spaces are the joint eigenspaces of .
3. Linear codes. Let be -linear. The inclusion holds because . For the reverse, let and , and put . Then , and since also . The elements of trace zero are and , and , so . Hence .
Now let be linear of dimension with and put , a linear code of dimension with . Then , so item 2 gives a stabilizer code with logical qubits and distance , which is at least the minimum distance of .
For systems of dimension in place of qubits the same dictionary holds with the trace-symplectic form on , and with the Hermitian form on for linear codes: a linear code containing its Hermitian dual gives an stabilizer code (Ashikhmin and Knill; Ketkar, Klappenecker, Kumar and Sarvepalli).
Worked Examples
The field with four elements
Over the polynomial has no root ( and both give ), so it is irreducible. Adjoining a root gives with . Write . Then
The nonzero elements form a cyclic group of order 3, squaring swaps and , and the trace takes the values , , , .
The field with eight elements
has no root in and, being cubic, is therefore irreducible. Let be a root, so . The powers of are
all seven nonzero elements, so is primitive. Products are computed by adding exponents modulo 7: for instance , which one confirms by expanding to .
Trace. . For this is , and for it is . In full, for and for : four elements of trace 1, and four of trace 0 counting , as surjectivity requires.
A self-dual basis. satisfies for : the squares are , all of trace 1, and the mixed products are , and , all of trace 0. Writing each element of in this basis turns a code over 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 at to obtain a code. For the codeword is
of weight 6: the single zero is at the root . The polynomial 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 and its cyclic shifts. Under , the first two become
Their Hermitian product is
and . The four generators span, over , a set of 16 vectors that is closed under multiplication by : it is a linear code , Hermitian self-orthogonal. Its Hermitian dual is a code containing , and item 3 of the theorem above gives and : the code.
Applications
- Stabilizer and CSS codes. Commutation of checks is self-orthogonality: symplectic in general, Euclidean for CSS codes, Hermitian for -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 have a Pauli group labelled by , 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 of the cyclic-code definition.
Limitations and Common Pitfalls
- is not . In the integers modulo 4, , so they do not form a field. for is never the ring of integers modulo ; it has characteristic , so in and .
- Element names depend on the chosen polynomial. built from and from are isomorphic, but the element called is different, and so are statements such as "". 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 , is irreducible but its roots have order 5, not 15.
- Additive is weaker than linear. A stabilizer group corresponds to an additive code over , closed under addition only. Most stabilizer codes are not -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 " 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.