Hsu–Anastasopoulos Codes: Sparse-Graph Ensembles
- Hsu–Anastasopoulos codes are sparse-graph ensembles combining an LDPC-type outer constraint with an LDGM-type inner mapping to achieve bounded-density, capacity-achieving performance on binary-input symmetric channels.
- They are dual to MacKay–Neal codes and, when spatially coupled, exhibit improved BP decoding thresholds that approach Shannon limits, particularly on the binary erasure channel.
- The construction underpins both classical capacity-achieving codes and quantum CSS code families, providing efficient decoding with finite-degree guarantees and robust asymptotic distance properties.
Searching arXiv for relevant papers on Hsu–Anastasopoulos codes and related spatially coupled / quantum generalizations. Hsu–Anastasopoulos codes are sparse-graph code ensembles constructed by combining an LDPC-type outer constraint system with an LDGM-type inner mapping so as to obtain bounded-density, capacity-achieving behavior under optimal decoding on memoryless binary-input symmetric channels. In the formulations summarized in the literature, they appear both as classical linear codes and, through spatial coupling and CSS nesting, as building blocks for finite-degree quantum code families. A central structural fact is that HA codes are dual to MacKay–Neal codes; a central algorithmic fact is that spatial coupling changes their practical decoding profile on the binary erasure channel by bringing BP thresholds close to, or in density-evolution analyses up to, the relevant information-theoretic limits [(Kasai et al., 2011); (Sakata et al., 2013); (Kasai, 30 Jun 2026); (Kasai, 25 Mar 2026)].
1. Classical definition and ensemble structure
In the formulation given by Kasai and Sakaniwa, a basic HA code is specified by two random binary matrices: , whose columns have weight and rows have weight , and , an invertible matrix with both column and row weight . The parity-check matrix of the HA code is then
and an equivalent representation is the set of satisfying for some state-vector 0, with puncturing applied appropriately (Kasai et al., 2011).
The same code family is described in a more recent socket-based form by fixing integers 1 and 2, drawing a 3-regular LDPC matrix
4
together with an independent square 5-regular matrix
6
and defining
7
An equivalent extended parity-check representation is
8
with
9
The paper notes that 0 is equivalent to 1 and 2 (Kasai, 25 Mar 2026).
These two descriptions emphasize complementary aspects of the ensemble. The earlier form foregrounds the bounded row- and column-weight structure of the induced parity-check matrix, while the later form makes explicit the outer code 3, the inner map 4, and the role of hidden or punctured variables. This suggests viewing HA codes as concatenated sparse ensembles in which the outer regular LDPC structure is transformed by a regular inner map rather than by a dense random transformation.
2. Degree profile, rate, and bounded density
The bounded-density property is explicit in the original construction. Because each column of 5 has 6 ones and each column of 7 has at most 8 nonzeros per column, each column of 9 has weight at most 0, while each row inherits weight 1 via 2 (Kasai et al., 2011). The design rate of the 3 HA ensemble is
4
and its edge-density per information bit satisfies
5
hence remains finite for fixed 6 (Kasai et al., 2011).
In the socket-based formulation, the actual dimension obeys
7
and for fixed 8 one has 9 with high probability and 0 with high probability, yielding
1
The design rate is therefore
2
which stays bounded away from 3 as long as 4 (Kasai, 25 Mar 2026).
A multi-edge-type description is also available. HA codes may be represented by the pair
5
which makes explicit the two types of check-to-bit edges and the punctured information bits (Kasai et al., 2011). In coding-theoretic terms, this situates HA codes within the MET sparse-graph framework rather than as a single-edge regular LDPC ensemble.
3. Duality with MacKay–Neal codes
A defining structural property of HA codes is their formal duality with MacKay–Neal codes. In the MN construction, one forms
6
where 7 is 8 with column weight 9 and row weight 0, 1 is 2 with both row and column weight 3, and the first 4 bits are punctured. Its generator matrix is
5
If one identifies 6 and 7, then
8
so the 9 HA code is precisely the dual code of the 0 MN code (Kasai et al., 2011).
The same duality reappears in the quantum setting. In the CSS nesting construction, one chooses a second regular ensemble
1
sets
2
and defines
3
With the balanced condition 4, one has 5, making 6 a valid CSS pair (Kasai, 25 Mar 2026). The 2026 seeded-BP paper formulates the same relation through sparse punctured matrices 7, 8, 9, the stacked matrix 0, and the dense visible-bit parity-check matrices 1 satisfying 2 (Kasai, 30 Jun 2026).
This duality is not merely formal. It links HA codes to two major lines of work: classical punctured sparse-graph codes that achieve capacity under MAP decoding, and finite-degree CSS code constructions in which the HA side controls one constituent of the quantum code pair.
4. Capacity-achieving property under MAP or ML decoding
The original Hsu–Anastasopoulos theorem, as summarized in the literature, states that for any binary-input memoryless symmetric channel of capacity 3, and any 4, there exist constants 5 and a sequence of 6 HA codes of increasing block length 7 such that the rate satisfies
8
the bit-error probability under ML decoding tends to zero as 9, and the parity-check density remains bounded (Kasai et al., 2011).
The significance of this result is specific. Standard capacity-achieving sparse-graph constructions often require increasing node degrees, whereas HA codes were introduced precisely to combine asymptotic optimality under optimal decoding with bounded column and row weights. The later spatial-coupling work emphasizes this point directly: one “needs to increase the column and row weight” for capacity-achieving spatially coupled LDPC codes in the standard setting, while HA and MN codes achieve capacity of memoryless binary-input symmetric-output channels under MAP decoding with bounded column and row weight of the parity-check matrices (Kasai et al., 2011).
A common misconception is to conflate this MAP/ML optimality with practical BP optimality in the uncoupled ensemble. The uncoupled HA construction is presented as capacity-achieving under ML or MAP decoding, not as a statement about the BP threshold. The later literature addresses exactly that gap by introducing spatial coupling and, in the rateless setting, by coupling both the pre-code and the LDGM inner code [(Kasai et al., 2011); (Sakata et al., 2013)].
5. Spatially coupled HA codes on the binary erasure channel
The protograph-based spatially coupled HA ensemble of Kasai and Sakaniwa fixes 0 and a coupling length 1, then constructs a chain of 2 coupled sections using a band matrix 3 for the SC-LDPC component and a band matrix 4 for the SC-LDGM component. The base matrix is
5
where the first 6 variable nodes are punctured and the remaining are transmitted (Kasai et al., 2011). As 7, the design rate tends to
8
and the density per information bit remains bounded by the same 9 order (Kasai et al., 2011).
For BEC decoding, the same work defines section-wise erasure probabilities 0 for punctured state nodes and 1 for unpunctured parity nodes. Successful BP decoding corresponds to convergence to the trivial fixed point 2 for all sections. The BP threshold 3 is the largest channel erasure rate for which the only DE fixed point is trivial (Kasai et al., 2011).
The numerical example 4 illustrates threshold saturation on the BEC:
| 5 | 6 | 7 |
|---|---|---|
| 1 | 0.69542 | 0.2857 |
| 2 | 0.59444 | 0.3636 |
| 4 | 0.51697 | 0.4211 |
| 8 | 0.50046 | 0.4571 |
| 16 | 0.49998 | 0.4776 |
| 32 | 0.49991 | 0.4886 |
As 8, 9, i.e. the Shannon limit on the BEC at rate 00 (Kasai et al., 2011). The same source remarks that with randomized window 01, the typical “wiggles” in the EXIT curve vanish as 02 grows (Kasai et al., 2011).
This establishes the practical role of spatial coupling for HA codes. The uncoupled family provides bounded-density capacity under MAP or ML decoding; the coupled family empirically brings BP decoding close to the Shannon limit on the BEC while preserving bounded degrees.
6. Spatially coupled precoded rateless HA ensembles
A distinct spatially coupled HA construction appears in the rateless setting. The ensemble denoted 03 concatenates an outer SC-LDPC pre-code with an inner SC-LDGM code. Sections 04 each contain 05 variable nodes 06, forming an 07 spatially coupled LDPC code of rate
08
which tends to 09 as 10. The pre-coded bits satisfy 11 (Sakata et al., 2013).
The inner SC-LDGM encoder operates indefinitely. At each time 12, it chooses a check section 13 uniformly in 14, then chooses 15 shifts and 16 indices uniformly, forms one degree-17 parity check from the corresponding variables in a sliding window of width 18, and transmits it over 19. This process repeats “forever,” producing a rateless stream (Sakata et al., 2013).
For BP decoding on the BEC, the ensemble tracks erasure-message densities 20 from variables to pre-code checks and 21 from variables to inner checks, with bit-error probability
22
The overhead is defined by
23
and because each variable sees a Poisson number of inner-code neighbors, the average inner degree obeys
24
The asymptotic overhead threshold is
25
and the ensemble is capacity-achieving if 26 (Sakata et al., 2013).
A stability analysis yields a lower bound. Linearization around the all-zero fixed point gives a banded Jacobian 27 with spectral radius approximately
28
and successful decoding requires 29. This implies
30
hence
31
As 32,
33
The numerical examples are particularly explicit. For 34, capacity-achieving behavior requires
35
Since 36, the bound predicts 37 and 38; density evolution gives 39 and 40 (Sakata et al., 2013). By contrast, for 41, one has 42, so the bound predicts 43 with value approximately 44, and DE confirms 45 and 46 (Sakata et al., 2013).
The paper interprets this as the rateless hallmark: the transmitter never stops, the receiver stops upon decoding, and the overhead required tends to zero as the block length grows, while all variable-node degrees remain bounded (Sakata et al., 2013). It also contrasts this with SC-LDGM codes alone, whose decoding error probability is bounded away from 47, thereby motivating the HA-style concatenation of SC-LDPC and SC-LDGM components (Sakata et al., 2013).
7. Quantum generalizations: CSS nesting, seeded BP decoding, and distance
HA codes now also function as constituents of quantum LDPC code constructions. In the finite-degree CSS-GV work, the HA side is the 48-constituent code 49, while the 50-constituent is built from the complementary MacKay–Neal side in a balanced triple satisfying 51. The resulting CSS code has design quantum rate
52
and the classical distance statements lift because
53
For fixed degrees satisfying
54
there exists a constant 55 such that
56
for every 57; thus 58 with high probability (Kasai, 25 Mar 2026). For the finite list
59
a computer-assisted proof shows attainment of the classical GV distance on the HA side, and consequently the CSS-GV distance for the resulting quantum codes (Kasai, 25 Mar 2026).
A further development is the spatially coupled MN/HA CSS ensemble under hard-erasure BP decoding on the quantum erasure channel. There, one defines sparse punctured matrices 60, 61, 62, forms the coupled versions 63, 64, 65, and constructs
66
on a ring of length 67 with memory 68 (Kasai, 30 Jun 2026). BP uses five message types with erasure probabilities 69, and the uncoupled density evolution splits into a three-dimensional 70-side recursion and a two-dimensional 71-side recursion (Kasai, 30 Jun 2026).
Potential functions 72 and 73 are then introduced. The resulting potential thresholds are
74
In the equal-rate specialization 75, this becomes
76
namely the quantum-erasure hashing bound (Kasai, 30 Jun 2026). Using the coupled-vector potential method and a seed interval of 77 sections where all message-erasure probabilities are fixed to zero, the paper proves at the DE level that seeded BP decoding on the finite-degree factor graph reaches this threshold (Kasai, 30 Jun 2026).
A plausible implication is that HA codes have become a unifying object across classical and quantum sparse-graph coding: originally introduced for bounded-density capacity under optimal decoding, then adapted through spatial coupling to improve BP thresholds on the BEC, and finally embedded into CSS constructions that simultaneously address BP decodability and asymptotic distance properties. The current literature, however, distinguishes carefully between DE-level threshold statements, finite-length concentration, block-error convergence, and explicit finite-code realizations, treating the latter as separate questions rather than automatic consequences (Kasai, 30 Jun 2026).