Overview
A quantum low-density parity-check (qLDPC) code is a stabilizer code, almost always a CSS code, whose checks each act on a bounded number of qubits and whose qubits each take part in a bounded number of checks. The surface code is one, but it is also geometrically local in two dimensions, and the Bravyi–Poulin–Terhal bound then forces : one logical qubit per patch, with distance growing only as . Codes whose sparse checks connect distant qubits escape that bound. They can store many logical qubits per block with large distance, and in the limit they reach constant rate together with linear distance.
The subject moved from a long-standing question to a theorem in 2021–2022: the hypergraph product of Tillich and Zémor gave constant rate with distance of order ; a sequence of constructions in 2020–2021 broke that barrier; and Panteleev and Kalachev and Leverrier and Zémor proved that asymptotically good qLDPC codes exist. In parallel, small codes found by computer search, such as the bivariate bicycle codes, have been proposed as fault-tolerant memories needing roughly an order of magnitude fewer qubits than the surface code. The open issues are practical: hardware connectivity, fast decoding and, above all, logical gates.
Intuition
A classical LDPC code is good because a sparse random parity-check matrix still constrains the bits globally: each check is small, but the checks are wired together like an expander graph, and low-weight errors cannot hide. The quantum version needs two sparse check matrices that are orthogonal, , and random sparse matrices essentially never are. The constructions on this page are ways of manufacturing orthogonal pairs.
The hypergraph product does it by multiplication. Take two classical Tanner graphs and form their product, as one forms a grid from two paths. Qubits live on (bit, bit) and (check, check) pairs, checks on mixed pairs, and orthogonality holds for the same reason that the two ways around a square of the grid agree. With two paths the product is the surface code; with two good classical LDPC codes it is a code with constant rate. The weakness is that a logical operator can run along a single "row" of the product, so the distance is limited by the length of one factor, about .
Later constructions twist the product so that no single row is a logical operator. The lifted and balanced products replace each matrix entry by a permutation block from a group action and divide by the symmetry; quantum Tanner codes put qubits on the squares of a highly symmetric expanding complex. Expansion in every direction is what finally makes the distance linear.
Prerequisites
CSS codes and their chain-complex description; classical LDPC codes and Tanner graphs; for the advanced constructions, expander graphs and group algebras.
Mathematical Definitions
Let be a family of stabilizer codes with parameters and , each given together with a list of stabilizer generators (not necessarily independent). The family is a quantum low-density parity-check (qLDPC) family if there are constants and , independent of , such that in every
- every listed generator acts nontrivially on at most qubits (check weight), and
- every qubit is acted on nontrivially by at most listed generators (qubit degree).
Equivalently, the Tanner graph — the bipartite graph with a node for each qubit, a node for each listed generator and an edge whenever the generator acts on the qubit — has bounded degree. For a CSS code the condition is that both check matrices and are sparse in the sense of a classical LDPC family, together with .
The rate is and the relative distance . A qLDPC family is good (asymptotically good) if both are bounded below by positive constants: and .
As in the classical case, sparsity is a property of the chosen generators, not of the code space: any stabilizer group has dense generating sets, and the definition only constrains families. The low weight of the checks is what makes syndrome extraction cheap — each check needs a bounded number of two-qubit gates, independent of — and it is the reason the checks themselves are low-weight stabilizers, so qLDPC codes with growing distance are necessarily degenerate. Sparse quantum codes were studied by MacKay, Mitchison and McFadden; the role of qLDPC families in fault tolerance with constant overhead is due to Gottesman; a review is Breuckmann and Eberhardt.
Let and be arbitrary binary matrices, viewed as parity-check matrices of classical codes. The hypergraph product is the CSS code on
qubits defined as follows. Arrange the qubits as two matrices: the left block, indexed by pairs (bit of , bit of ), holds a matrix , and the right block, indexed by pairs (check of , check of ), holds . A Pauli error is described by such a pair of matrices.
- checks are indexed by . A error has -syndrome . The stabilizer generated by the checks is .
- checks are indexed by . An error has -syndrome . The stabilizer generated by the checks is .
The two families commute: the -syndrome of a stabilizer is . In Kronecker form, with qubits ordered left block then right block and matrices flattened row by row,
Homologically, is the middle level of the tensor product of the two-term complexes defined by (Breuckmann and Eberhardt).
Sparsity. If every row and column of has weight at most , every row and column of and has weight at most . So LDPC inputs give a quantum LDPC family.
Examples. With the incidence matrix of a cycle of length (rows , indices mod ) one obtains the toric code ; with the parity-check matrix of the open repetition code one obtains the planar surface code . (Both were checked by computing ranks and, for , the distances.) With random or expander LDPC inputs of constant rate one obtains the codes of Tillich and Zémor and the quantum expander codes of Leverrier, Tillich and Zémor, with constant rate and distance of order ; parameters are in the hypergraph product theorem.
Let be a finite abelian group of order and its group algebra: formal sums with , multiplied using the group law. The conjugate of is , and the conjugate transpose of a matrix over is with each entry conjugated. The regular representation sends to the permutation matrix of and extends linearly; it sends an element of with nonzero coefficients to a binary matrix with ones in every row and column, products to products, and to the transpose. Write for the binary matrix obtained by replacing every entry of by its block.
Given and , the lifted product is the CSS code with
on qubits. Because is commutative, , so the checks commute. If every entry of and has few nonzero coefficients, the binary check matrices are sparse.
Special cases. For trivial (, ) this is the hypergraph product. For matrices , it gives and on qubits, a generalized bicycle code; with these are the bivariate bicycle codes. With cyclic the blocks are circulant matrices and the construction overlaps the quasi-cyclic products of Kovalev and Pryadko.
Why it helps. The hypergraph product of codes of length has distance at most of order on order qubits. Lifting keeps the length of the base matrices small and multiplies everything by ; the logical operators that would be short in an ordinary product must now be compatible with the group action, and for suitable random or expanding choices they become long. The lifted product was introduced by Panteleev and Kalachev, who used it with quasi-cyclic (abelian) lifts to obtain distance with dimension , and with non-abelian groups to obtain the first asymptotically good qLDPC codes (Panteleev and Kalachev). The closely related balanced product of Breuckmann and Eberhardt takes the tensor product of two complexes with a common group action and divides by the action.
- The group is finite and abelian, so the group algebra is commutative; non-abelian groups need left and right actions and are treated in the cited papers.
Quantum Tanner codes (Leverrier and Zémor) start from a finite group with two symmetric generating sets and and the associated left-right Cayley complex. Its vertices form two copies , of , and each square joins , , and , two of its corners lying in and two in . Qubits sit on the squares, so each vertex sees an array of qubits. Two small classical codes and fix the checks: the checks at a vertex of are the words of the tensor code on its array, and the checks at a vertex of are the words of . Check weights are constant because and are; the distance is linear when the Cayley graphs are good expanders and the small codes are suitably chosen.
Theorems
Let be the hypergraph product of and . Then is an code with
and its - and -distances satisfy
Conversely, if , if , if , and if . In particular, if is a full-rank parity-check matrix of an code, then and is an code.
Taking from a family of classical LDPC codes with constant rate and linear distance gives quantum LDPC codes with constant rate and . This is Theorem 15 and Theorem 1 of Tillich and Zémor, where the lower bound is also shown to be attained in further cases.
- , , are arbitrary binary matrices (rows need not be independent).
- , ; and are the minimum weights of nonzero vectors in and , with the convention that the minimum over the zero space is .
Proof · Proof of the hypergraph product parameters
Use the matrix description of the hypergraph product: -type operators have -syndrome , stabilizers are , -type operators have -syndrome , and stabilizers are . We use one linear-algebra fact: for subspaces and , the matrices whose columns lie in and whose rows lie in form a space of dimension (choose bases and write in them).
Length. The qubits are and .
Dimension. By the CSS dimension formula, . The map , defined on , has rank ; its kernel consists of the with and , that is, columns in and rows in , of dimension . So . In the same way the map on has kernel of dimension , so . Hence
Rank–nullity for and gives and , so , and expanding .
Lower bound on . Let have zero -syndrome, (signs are irrelevant over ), and suppose . We show it is a stabilizer. Let be the set of rows of that contain a 1, and the set of columns of that contain a 1; then and . Let be restricted to the columns in and be restricted to the rows in . A nonzero , padded with zeros, would be a nonzero vector of of weight at most ; so . Likewise . By the dimension formula just proved, the hypergraph product of and encodes qubits, so in that smaller code every -type operator with zero -syndrome is a stabilizer. Let be the rows of indexed by and the columns of indexed by . Because vanishes outside the rows and outside the columns , and , so has zero -syndrome in the smaller code. Hence and for some . Extending by zeros to gives and , so is a stabilizer of . Therefore every nontrivial -type logical operator has weight at least .
Lower bound on . Transposing everything, has -syndrome , whose transpose is , the -syndrome of in ; the stabilizers of transpose to the stabilizers of . The previous paragraph applied to gives . Since the distance of a CSS code is , .
Upper bounds. Suppose and let have weight . Since , the row space of is a proper subspace of , so some unit vector is not in it. Put (weight ) and . Then , so commutes with all checks. If it were a stabilizer, and for some ; for any row with , row of is and equals (row of ), which would put in the row space of . So . The bound when uses and with of weight and a unit vector outside the column space of ; the bounds on follow by transposition as above.
The case of full row rank. Then , so ; the upper bound applies since , and the lower bound with gives .
The restriction argument for the lower bound is that of Lemma 16 of Tillich and Zémor, recast in matrix notation; the dimension count follows their Proposition 14 and the upper bound their Lemma 17.
Proved by Bravyi, Poulin and Terhal, who also show that the analogous classical tradeoff is . Together with the bound on the distance of local stabilizer codes on a -dimensional lattice of linear size (Bravyi and Terhal), it means that in two dimensions and that more logical qubits can only be bought by lowering the distance. The toric code on qubits has and , so and the bound is attained up to the constant. Quantum LDPC codes with constant rate and growing distance must therefore have checks that are not geometrically local in two dimensions.
- Finite-dimensional particles on the sites of a two-dimensional lattice; is the number of particles.
- The code space is the common ground space of commuting projectors (checks), each supported in a region of bounded diameter; this includes stabilizer codes with geometrically local generators.
- The constant in depends only on the interaction range and the local dimension.
There exist constants , an integer , and a family of quantum LDPC CSS codes with , check weight and qubit degree at most , and
Who proved what.
- Panteleev and Kalachev (STOC 2022; preprint 2021) proved it with lifted products over non-abelian groups, and in the same work obtained classical LDPC codes that are asymptotically good and locally testable with constant query complexity.
- Leverrier and Zémor (FOCS 2022) gave quantum Tanner codes: qubits on the squares of a left-right Cayley complex, with and checks defined by two Tanner codes on its two underlying graphs, using small local codes; they describe it as a simplified variant of the Panteleev–Kalachev construction with improved distance estimates.
- Dinur, Hsieh, Lin and Vidick (STOC 2023) constructed an explicit family of good qLDPC codes with linear-time decoders, from a chain complex on a left-right Cayley complex and two constant-size random codes.
- Efficient decoders correcting every error up to a constant fraction of were given for quantum Tanner codes by Gu, Pattison and Tang (linear time) and by Leverrier and Zémor (SODA 2023; IEEE Trans. Inf. Theory 2023).
These proofs rely on expansion properties of the underlying graphs and complexes together with properties of the small local codes, such as robustness of their tensor products, which Dinur and co-authors prove for random codes. No proof record is attached: the arguments are long and depend on that expansion and robustness analysis. The statement is about existence and asymptotics only; the families are not the codes used in current experiments.
- Qubit CSS codes; "LDPC" means bounded check weight and bounded qubit degree along the family.
- The constants (rate, relative distance, check weight) are fixed but not optimised; the proofs do not give practically useful values.
Breaking the square-root barrier. Before the good codes, the distance record for qLDPC codes was of order up to polylogarithmic factors. In 2020 Evra, Kaufman and Zémor went beyond using high-dimensional expanders, and two constructions beat by more than a polylogarithmic factor: Hastings, Haah and O'Donnell, whose fiber bundle codes have distance with logical qubits; and Panteleev and Kalachev, whose lifted products have distance with logical qubits. Breuckmann and Eberhardt then gave an explicit, non-random family with and .
Constant overhead. Gottesman showed that qLDPC codes with constant rate and suitable decoding properties allow fault-tolerant quantum computation in which the ratio of physical to logical qubits stays bounded as the computation grows, and Fawzi, Grospellier and Leverrier showed that the quantum expander codes of Leverrier, Tillich and Zémor, a hypergraph product of expander codes, can serve in such a scheme.
Worked Examples
The hypergraph product of the Hamming code
Let be the parity-check matrix of the Hamming code, of full rank, so , and the transposed code is trivial (, ). The hypergraph product theorem gives
The rows of have weight 4 and its columns weight 1 to 3, so every check of the product has weight between and , and every qubit is in at most checks of each type. There are checks and 21 checks, all independent: . (These numbers were confirmed by computing the ranks of and .) A minimum-weight logical operator is with a Hamming codeword: three qubits in one column of the left block.
For comparison, 16 logical qubits at distance 3 in separate rotated surface codes need data qubits, against 58 here; the price is check weight up to 7 instead of 4 and connections that are not planar-local.
Counting the [[144, 12, 12]] bivariate bicycle code
With , , data qubits; and are matrices with six ones per row. The source reports and , and an independent rank computation confirms . Twelve logical qubits at distance 12 in rotated surface codes would use data qubits, twelve times as many; with one ancilla per check the totals are against .
Construction. Let be the cyclic shift matrix and put
commuting permutation matrices with . Choose and , each and a power of or of , the three terms of each sum distinct. The bivariate bicycle code has qubits and check matrices
Since and are polynomials in the commuting matrices and , . Every row and column of and has exactly three ones, so every check has weight 6 and every qubit is in three checks and three checks. The number of logical qubits is . These are the lifted product codes of matrices over the group algebra of (the transpose on is a relabelling).
Examples (from Bravyi et al., Table 3):
| 6, 6 | |||
| 12, 6 | |||
| 12, 12 |
For these three rows, , , the commutation and the check weights were re-computed independently from the matrices; the distances are those reported in the source, computed there by integer programming.
Properties reported by the source. The Tanner graph has degree 6 and splits into two edge-disjoint planar subgraphs (thickness 2), so the code can be laid out with two layers of couplers, some of them long. One round of syndrome measurement uses ancilla qubits and a depth-7 circuit of CNOT gates, so uses 288 physical qubits in total. Under the standard circuit noise model the family has an error threshold of about ; at a physical error rate of the code keeps 12 logical qubits for nearly a million syndrome cycles, and the authors estimate that the surface code would need nearly 3000 physical qubits for the same protection. Decoding in that work uses BP+OSD (Panteleev and Kalachev). The circuit-level distance of the memory is at most 10, below the code distance.
Bicycle codes with circulant blocks predate this family; the bivariate form with weight-6 checks and its search is due to Bravyi et al..
Algorithms and Implementations
Decoding. Belief propagation, the workhorse for classical LDPC codes, performs poorly on its own for quantum LDPC codes, largely because of degeneracy: many distinct low-weight errors share a syndrome and are equivalent, and BP has no way to prefer one. The standard general-purpose decoder is BP+OSD of Panteleev and Kalachev, which completes belief propagation with an ordered-statistics step; Roffe, White, Burton and Campbell benchmark it across code families. For good codes there are provably correct decoders (see the existence theorem), but they assume perfect syndromes. See Quantum Decoders.
Syndrome extraction. Bounded check weight gives syndrome circuits of bounded depth, if the hardware can couple the right qubits. For the bivariate bicycle codes the source gives a depth-7 CNOT circuit with one ancilla per check.
Limitations and Common Pitfalls
- Connectivity is the cost. By the Bravyi–Poulin–Terhal bound, a code with better scaling than cannot have geometrically local checks in two dimensions. Baspin and Krishna bound distance and dimension by the separators of the connectivity graph: without expanding subgraphs, good parameters are impossible. Delfosse, Beverland and Tremblay (preprint) prove that syndrome extraction for local-expander codes with local gates in a two-dimensional patch of qubits needs depth , and in their simulations a two-dimensional local implementation of hypergraph product codes showed no threshold. Hardware with long-range links, such as reconfigurable atom arrays (Xu et al.) or multilayer couplers (Tremblay, Delfosse and Beverland), is assumed.
- Code parameters are not circuit performance. Weight-6 or weight-7 checks need deeper extraction circuits than the surface code, and a single fault can spread to several data qubits; the circuit-level distance can be lower than , as for the memory (at most 10). Compare codes by simulated logical error rates under circuit noise.
- Memory is not computation. The qubit savings quoted for qLDPC codes are for storage. Many logical qubits share one block, so addressing one of them without disturbing the others needs extra machinery (below), whose ancilla cost can erode the savings.
- Asymptotically good does not mean useful at small size. The good families have unspecified or impractical constants; the codes proposed for experiments are small computer-found codes that are not members of good families.
- "LDPC" constrains the chosen checks. Distances must be computed for the code, not the matrix, and low-weight checks guarantee degeneracy, so decoders must handle it.
State of the Art
As of 2026-11, statements dated from the cited sources:
- Codes. Good qLDPC codes exist (2021–2022) and admit linear-time decoders up to a constant fraction of errors under perfect syndromes (Dinur, Hsieh, Lin and Vidick, 2023).
- Memories. Bravyi et al. (Nature, 2024) report a circuit-noise threshold of about 0.8% for bivariate bicycle codes and estimate that the code with 288 physical qubits matches the protection of nearly 3000 surface-code qubits. Xu et al. (Nature Physics, 2024) propose a constant-overhead architecture with qLDPC codes on reconfigurable neutral-atom arrays.
- Logical gates, an open area. Proposals include gates on hypergraph product codes (Krishna and Poulin; Quintavalle, Webster and Vasmer), logical Pauli measurements by code surgery (Cohen et al.; Cross et al., preprint), and non-Clifford gates on homological qLDPC codes via higher symmetries (Zhu et al.). Golowich and Guruswami (STOC 2025) construct asymptotically good quantum codes with transversal non-Clifford gates. A modular architecture based on bivariate bicycle codes is proposed by Yoder et al. (preprint). No end-to-end experimental demonstration of computation on a qLDPC code with a computational advantage over the surface code is cited here.
Related Research
The review of Breuckmann and Eberhardt covers the constructions up to 2021 in the chain-complex language used here. MacKay, Mitchison and McFadden is an early study of sparse-graph quantum codes and their decoding; Kovalev and Pryadko generalise the product with circulant blocks.