Skip to main content
KetQat

Appearance

Equation · intermediate

Number of logical qubits of a CSS code

A CSS code with check matrices H_X and H_Z on n qubits encodes n minus the two ranks logical qubits; for nested codes this is k1 − k2, and for a chain complex it is the dimension of the first homology group.

Established resultMachine-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.

k  =  n−rank⁡HX−rank⁡HZ  =  dim⁡ker⁡HX−rank⁡HZ  =  dim⁡H1k \;=\; n - \operatorname{rank} H_X - \operatorname{rank} H_Z \;=\; \dim \ker H_X - \operatorname{rank} H_Z \;=\; \dim H_1

The stabilizer group has rank⁡HX+rank⁡HZ\operatorname{rank} H_X + \operatorname{rank} H_Z independent generators, because XX-type and ZZ-type operators have binary vectors (u∣0)(u \mid 0) and (0∣v)(0 \mid v) in complementary coordinates; the dimension theorem gives the first equality, and rank–nullity, dim⁡ker⁡HX=n−rank⁡HX\dim \ker H_X = n - \operatorname{rank} H_X, the second. For the nested codes C2⊆C1C_2 \subseteq C_1 of dimensions k1,k2k_1, k_2 it reads k=(n−(n−k1))−k2=k1−k2k = (n - (n - k_1)) - k_2 = k_1 - k_2, the count of Calderbank and Shor. Rows of HXH_X or HZH_Z that are linearly dependent are harmless: they add redundant checks, not constraints. The formula is the usual starting point for counting logical qubits of product constructions (Breuckmann and Eberhardt).

Holds when

  • HX∈F2mX×nH_X \in \F_2^{m_X \times n} and HZ∈F2mZ×nH_Z \in \F_2^{m_Z \times n} with HXHZT=0H_X H_Z^T = 0; ranks are over F2\F_2.
  • H1=ker⁡∂1/im⁡∂2H_1 = \ker \partial_1 / \operatorname{im} \partial_2 for the complex with ∂1=HX\partial_1 = H_X and ∂2=HZT\partial_2 = H_Z^T.
Builds on
Part of
Stated 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. A. R. Calderbank, Peter W. Shor (1996). Good quantum error-correcting codes exist. Physical Review A 54, 1098-1105. doi:10.1103/PhysRevA.54.1098
  2. Nikolas P. Breuckmann, Jens Niklas Eberhardt (2021). Quantum Low-Density Parity-Check Codes. PRX Quantum 2, 040101. doi:10.1103/PRXQuantum.2.040101arXiv:2103.06309

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)

    Formula k = n - rank H_X - rank H_Z = dim ker H_X - rank H_Z = dim H_1 re-derived from the stabilizer dimension theorem and rank-nullity; k1 - k2 specialisation checked; verified numerically on toric codes L = 2, 3 (k = 2) and the Steane code (k = 1); calderbank-shor-1996 and breuckmann-eberhardt-2021 metadata compared with 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 3f8b409fc2df7f88. Source file knowledge/records/equation/css-code-dimension.md in the content repository (readable there once it is public).