The dual of a linear code is the set of words orthogonal to every codeword. A code contained in its dual is self-orthogonal, one that contains its dual is dual-containing; these are the conditions quantum code constructions impose on classical codes.
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.
Equip Fqn with the bilinear form x⋅y=∑i=1nxiyi. The dual
of a linear codeC⊆Fqn is
C⊥={x∈Fqn:x⋅c=0for all c∈C}.
If C has dimension k then C⊥ is a linear code of dimension n−k, and
(C⊥)⊥=C. A generator matrix of C is a parity-check matrix of
C⊥, and the other way round.
The form is not positive definite: over F2, x⋅x=wt(x)mod2,
so every word of even weight is orthogonal to itself. A code and its dual can therefore
intersect, and can even contain one another:
C is self-orthogonal (or weakly self-dual) if C⊆C⊥;
C is dual-containing if C⊥⊆C;
C is self-dual if C=C⊥, which forces n=2k.
C is dual-containing exactly when C⊥ is self-orthogonal. In terms of a
parity-check matrix H of C, the code is dual-containing if and only if
HHT=0. The relation dimC+dimC⊥=n holds in every case, whether
or not the two codes intersect.
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)
Dual, self-orthogonal/dual-containing/self-dual definitions, dim C + dim C^perp = n, double dual, and the H H^T = 0 criterion re-derived and compared with Guruswami-Rudra-Sudan, Essential Coding Theory (open draft), Def. 2.6.1 and the discussion of codes intersecting their duals (Sec. 2.6); Huffman-Pless not openly readable; Crossref metadata checked.
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 521bec2c665a6a4b. Source file knowledge/records/definition/dual-code.md in the content repository (readable there once it is public).