Nested CSS Code Pairs
- The paper demonstrates that nested CSS pairs can be constructed via classical code inclusion, chain maps, and geometric methods, enabling efficient logical operator transfer and fault-tolerant quantum error correction.
- It outlines algebraic, dual-containing, and homological formulations that unify cyclic, toric, and finite-degree LDPC constructions to achieve near-optimal code parameters.
- The discussion highlights open challenges in extending these techniques to non-CSS measurements, sparse decoding strategies, and practical implementations in quantum computing.
Nested Calderbank–Shor–Steane code pairs are families of CSS constructions in which one code, code space, or chain complex is related to another by an inclusion, a dual-containment condition, or a homological map that preserves the logical sector. In the most classical formulation, the relevant data are linear codes , or the dual-containing specialization , from which CSS stabilizer codes are obtained. In more recent homological formulations, a “nested pair” may instead mean two CSS chain complexes linked by a chain map, a mapping cone, or a pushout, so that logical operators, code parameters, or measurement outcomes are transferred between distinct codes rather than extracted from a single dual-containing classical code. Across these formulations, nested CSS pairs underpin logical measurements, code surgery, code embeddings, communication-efficient quantum secret sharing, and finite-degree quantum LDPC constructions (Guardia, 2017, Huang et al., 2022, Cowtan et al., 2023, Yuan, 7 Jul 2025, Kasai, 25 Mar 2026).
1. Algebraic foundations of nesting in CSS theory
A binary CSS code with parameters can be specified by parity-check matrices
satisfying
The -stabilizers are rows of , the -stabilizers are rows of , logical -operators are representatives in 0, and logical 1-operators are in 2. The corresponding distances are
3
Equivalently, the code is a length-3 chain complex
4
with 5, 6, and 7 (Huang et al., 2022).
A second, widely used formulation starts from nested classical codes. If 8, then 9 is an 0 stabilizer code with
1
The dual-containing specialization 2 yields an 3 stabilizer code that is pure to 4 (Senthoor et al., 2022, Guardia, 2017).
These two formulations are compatible. The parity-check condition 5 is the matrix form of the chain-complex relation 6, while the classical inclusion 7 is the conventional CSS orthogonality condition. Nested CSS pairs therefore include both code pairs defined by subspace containment and code pairs defined by morphisms between distinct chain complexes (Huang et al., 2022, Yuan, 7 Jul 2025).
2. Dual-containing and geometric realizations
In algebraic coding theory, the most direct nested CSS pair is the chain
8
The paper on cyclic codes restricts precisely to this situation and uses the CSS lemma: if there exists a classical linear 9 code 0 such that 1, then there exists an 2 stabilizer code that is pure to 3 (Guardia, 2017).
That construction is realized through 4-cyclotomic cosets. If a cyclic code has a defining set consisting of a single 5-coset 6 containing 7 consecutive integers, then the BCH bound gives 8. Under the conditions of Theorem 3.1, there exists an 9 cyclic code, where 0 is the cardinality of the 1-coset containing those consecutive integers. If additionally 2, the code is dual-containing and produces an 3 quantum code (Guardia, 2017). The explicit examples include 4, 5, 6, and 7; some of these satisfy 8, so they lie close to the Quantum Singleton Bound (Guardia, 2017).
A geometric variant appears in toric-surface constructions. There, the classical code 9 is an evaluation code obtained from sections of 0 on a smooth complete toric surface, evaluated on a finite support set 1. The key duality mechanism is a dualizing differential form
2
whose residues define a weighted dual. The resulting restricted code satisfies
3
where 4. If the weights are squares, a coordinatewise rescaling produces 5, hence a dual-containing CSS pair in the usual Euclidean sense (Hansen, 2012). On toric Hirzebruch surfaces, the construction is made explicit through toric divisors, intersection theory, and residue calculations (Hansen, 2012).
These two lines of work illustrate that “nested CSS pair” need not refer to a single combinatorial paradigm. In one case the nesting is encoded by cyclotomic-coset combinatorics; in the other it is encoded by divisor theory and residues. The invariant feature is the same: a classical code contains an appropriate dual, so that the CSS orthogonality constraint is satisfied (Guardia, 2017, Hansen, 2012).
3. Homological and categorical formulations
A broader notion of nested CSS pair arises when CSS codes are treated as chain complexes rather than merely as dual-containing classical codes. In the homomorphic-measurement framework, one has a data code 6, an ancilla code 7, and a binary matrix
8
describing the CNOT pattern. The defining compatibility conditions are
9
These conditions imply the existence of maps
0
with
1
so the ancilla and data codes form a commutative diagram of chain complexes. The ancilla–data pair is therefore “nested” by a chain homomorphism rather than by literal subspace inclusion (Huang et al., 2022).
The embedding framework of 2025 makes this point systematic. A CSS code with parity-check matrices 2 is represented as
3
with 4 encoding 5-type logicals and 6 encoding 7-type logicals. The central construction is a multi-level cone whose differential is block lower triangular. In the 3-level case,
8
and the “embedded” code is the column complex
9
Under the regularity assumption 0 and 1, Theorem 1.1 gives a natural isomorphism
2
In this sense, nested CSS pairs consist of an input code and a larger output code with canonically isomorphic logical sectors, even though the output may have more qubits, more checks, different geometry, or lower check weight (Yuan, 7 Jul 2025).
Code surgery provides a categorical analogue. There, a code map is a chain map 3, and surgery is expressed by a pushout in the category of chain complexes. Merging two codes along a shared logical operator subcomplex 4 produces a new code 5 that identifies the logicals represented on 6 and 7. This formulation treats nested CSS pairs as monic chain maps, subcomplex inclusions, and universal colimits rather than only as dual-containing classical code pairs (Cowtan et al., 2023).
4. Nested pairs in logical measurement, surgery, and code modification
Homomorphic logical measurement makes the operational role of nested CSS pairs explicit. The ancilla is prepared in
8
whose 9-stabilizer space is 0. After the CNOT pattern 1, any 2 transforms to 3. If 4, the outcome is classical syndrome information. If 5, then 6 is a nontrivial ancilla logical 7, and 8 is a nontrivial 9-type logical operator of the data code. Thus the logical 0-operators implementable by a gadget are
1
modulo stabilizers (Huang et al., 2022).
This framework unifies Shor and Steane measurements. Shor measurement is a degenerate homomorphic gadget with ancilla distance 2, while Steane measurement is the identity case 3 and 4. The intermediate regime uses ancilla codes with 5, 6, and LDPC structure, thereby “filling the space between Shor and Steane” (Huang et al., 2022). The related syndrome-extraction work on toric codes states that blocks of size 7 can be used to decode errors in 8 rounds of measurements, which makes the interpolation between Shor-style and Steane-style ancillas explicit at the circuit level (Huang et al., 2020).
For surface codes, the ancilla can be constructed from a covering space. If the data lattice is 9 on a closed surface 00, a chosen logical loop 01 determines a subgroup 02, an intermediate quotient 03, and a finite subcomplex 04 encoding exactly one logical qubit with distance 05. The induced map
06
yields chain maps 07, with 08, satisfying the homomorphic conditions. Conventional surface-code decoders, such as minimum-weight perfect matching, can be directly applied to these constructions (Huang et al., 2022).
The same operational theme appears in code surgery. If two CSS codes share a separated logical operator subcomplex, their 09-merge identifies the corresponding logical 10’s. Under separation, the merged code has
11
and, if no extra logical qubits are introduced,
12
For LDPC families, the merged code remains LDPC, with
13
14
The sandwiched merge protocol then gives a distance-15 measurement of 16 or, dually, 17, provided the gauge-fixing and distance-bounded-below conditions hold (Cowtan et al., 2023).
This suggests that nested CSS pairs serve not only as static code constructions but also as transition objects between codes. In homomorphic measurement they transfer a logical observable to an ancilla. In surgery they transfer a shared logical degree of freedom to a pushout code. In both cases, the nesting is the mechanism that controls fault propagation and logical equivalence (Huang et al., 2022, Cowtan et al., 2023).
5. Extended, concatenated, and communication-efficient nested pairs
In communication-efficient quantum secret sharing, nested CSS pairs are extended rather than merely embedded. The basic object is the extended CSS code
18
built from a nested pair 19 and a matrix 20 with row space 21, subject to
22
The resulting classical codes on 23 qudits are
24
so the logical dimension remains 25 (Senthoor et al., 2022).
The access structure is determined by further nested pairs derived from 26 and subcodes 27. With prior access to 28 extension qudits, the recovery threshold is
29
The full CE-QSS construction then uses a nested chain
30
with
31
An outer 32 is concatenated with an inner 33. In the GRS-based instantiation, the resulting CE-QSS scheme meets both the storage and communication cost bounds with equality (Senthoor et al., 2022).
A related, but asymptotic, use of nesting appears in partially concatenated CSS codes. There the key matrices are
34
so that
35
This nested pair yields a PC-CSS code 36 with
37
thus asymptotically achieving the quantum Gilbert–Varshamov bound. The same paper combines this with Steane’s enlargement by constructing a nested triple
38
which yields enlarged stabilizer codes satisfying
39
It also gives two explicit families,
40
and
41
together with the stated 42, 43, and 44 encoding and decoding complexities (Fan et al., 2021).
Across these constructions, the nested pair is the device that separates roles. One pair carries the secret or the data, another pair carries extension or concatenation structure, and the inclusion relations determine which errors are logical, which are degenerate, and which recovery sets are authorized (Senthoor et al., 2022, Fan et al., 2021).
6. Finite-degree quantum LDPC pairs and current directions
The most recent finite-degree LDPC construction makes the nesting explicit at the level of sparse matrices. One starts from
45
so that
46
With a square sparse matrix 47, the visible classical codes are
48
Because 49, one has 50, hence 51 is a CSS pair (Kasai, 25 Mar 2026).
In the homogeneous regular regime, with a balanced triple satisfying 52, the design quantum rate is
53
so positivity requires 54. For fixed balanced triples with even degrees and 55, the actual rates converge in probability to the design rates, and both constituent classical codes have minimum distance 56 with high probability. Consequently the CSS relative distances are also linear (Kasai, 25 Mar 2026).
For the seven explicit balanced triples
57
the same paper proves, by a rigorous computer-assisted exponent analysis, that both classical constituents attain the classical GV distance and the resulting CSS code attains the CSS GV bound at finite degree (Kasai, 25 Mar 2026). This moves the notion of nested CSS pair into a regime where bounded check degree, positive rate, and GV-optimal asymptotic distance coexist.
Several open directions are stated explicitly in the literature. Homomorphic logical measurements are left open beyond the CSS setting: “Generalizations of our framework to non-CSS Pauli measurements is a natural direction, which is left for future work” (Huang et al., 2022). For product-based LDPC codes, the same paper states that “It is unlikely that for codes with product constructions, useful homomorphic gadgets have product structure as well” (Huang et al., 2022). The embedding framework identifies a general homological criterion for preserving logical qubits, but it also notes that distance arguments for some subdivisions remain open (Yuan, 7 Jul 2025). The finite-degree LDPC construction leaves sparse syndrome representatives and practical BP decoding as unresolved issues and formulates a conjecture that any balanced triple with 58 should attain finite-degree GV behavior (Kasai, 25 Mar 2026).
A common misconception is that nested CSS code pairs are exhausted by the dual-containing condition 59. The literature here shows a broader picture. Nested pairs include dual-containing cyclic and toric-surface codes, ancilla–data pairs linked by a chain homomorphism, input–output code pairs related by mapping cones, and code families glued by surgery pushouts (Guardia, 2017, Hansen, 2012, Huang et al., 2022, Cowtan et al., 2023, Yuan, 7 Jul 2025). This suggests that “nested CSS pair” is best understood as a structural relation that preserves CSS compatibility while transporting logical information across algebraic, geometric, and operational transformations.