A linear code closed under cyclic shifts of its coordinates. Read as polynomials modulo x^n − 1, cyclic codes are exactly the ideals of that ring, each generated by a divisor of x^n − 1, and are specified by the roots of that divisor.
Established definitionMachine-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.
Identify a word with the polynomial c(x)=c0+c1x+⋯+cn−1xn−1 in
the ring Rn=Fq[x]/(xn−1). The cyclic shift is multiplication by x, so a
linear code is cyclic exactly when it is an ideal of Rn: closed under addition
and under multiplication by arbitrary polynomials.
Generator polynomial. Every cyclic code C={0} contains a unique monic
polynomial g(x) of least degree. It divides xn−1, and
C={a(x)g(x):dega<n−degg}. Hence
dimC=n−degg, and cyclic codes of length n correspond one-to-one to monic
divisors of xn−1.
Check polynomial. With h(x)=(xn−1)/g(x), a word c is in C if and only
if c(x)h(x)=0 in Rn.
Zeros. Suppose gcd(n,q)=1. Then xn−1 has n distinct roots, the
n-th roots of unity, in a suitable extension Fqm; they are the powers of a
primitive n-th root of unityα. The code is determined by the set of roots
of g:
C={c(x)∈Rn:c(αj)=0 for all j∈T},T={j:g(αj)=0}.
The defining setT is closed under multiplication by q modulo n, because
g has coefficients in Fq and so g(βq)=g(β)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.
Rudolf Lidl, Harald Niederreiter (1996).Finite Fields. Cambridge University Press (Encyclopedia of Mathematics and its Applications 20, 2nd edition). doi:10.1017/CBO9780511525926
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Ideal characterisation, generator polynomial (divides x^n-1, dim = n - deg g), check polynomial, defining set closed under multiplication by q re-derived; checked numerically for all binary cyclic codes of length 15 built from products of minimal polynomials over GF(16). The pointer to Huffman-Pless chapter 4 was not verified (book not openly readable).
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10
Current revision 386601bf6c8e727e. Source file knowledge/records/definition/cyclic-code.md in the content repository (readable there once it is public).