Skip to main content
KetQat

Appearance

Definition · introductory

Dual code and self-orthogonality

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\F_q^n with the bilinear form x⋅y=∑i=1nxiyix \cdot y = \sum_{i=1}^{n} x_i y_i. The dual of a linear code C⊆FqnC \subseteq \F_q^n is

C⊥  =  { x∈Fqn  :  x⋅c=0 for all c∈C }.C^{\perp} \;=\; \{\, x \in \F_q^n \;:\; x \cdot c = 0 \ \text{for all } c \in C \,\} .

If CC has dimension kk then C⊥C^{\perp} is a linear code of dimension n−kn - k, and (C⊥)⊥=C(C^{\perp})^{\perp} = C. A generator matrix of CC is a parity-check matrix of C⊥C^{\perp}, and the other way round.

The form is not positive definite: over F2\F_2, x⋅x=wt⁡(x) mod 2x \cdot x = \operatorname{wt}(x) \bmod 2, so every word of even weight is orthogonal to itself. A code and its dual can therefore intersect, and can even contain one another:

  • CC is self-orthogonal (or weakly self-dual) if C⊆C⊥C \subseteq C^{\perp};
  • CC is dual-containing if C⊥⊆CC^{\perp} \subseteq C;
  • CC is self-dual if C=C⊥C = C^{\perp}, which forces n=2kn = 2k.

CC is dual-containing exactly when C⊥C^{\perp} is self-orthogonal. In terms of a parity-check matrix HH of CC, the code is dual-containing if and only if HHT=0H H^{T} = 0. The relation dim⁡C+dim⁡C⊥=n\dim C + \dim C^{\perp} = n holds in every case, whether or not the two codes intersect.

Builds on
Needed for

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. W. Cary Huffman, Vera Pless (2003). Fundamentals of Error-Correcting Codes. Cambridge University Press. doi:10.1017/CBO9780511807077

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)

    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

  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 521bec2c665a6a4b. Source file knowledge/records/definition/dual-code.md in the content repository (readable there once it is public).