Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hsu–Anastasopoulos Codes: Sparse-Graph Ensembles

Updated 5 July 2026
  • 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 (l~,r~,g)(\tilde l,\tilde r,g) HA code is specified by two random binary matrices: H3TH_3^T, whose columns have weight l~\tilde l and rows have weight r~\tilde r, and H4TH_4^T, an invertible N×NN\times N matrix with both column and row weight gg. The parity-check matrix of the HA code is then

HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},

and an equivalent representation is the set of x{0,1}Nx\in\{0,1\}^N satisfying H3Ts+H4Tx=0H_3^T s + H_4^T x = 0 for some state-vector H3TH_3^T0, with puncturing applied appropriately (Kasai et al., 2011).

The same code family is described in a more recent socket-based form by fixing integers H3TH_3^T1 and H3TH_3^T2, drawing a H3TH_3^T3-regular LDPC matrix

H3TH_3^T4

together with an independent square H3TH_3^T5-regular matrix

H3TH_3^T6

and defining

H3TH_3^T7

An equivalent extended parity-check representation is

H3TH_3^T8

with

H3TH_3^T9

The paper notes that l~\tilde l0 is equivalent to l~\tilde l1 and l~\tilde l2 (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 l~\tilde l3, the inner map l~\tilde l4, 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 l~\tilde l5 has l~\tilde l6 ones and each column of l~\tilde l7 has at most l~\tilde l8 nonzeros per column, each column of l~\tilde l9 has weight at most r~\tilde r0, while each row inherits weight r~\tilde r1 via r~\tilde r2 (Kasai et al., 2011). The design rate of the r~\tilde r3 HA ensemble is

r~\tilde r4

and its edge-density per information bit satisfies

r~\tilde r5

hence remains finite for fixed r~\tilde r6 (Kasai et al., 2011).

In the socket-based formulation, the actual dimension obeys

r~\tilde r7

and for fixed r~\tilde r8 one has r~\tilde r9 with high probability and H4TH_4^T0 with high probability, yielding

H4TH_4^T1

The design rate is therefore

H4TH_4^T2

which stays bounded away from H4TH_4^T3 as long as H4TH_4^T4 (Kasai, 25 Mar 2026).

A multi-edge-type description is also available. HA codes may be represented by the pair

H4TH_4^T5

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

H4TH_4^T6

where H4TH_4^T7 is H4TH_4^T8 with column weight H4TH_4^T9 and row weight N×NN\times N0, N×NN\times N1 is N×NN\times N2 with both row and column weight N×NN\times N3, and the first N×NN\times N4 bits are punctured. Its generator matrix is

N×NN\times N5

If one identifies N×NN\times N6 and N×NN\times N7, then

N×NN\times N8

so the N×NN\times N9 HA code is precisely the dual code of the gg0 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

gg1

sets

gg2

and defines

gg3

With the balanced condition gg4, one has gg5, making gg6 a valid CSS pair (Kasai, 25 Mar 2026). The 2026 seeded-BP paper formulates the same relation through sparse punctured matrices gg7, gg8, gg9, the stacked matrix HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},0, and the dense visible-bit parity-check matrices HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},1 satisfying HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},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 HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},3, and any HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},4, there exist constants HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},5 and a sequence of HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},6 HA codes of increasing block length HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},7 such that the rate satisfies

HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},8

the bit-error probability under ML decoding tends to zero as HHA=H3T(H4T)1,H_{\mathrm{HA}} = H_3^T\cdot (H_4^T)^{-1},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 x{0,1}Nx\in\{0,1\}^N0 and a coupling length x{0,1}Nx\in\{0,1\}^N1, then constructs a chain of x{0,1}Nx\in\{0,1\}^N2 coupled sections using a band matrix x{0,1}Nx\in\{0,1\}^N3 for the SC-LDPC component and a band matrix x{0,1}Nx\in\{0,1\}^N4 for the SC-LDGM component. The base matrix is

x{0,1}Nx\in\{0,1\}^N5

where the first x{0,1}Nx\in\{0,1\}^N6 variable nodes are punctured and the remaining are transmitted (Kasai et al., 2011). As x{0,1}Nx\in\{0,1\}^N7, the design rate tends to

x{0,1}Nx\in\{0,1\}^N8

and the density per information bit remains bounded by the same x{0,1}Nx\in\{0,1\}^N9 order (Kasai et al., 2011).

For BEC decoding, the same work defines section-wise erasure probabilities H3Ts+H4Tx=0H_3^T s + H_4^T x = 00 for punctured state nodes and H3Ts+H4Tx=0H_3^T s + H_4^T x = 01 for unpunctured parity nodes. Successful BP decoding corresponds to convergence to the trivial fixed point H3Ts+H4Tx=0H_3^T s + H_4^T x = 02 for all sections. The BP threshold H3Ts+H4Tx=0H_3^T s + H_4^T x = 03 is the largest channel erasure rate for which the only DE fixed point is trivial (Kasai et al., 2011).

The numerical example H3Ts+H4Tx=0H_3^T s + H_4^T x = 04 illustrates threshold saturation on the BEC:

H3Ts+H4Tx=0H_3^T s + H_4^T x = 05 H3Ts+H4Tx=0H_3^T s + H_4^T x = 06 H3Ts+H4Tx=0H_3^T s + H_4^T x = 07
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 H3Ts+H4Tx=0H_3^T s + H_4^T x = 08, H3Ts+H4Tx=0H_3^T s + H_4^T x = 09, i.e. the Shannon limit on the BEC at rate H3TH_3^T00 (Kasai et al., 2011). The same source remarks that with randomized window H3TH_3^T01, the typical “wiggles” in the EXIT curve vanish as H3TH_3^T02 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 H3TH_3^T03 concatenates an outer SC-LDPC pre-code with an inner SC-LDGM code. Sections H3TH_3^T04 each contain H3TH_3^T05 variable nodes H3TH_3^T06, forming an H3TH_3^T07 spatially coupled LDPC code of rate

H3TH_3^T08

which tends to H3TH_3^T09 as H3TH_3^T10. The pre-coded bits satisfy H3TH_3^T11 (Sakata et al., 2013).

The inner SC-LDGM encoder operates indefinitely. At each time H3TH_3^T12, it chooses a check section H3TH_3^T13 uniformly in H3TH_3^T14, then chooses H3TH_3^T15 shifts and H3TH_3^T16 indices uniformly, forms one degree-H3TH_3^T17 parity check from the corresponding variables in a sliding window of width H3TH_3^T18, and transmits it over H3TH_3^T19. This process repeats “forever,” producing a rateless stream (Sakata et al., 2013).

For BP decoding on the BEC, the ensemble tracks erasure-message densities H3TH_3^T20 from variables to pre-code checks and H3TH_3^T21 from variables to inner checks, with bit-error probability

H3TH_3^T22

The overhead is defined by

H3TH_3^T23

and because each variable sees a Poisson number of inner-code neighbors, the average inner degree obeys

H3TH_3^T24

The asymptotic overhead threshold is

H3TH_3^T25

and the ensemble is capacity-achieving if H3TH_3^T26 (Sakata et al., 2013).

A stability analysis yields a lower bound. Linearization around the all-zero fixed point gives a banded Jacobian H3TH_3^T27 with spectral radius approximately

H3TH_3^T28

and successful decoding requires H3TH_3^T29. This implies

H3TH_3^T30

hence

H3TH_3^T31

As H3TH_3^T32,

H3TH_3^T33

(Sakata et al., 2013).

The numerical examples are particularly explicit. For H3TH_3^T34, capacity-achieving behavior requires

H3TH_3^T35

Since H3TH_3^T36, the bound predicts H3TH_3^T37 and H3TH_3^T38; density evolution gives H3TH_3^T39 and H3TH_3^T40 (Sakata et al., 2013). By contrast, for H3TH_3^T41, one has H3TH_3^T42, so the bound predicts H3TH_3^T43 with value approximately H3TH_3^T44, and DE confirms H3TH_3^T45 and H3TH_3^T46 (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 H3TH_3^T47, 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 H3TH_3^T48-constituent code H3TH_3^T49, while the H3TH_3^T50-constituent is built from the complementary MacKay–Neal side in a balanced triple satisfying H3TH_3^T51. The resulting CSS code has design quantum rate

H3TH_3^T52

and the classical distance statements lift because

H3TH_3^T53

(Kasai, 25 Mar 2026).

For fixed degrees satisfying

H3TH_3^T54

there exists a constant H3TH_3^T55 such that

H3TH_3^T56

for every H3TH_3^T57; thus H3TH_3^T58 with high probability (Kasai, 25 Mar 2026). For the finite list

H3TH_3^T59

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 H3TH_3^T60, H3TH_3^T61, H3TH_3^T62, forms the coupled versions H3TH_3^T63, H3TH_3^T64, H3TH_3^T65, and constructs

H3TH_3^T66

on a ring of length H3TH_3^T67 with memory H3TH_3^T68 (Kasai, 30 Jun 2026). BP uses five message types with erasure probabilities H3TH_3^T69, and the uncoupled density evolution splits into a three-dimensional H3TH_3^T70-side recursion and a two-dimensional H3TH_3^T71-side recursion (Kasai, 30 Jun 2026).

Potential functions H3TH_3^T72 and H3TH_3^T73 are then introduced. The resulting potential thresholds are

H3TH_3^T74

In the equal-rate specialization H3TH_3^T75, this becomes

H3TH_3^T76

namely the quantum-erasure hashing bound (Kasai, 30 Jun 2026). Using the coupled-vector potential method and a seed interval of H3TH_3^T77 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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hsu-Anastasopoulos Codes.