Skip to main content
KetQat

Appearance

Topic · advanced

Quantum LDPC Codes

Stabilizer codes whose checks each touch a bounded number of qubits, with each qubit in a bounded number of checks. Giving up geometric locality lets them combine constant rate with large distance, at the price of long-range connections and immature logical gates.

ExpositionMachine-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.

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 kd2=O(n)k d^2 = O(n): one logical qubit per patch, with distance growing only as n\sqrt n. 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 n\sqrt n; 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, HXHZT=0H_X H_Z^T = 0, 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 n\sqrt n.

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

DefinitionQuantum LDPC code familyEstablished definition

Let (Qi)i≥1(Q_i)_{i \ge 1} be a family of stabilizer codes with parameters [[ni,ki,di]][[n_i, k_i, d_i]] and ni→∞n_i \to \infty, 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 ww and cc, independent of ii, such that in every QiQ_i

  • every listed generator acts nontrivially on at most ww qubits (check weight), and
  • every qubit is acted on nontrivially by at most cc 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 HXH_X and HZH_Z are sparse in the sense of a classical LDPC family, together with HXHZT=0H_X H_Z^T = 0.

The rate is ki/nik_i / n_i and the relative distance di/nid_i / n_i. A qLDPC family is good (asymptotically good) if both are bounded below by positive constants: ki=Θ(ni)k_i = \Theta(n_i) and di=Θ(ni)d_i = \Theta(n_i).

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 nn — 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.

DefinitionHypergraph product codeEstablished definition

Let H1∈F2m1×n1H_1 \in \F_2^{m_1 \times n_1} and H2∈F2m2×n2H_2 \in \F_2^{m_2 \times n_2} be arbitrary binary matrices, viewed as parity-check matrices of classical codes. The hypergraph product HGP(H1,H2)\mathrm{HGP}(H_1, H_2) is the CSS code on

n=n1n2+m1m2n = n_1 n_2 + m_1 m_2

qubits defined as follows. Arrange the qubits as two matrices: the left block, indexed by pairs (bit of H1H_1, bit of H2H_2), holds a matrix A∈F2n1×n2A \in \F_2^{n_1 \times n_2}, and the right block, indexed by pairs (check of H1H_1, check of H2H_2), holds B∈F2m1×m2B \in \F_2^{m_1 \times m_2}. A Pauli error is described by such a pair of matrices.

  • XX checks are indexed by [m1]×[n2][m_1] \times [n_2]. A ZZ error Z(A,B)Z(A, B) has XX-syndrome H1A+BH2∈F2m1×n2H_1 A + B H_2 \in \F_2^{m_1 \times n_2}. The stabilizer generated by the XX checks is {X(H1TD,  DH2T):D∈F2m1×n2}\{ X(H_1^T D,\; D H_2^T) : D \in \F_2^{m_1 \times n_2} \}.
  • ZZ checks are indexed by [n1]×[m2][n_1] \times [m_2]. An XX error X(A,B)X(A, B) has ZZ-syndrome AH2T+H1TB∈F2n1×m2A H_2^T + H_1^T B \in \F_2^{n_1 \times m_2}. The stabilizer generated by the ZZ checks is {Z(EH2,  H1E):E∈F2n1×m2}\{ Z(E H_2,\; H_1 E) : E \in \F_2^{n_1 \times m_2} \}.

The two families commute: the XX-syndrome of a ZZ stabilizer is H1EH2+H1EH2=0H_1 E H_2 + H_1 E H_2 = 0. In Kronecker form, with qubits ordered left block then right block and matrices flattened row by row,

HX=( H1⊗In2  ∣  Im1⊗H2T ),HZ=( In1⊗H2  ∣  H1T⊗Im2 ).H_X = \bigl(\, H_1 \otimes I_{n_2} \;\big|\; I_{m_1} \otimes H_2^T \,\bigr) , \qquad H_Z = \bigl(\, I_{n_1} \otimes H_2 \;\big|\; H_1^T \otimes I_{m_2} \,\bigr) .

Homologically, HGP(H1,H2)\mathrm{HGP}(H_1, H_2) is the middle level of the tensor product of the two-term complexes F2ni→F2mi\F_2^{n_i} \to \F_2^{m_i} defined by HiH_i (Breuckmann and Eberhardt).

Sparsity. If every row and column of HiH_i has weight at most wiw_i, every row and column of HXH_X and HZH_Z has weight at most w1+w2w_1 + w_2. So LDPC inputs give a quantum LDPC family.

Examples. With H1=H2H_1 = H_2 the L×LL \times L incidence matrix of a cycle of length LL (rows ei+ei+1e_i + e_{i+1}, indices mod LL) one obtains the toric code [[2L2,2,L]][[2L^2, 2, L]]; with the (L−1)×L(L-1) \times L parity-check matrix of the open repetition code one obtains the planar surface code [[L2+(L−1)2,1,L]][[L^2 + (L-1)^2, 1, L]]. (Both were checked by computing ranks and, for L=3L = 3, 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 n\sqrt n; parameters are in the hypergraph product theorem.

DefinitionLifted product codePeer-reviewed result

Let GG be a finite abelian group of order ℓ\ell and R=F2[G]R = \F_2[G] its group algebra: formal sums ∑g∈Gag g\sum_{g \in G} a_g\, g with ag∈F2a_g \in \F_2, multiplied using the group law. The conjugate of a=∑agga = \sum a_g g is a∗=∑agg−1a^* = \sum a_g g^{-1}, and the conjugate transpose of a matrix over RR is M∗=(MT)M^* = (M^T) with each entry conjugated. The regular representation sends gg to the ℓ×ℓ\ell \times \ell permutation matrix of h↦ghh \mapsto g h and extends linearly; it sends an element of RR with tt nonzero coefficients to a binary matrix with tt ones in every row and column, products to products, and a∗a^* to the transpose. Write B(M)\mathbb{B}(M) for the binary matrix obtained by replacing every entry of MM by its ℓ×ℓ\ell \times \ell block.

Given A∈Rma×naA \in R^{m_a \times n_a} and B∈Rmb×nbB \in R^{m_b \times n_b}, the lifted product LP(A,B)\mathrm{LP}(A, B) is the CSS code with

HX=B( A⊗Inb  ∣  Ima⊗B∗ ),HZ=B( Ina⊗B  ∣  A∗⊗Imb ),H_X = \mathbb{B}\bigl(\, A \otimes I_{n_b} \;\big|\; I_{m_a} \otimes B^* \,\bigr) , \qquad H_Z = \mathbb{B}\bigl(\, I_{n_a} \otimes B \;\big|\; A^* \otimes I_{m_b} \,\bigr) ,

on n=ℓ (nanb+mamb)n = \ell\, (n_a n_b + m_a m_b) qubits. Because RR is commutative, HXHZT=B(A⊗B∗+A⊗B∗)=0H_X H_Z^T = \mathbb{B}(A \otimes B^* + A \otimes B^*) = 0, so the checks commute. If every entry of AA and BB has few nonzero coefficients, the binary check matrices are sparse.

Special cases. For GG trivial (ℓ=1\ell = 1, R=F2R = \F_2) this is the hypergraph product. For 1×11 \times 1 matrices A=(a)A = (a), B=(b)B = (b) it gives HX=(B(a)∣B(b)T)H_X = (\mathbb{B}(a) \mid \mathbb{B}(b)^T) and HZ=(B(b)∣B(a)T)H_Z = (\mathbb{B}(b) \mid \mathbb{B}(a)^T) on 2ℓ2\ell qubits, a generalized bicycle code; with G=Zℓ×ZmG = \Z_\ell \times \Z_m these are the bivariate bicycle codes. With cyclic GG 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 NN has distance at most of order NN on order N2N^2 qubits. Lifting keeps the length of the base matrices small and multiplies everything by ℓ\ell; 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 Θ(N/log⁡N)\Theta(N / \log N) with dimension Θ(log⁡N)\Theta(\log N), 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.

Holds when
  • The group GG 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 GG with two symmetric generating sets AA and BB and the associated left-right Cayley complex. Its vertices form two copies V0V_0, V1V_1 of GG, and each square joins gg, agag, gbgb and agbagb, two of its corners lying in V0V_0 and two in V1V_1. Qubits sit on the squares, so each vertex sees an ∣A∣×∣B∣\abs{A} \times \abs{B} array of qubits. Two small classical codes CA⊆F2AC_A \subseteq \F_2^{A} and CB⊆F2BC_B \subseteq \F_2^{B} fix the checks: the XX checks at a vertex of V0V_0 are the words of the tensor code CA⊗CBC_A \otimes C_B on its array, and the ZZ checks at a vertex of V1V_1 are the words of CA⊥⊗CB⊥C_A^\perp \otimes C_B^\perp. Check weights are constant because ∣A∣\abs{A} and ∣B∣\abs{B} are; the distance is linear when the Cayley graphs are good expanders and the small codes are suitably chosen.

Theorems

TheoremParameters of hypergraph product codesPeer-reviewed result

Let Q=HGP(H1,H2)Q = \mathrm{HGP}(H_1, H_2) be the hypergraph product of H1∈F2m1×n1H_1 \in \F_2^{m_1 \times n_1} and H2∈F2m2×n2H_2 \in \F_2^{m_2 \times n_2}. Then QQ is an [[n,k,d]][[n, k, d]] code with

n=n1n2+m1m2,k=k1k2+k1Tk2T,n = n_1 n_2 + m_1 m_2 , \qquad k = k_1 k_2 + k_1^T k_2^T ,

and its ZZ- and XX-distances satisfy

dZ≥min⁡(d1,d2T),dX≥min⁡(d2,d1T),henced≥min⁡(d1,d2,d1T,d2T).d_Z \ge \min(d_1, d_2^T) , \qquad d_X \ge \min(d_2, d_1^T) , \qquad\text{hence}\qquad d \ge \min(d_1, d_2, d_1^T, d_2^T) .

Conversely, dZ≤d1d_Z \le d_1 if k2>0k_2 > 0, dZ≤d2Td_Z \le d_2^T if k1T>0k_1^T > 0, dX≤d2d_X \le d_2 if k1>0k_1 > 0, and dX≤d1Td_X \le d_1^T if k2T>0k_2^T > 0. In particular, if H1=H2=HH_1 = H_2 = H is a full-rank (n0−k0)×n0(n_0 - k_0) \times n_0 parity-check matrix of an [n0,k0,d0][n_0, k_0, d_0] code, then kT=0k^T = 0 and QQ is an [[ n02+(n0−k0)2,  k02,  d0 ]][[\, n_0^2 + (n_0 - k_0)^2,\; k_0^2,\; d_0 \,]] code.

Taking HH from a family of classical LDPC codes with constant rate and linear distance gives quantum LDPC codes with constant rate and d=Θ(n)d = \Theta(\sqrt{n}). 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.

Holds when
  • Hi∈F2mi×niH_i \in \F_2^{m_i \times n_i}, i=1,2i = 1, 2, are arbitrary binary matrices (rows need not be independent).
  • ki=dim⁡ker⁡Hik_i = \dim \ker H_i, kiT=dim⁡ker⁡HiTk_i^T = \dim \ker H_i^T; did_i and diTd_i^T are the minimum weights of nonzero vectors in ker⁡Hi\ker H_i and ker⁡HiT\ker H_i^T, with the convention that the minimum over the zero space is ∞\infty.
Proof · Proof of the hypergraph product parameters

Use the matrix description of the hypergraph product: ZZ-type operators Z(A,B)Z(A, B) have XX-syndrome σX(A,B)=H1A+BH2\sigma_X(A, B) = H_1 A + B H_2, ZZ stabilizers are Z(EH2,H1E)Z(E H_2, H_1 E), XX-type operators X(A,B)X(A, B) have ZZ-syndrome σZ(A,B)=AH2T+H1TB\sigma_Z(A, B) = A H_2^T + H_1^T B, and XX stabilizers are X(H1TD,DH2T)X(H_1^T D, D H_2^T). We use one linear-algebra fact: for subspaces U⊆F2pU \subseteq \F_2^{p} and W⊆F2qW \subseteq \F_2^{q}, the matrices M∈F2p×qM \in \F_2^{p \times q} whose columns lie in UU and whose rows lie in WW form a space of dimension dim⁡U⋅dim⁡W\dim U \cdot \dim W (choose bases and write MM in them).

Length. The qubits are [n1]×[n2][n_1] \times [n_2] and [m1]×[m2][m_1] \times [m_2].

Dimension. By the CSS dimension formula, k=n−rank⁡HX−rank⁡HZk = n - \operatorname{rank} H_X - \operatorname{rank} H_Z. The map D↦(H1TD,DH2T)D \mapsto (H_1^T D, D H_2^T), defined on F2m1×n2\F_2^{m_1 \times n_2}, has rank rank⁡HX\operatorname{rank} H_X; its kernel consists of the DD with H1TD=0H_1^T D = 0 and DH2T=0D H_2^T = 0, that is, columns in ker⁡H1T\ker H_1^T and rows in ker⁡H2\ker H_2, of dimension k1Tk2k_1^T k_2. So rank⁡HX=m1n2−k1Tk2\operatorname{rank} H_X = m_1 n_2 - k_1^T k_2. In the same way the map E↦(EH2,H1E)E \mapsto (E H_2, H_1 E) on F2n1×m2\F_2^{n_1 \times m_2} has kernel of dimension k1k2Tk_1 k_2^T, so rank⁡HZ=n1m2−k1k2T\operatorname{rank} H_Z = n_1 m_2 - k_1 k_2^T. Hence

k=n1n2+m1m2−m1n2−n1m2+k1Tk2+k1k2T=(n1−m1)(n2−m2)+k1Tk2+k1k2T.k = n_1 n_2 + m_1 m_2 - m_1 n_2 - n_1 m_2 + k_1^T k_2 + k_1 k_2^T = (n_1 - m_1)(n_2 - m_2) + k_1^T k_2 + k_1 k_2^T .

Rank–nullity for HiH_i and HiTH_i^T gives ni−rank⁡Hi=kin_i - \operatorname{rank} H_i = k_i and mi−rank⁡Hi=kiTm_i - \operatorname{rank} H_i = k_i^T, so ni−mi=ki−kiTn_i - m_i = k_i - k_i^T, and expanding (k1−k1T)(k2−k2T)+k1Tk2+k1k2T=k1k2+k1Tk2T(k_1 - k_1^T)(k_2 - k_2^T) + k_1^T k_2 + k_1 k_2^T = k_1 k_2 + k_1^T k_2^T.

Lower bound on dZd_Z. Let Z(A,B)Z(A, B) have zero XX-syndrome, H1A=BH2H_1 A = B H_2 (signs are irrelevant over F2\F_2), and suppose ∣A∣+∣B∣<min⁡(d1,d2T)\abs{A} + \abs{B} < \min(d_1, d_2^T). We show it is a stabilizer. Let R⊆[n1]R \subseteq [n_1] be the set of rows of AA that contain a 1, and T⊆[m2]T \subseteq [m_2] the set of columns of BB that contain a 1; then ∣R∣≤∣A∣<d1\abs{R} \le \abs{A} < d_1 and ∣T∣≤∣B∣<d2T\abs{T} \le \abs{B} < d_2^T. Let H1′H_1' be H1H_1 restricted to the columns in RR and H2′H_2' be H2H_2 restricted to the rows in TT. A nonzero x∈ker⁡H1′x \in \ker H_1', padded with zeros, would be a nonzero vector of ker⁡H1\ker H_1 of weight at most ∣R∣<d1\abs{R} < d_1; so ker⁡H1′=0\ker H_1' = 0. Likewise ker⁡H2′T=0\ker H_2'^{T} = 0. By the dimension formula just proved, the hypergraph product of H1′H_1' and H2′H_2' encodes k1′k2′+k1′Tk2′T=0⋅k2′+k1′T⋅0=0k_1' k_2' + k_1'^T k_2'^T = 0 \cdot k_2' + k_1'^T \cdot 0 = 0 qubits, so in that smaller code every ZZ-type operator with zero XX-syndrome is a stabilizer. Let A′A' be the rows of AA indexed by RR and B′B' the columns of BB indexed by TT. Because AA vanishes outside the rows RR and BB outside the columns TT, H1′A′=H1AH_1' A' = H_1 A and B′H2′=BH2B' H_2' = B H_2, so Z(A′,B′)Z(A', B') has zero XX-syndrome in the smaller code. Hence A′=E′H2′A' = E' H_2' and B′=H1′E′B' = H_1' E' for some E′∈F2R×TE' \in \F_2^{R \times T}. Extending E′E' by zeros to E∈F2n1×m2E \in \F_2^{n_1 \times m_2} gives EH2=AE H_2 = A and H1E=BH_1 E = B, so Z(A,B)Z(A, B) is a stabilizer of QQ. Therefore every nontrivial ZZ-type logical operator has weight at least min⁡(d1,d2T)\min(d_1, d_2^T).

Lower bound on dXd_X. Transposing everything, X(A,B)X(A, B) has ZZ-syndrome AH2T+H1TBA H_2^T + H_1^T B, whose transpose is H2AT+BTH1H_2 A^T + B^T H_1, the XX-syndrome of Z(AT,BT)Z(A^T, B^T) in HGP(H2,H1)\mathrm{HGP}(H_2, H_1); the XX stabilizers of QQ transpose to the ZZ stabilizers of HGP(H2,H1)\mathrm{HGP}(H_2, H_1). The previous paragraph applied to HGP(H2,H1)\mathrm{HGP}(H_2, H_1) gives dX≥min⁡(d2,d1T)d_X \ge \min(d_2, d_1^T). Since the distance of a CSS code is min⁡(dX,dZ)\min(d_X, d_Z), d≥min⁡(d1,d2,d1T,d2T)d \ge \min(d_1, d_2, d_1^T, d_2^T).

Upper bounds. Suppose k2>0k_2 > 0 and let x∈ker⁡H1x \in \ker H_1 have weight d1d_1. Since ker⁡H2≠0\ker H_2 \ne 0, the row space of H2H_2 is a proper subspace of F2n2\F_2^{n_2}, so some unit vector eye_y is not in it. Put A=xeyTA = x e_y^T (weight d1d_1) and B=0B = 0. Then H1A=0H_1 A = 0, so Z(A,0)Z(A, 0) commutes with all XX checks. If it were a stabilizer, A=EH2A = E H_2 and 0=H1E0 = H_1 E for some EE; for any row ii with xi=1x_i = 1, row ii of AA is eyTe_y^T and equals (row ii of EE) H2\, H_2, which would put eye_y in the row space of H2H_2. So dZ≤d1d_Z \le d_1. The bound dZ≤d2Td_Z \le d_2^T when k1T>0k_1^T > 0 uses A=0A = 0 and B=eazTB = e_a z^T with z∈ker⁡H2Tz \in \ker H_2^T of weight d2Td_2^T and eae_a a unit vector outside the column space of H1H_1; the bounds on dXd_X follow by transposition as above.

The case H1=H2=HH_1 = H_2 = H of full row rank. Then kT=0k^T = 0, so k=k02k = k_0^2; the upper bound dZ≤d0d_Z \le d_0 applies since k0>0k_0 > 0, and the lower bound with dT=∞d^T = \infty gives d=d0d = d_0.

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.

EquationBravyi–Poulin–Terhal boundPeer-reviewed result
k d2  =  O(n)k\, d^{2} \;=\; O(n)

Proved by Bravyi, Poulin and Terhal, who also show that the analogous classical tradeoff is kd=O(n)k \sqrt d = O(n). Together with the bound d=O(LD−1)d = O(L^{D-1}) on the distance of local stabilizer codes on a DD-dimensional lattice of linear size LL (Bravyi and Terhal), it means that in two dimensions d=O(n)d = O(\sqrt n) and that more logical qubits can only be bought by lowering the distance. The toric code on n=2L2n = 2L^2 qubits has k=2k = 2 and d=Ld = L, so kd2=nk d^2 = n 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.

Holds when
  • Finite-dimensional particles on the sites of a two-dimensional lattice; nn 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 O(n)O(n) depends only on the interaction range and the local dimension.
TheoremExistence of asymptotically good quantum LDPC codesPeer-reviewed result

There exist constants r,δ>0r, \delta > 0, an integer ww, and a family of quantum LDPC CSS codes [[ni,ki,di]][[n_i, k_i, d_i]] with ni→∞n_i \to \infty, check weight and qubit degree at most ww, and

ki≥r ni,di≥δ ni.k_i \ge r\, n_i , \qquad d_i \ge \delta\, n_i .

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 XX and ZZ 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 nn 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.

Holds when
  • 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 n\sqrt n up to polylogarithmic factors. In 2020 Evra, Kaufman and Zémor went beyond n\sqrt n using high-dimensional expanders, and two constructions beat n\sqrt n by more than a polylogarithmic factor: Hastings, Haah and O'Donnell, whose fiber bundle codes have distance Ω(n3/5/polylog n)\Omega(n^{3/5} / \mathrm{polylog}\, n) with Θ~(n3/5)\tilde\Theta(n^{3/5}) logical qubits; and Panteleev and Kalachev, whose lifted products have distance Θ(n/log⁡n)\Theta(n / \log n) with Θ(log⁡n)\Theta(\log n) logical qubits. Breuckmann and Eberhardt then gave an explicit, non-random family with k=Θ(n4/5)k = \Theta(n^{4/5}) and d=Ω(n3/5)d = \Omega(n^{3/5}).

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 HH be the 3×73 \times 7 parity-check matrix of the [7,4,3][7, 4, 3] Hamming code, of full rank, so k0=4k_0 = 4, d0=3d_0 = 3 and the transposed code is trivial (k0T=0k_0^T = 0, d0T=∞d_0^T = \infty). The hypergraph product theorem gives

n=72+32=58,k=42+0=16,d=min⁡(3,3,∞,∞)=3.n = 7^2 + 3^2 = 58, \qquad k = 4^2 + 0 = 16, \qquad d = \min(3, 3, \infty, \infty) = 3 .

The rows of HH have weight 4 and its columns weight 1 to 3, so every check of the product has weight between 4+1=54 + 1 = 5 and 4+3=74 + 3 = 7, and every qubit is in at most max⁡(3,4)=4\max(3, 4) = 4 checks of each type. There are 3⋅7=213 \cdot 7 = 21 XX checks and 21 ZZ checks, all independent: 58−42=1658 - 42 = 16. (These numbers were confirmed by computing the ranks of HXH_X and HZH_Z.) A minimum-weight ZZ logical operator is Z(xeyT,0)Z(x e_y^T, 0) with x=1110000x = 1110000 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 16×9=14416 \times 9 = 144 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 ℓ=12\ell = 12, m=6m = 6, n=2ℓm=144n = 2 \ell m = 144 data qubits; HXH_X and HZH_Z are 72×14472 \times 144 matrices with six ones per row. The source reports k=12k = 12 and d=12d = 12, and an independent rank computation confirms k=144−rank⁡HX−rank⁡HZ=12k = 144 - \operatorname{rank} H_X - \operatorname{rank} H_Z = 12. Twelve logical qubits at distance 12 in rotated surface codes would use 12×144=172812 \times 144 = 1728 data qubits, twelve times as many; with one ancilla per check the totals are 288288 against 12×(2⋅144−1)=344412 \times (2 \cdot 144 - 1) = 3444.

Quantum codeBivariate bicycle codesPeer-reviewed result

Construction. Let SℓS_\ell be the ℓ×ℓ\ell \times \ell cyclic shift matrix and put

x=Sℓ⊗Im,y=Iℓ⊗Sm,x = S_\ell \otimes I_m , \qquad y = I_\ell \otimes S_m ,

commuting ℓm×ℓm\ell m \times \ell m permutation matrices with xℓ=ym=Ix^\ell = y^m = I. Choose A=A1+A2+A3A = A_1 + A_2 + A_3 and B=B1+B2+B3B = B_1 + B_2 + B_3, each AiA_i and BjB_j a power of xx or of yy, the three terms of each sum distinct. The bivariate bicycle code has n=2ℓmn = 2\ell m qubits and check matrices

HX=( A  ∣  B ),HZ=( BT  ∣  AT ).H_X = \bigl(\, A \;\big|\; B \,\bigr) , \qquad H_Z = \bigl(\, B^T \;\big|\; A^T \,\bigr) .

Since AA and BB are polynomials in the commuting matrices xx and yy, HXHZT=AB+BA=0H_X H_Z^T = A B + B A = 0. Every row and column of AA and BB has exactly three ones, so every check has weight 6 and every qubit is in three XX checks and three ZZ checks. The number of logical qubits is k=2dim⁡(ker⁡A∩ker⁡B)k = 2 \dim(\ker A \cap \ker B). These are the lifted product codes of 1×11 \times 1 matrices over the group algebra of Zℓ×Zm\Z_\ell \times \Z_m (the transpose on BB is a relabelling).

Examples (from Bravyi et al., Table 3):

[[n,k,d]][[n, k, d]] ℓ,m\ell, m AA BB
[[72,12,6]][[72, 12, 6]] 6, 6 x3+y+y2x^3 + y + y^2 y3+x+x2y^3 + x + x^2
[[144,12,12]][[144, 12, 12]] 12, 6 x3+y+y2x^3 + y + y^2 y3+x+x2y^3 + x + x^2
[[288,12,18]][[288, 12, 18]] 12, 12 x3+y2+y7x^3 + y^2 + y^7 y3+x+x2y^3 + x + x^2

For these three rows, nn, kk, the commutation HXHZT=0H_X H_Z^T = 0 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 nn ancilla qubits and a depth-7 circuit of CNOT gates, so [[144,12,12]][[144, 12, 12]] uses 288 physical qubits in total. Under the standard circuit noise model the family has an error threshold of about 0.8%0.8\%; at a physical error rate of 10−310^{-3} the [[144,12,12]][[144, 12, 12]] 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 [[144,12,12]][[144, 12, 12]] 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 kd2=O(n)k d^2 = O(n) 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 NN qubits needs depth Ω(n/N)\Omega(n / \sqrt N), 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 dd, as for the [[144,12,12]][[144, 12, 12]] 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 [[144,12,12]][[144, 12, 12]] 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.

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.

Mentions

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. David J. C. MacKay, Graeme Mitchison, Paul L. McFadden (2004). Sparse-Graph Codes for Quantum Error Correction. IEEE Transactions on Information Theory 50, 2315-2330. doi:10.1109/TIT.2004.834737arXiv:quant-ph/0304161
  2. Jean-Pierre Tillich, Gilles Zémor (2014). Quantum LDPC Codes With Positive Rate and Minimum Distance Proportional to the Square Root of the Blocklength. IEEE Transactions on Information Theory 60 (2), 1193-1202. doi:10.1109/TIT.2013.2292061arXiv:0903.0566
  3. Alexey A. Kovalev, Leonid P. Pryadko (2013). Quantum Kronecker sum-product low-density parity-check codes with finite rate. Physical Review A 88, 012311. doi:10.1103/PhysRevA.88.012311arXiv:1212.6703
  4. Anthony Leverrier, Jean-Pierre Tillich, Gilles Zémor (2015). Quantum Expander Codes. 2015 IEEE 56th Annual Symposium on Foundations of Computer Science, 810-824. doi:10.1109/FOCS.2015.55arXiv:1504.00822
  5. Daniel Gottesman (2014). Fault-Tolerant quantum computation with constant overhead. Quantum Information and Computation 14, 1339-1371. doi:10.26421/QIC14.15-16-5arXiv:1310.2984
  6. Omar Fawzi, Antoine Grospellier, Anthony Leverrier (2018). Constant Overhead Quantum Fault-Tolerance with Quantum Expander Codes. 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), 743-754. doi:10.1109/FOCS.2018.00076arXiv:1808.03821
  7. Shai Evra, Tali Kaufman, Gilles Zémor (2020). Decodable quantum LDPC codes beyond the square root distance barrier using high dimensional expanders. 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), 218-227. doi:10.1109/FOCS46700.2020.00029arXiv:2004.07935
  8. Matthew B. Hastings, Jeongwan Haah, Ryan O'Donnell (2021). Fiber bundle codes: breaking the n^{1/2} polylog(n) barrier for Quantum LDPC codes. Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing (STOC 2021), 1276-1288. doi:10.1145/3406325.3451005arXiv:2009.03921
  9. Pavel Panteleev, Gleb Kalachev (2022). Quantum LDPC Codes With Almost Linear Minimum Distance. IEEE Transactions on Information Theory 68, 213-229. doi:10.1109/TIT.2021.3119384arXiv:2012.04068
  10. Nikolas P. Breuckmann, Jens N. Eberhardt (2021). Balanced Product Quantum Codes. IEEE Transactions on Information Theory 67, 6653-6674. doi:10.1109/TIT.2021.3097347arXiv:2012.09271
  11. Pavel Panteleev, Gleb Kalachev (2022). Asymptotically good Quantum and locally testable classical LDPC codes. Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC 2022), 375-388. doi:10.1145/3519935.3520017arXiv:2111.03654
  12. Anthony Leverrier, Gilles Zémor (2022). Quantum Tanner codes. 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), 872-883. doi:10.1109/FOCS54457.2022.00117arXiv:2202.13641
  13. Irit Dinur, Min-Hsiu Hsieh, Ting-Chun Lin, Thomas Vidick (2023). Good Quantum LDPC Codes with Linear Time Decoders. Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023), 905-918. doi:10.1145/3564246.3585101arXiv:2206.07750
  14. Sergey Bravyi, David Poulin, Barbara Terhal (2010). Tradeoffs for reliable quantum information storage in 2D systems. Physical Review Letters 104, 050503. doi:10.1103/PhysRevLett.104.050503arXiv:0909.5200
  15. Sergey Bravyi, Andrew W. Cross, Jay M. Gambetta, … Theodore J. Yoder (2024). High-threshold and low-overhead fault-tolerant quantum memory. Nature 627, 778-782. doi:10.1038/s41586-024-07107-7arXiv:2308.07915
  16. Pavel Panteleev, Gleb Kalachev (2021). Degenerate Quantum LDPC Codes With Good Finite Length Performance. Quantum 5, 585. doi:10.22331/q-2021-11-22-585arXiv:1904.02703
  17. Joschka Roffe, David R. White, Simon Burton, Earl T. Campbell (2020). Decoding across the quantum low-density parity-check code landscape. Physical Review Research 2, 043423. doi:10.1103/PhysRevResearch.2.043423arXiv:2005.07016
  18. Nouédyn Baspin, Anirudh Krishna (2022). Connectivity constrains quantum codes. Quantum 6, 711. doi:10.22331/q-2022-05-13-711arXiv:2106.00765
  19. Nicolas Delfosse, Michael E. Beverland, Maxime A. Tremblay (2021). Bounds on stabilizer measurement circuits and obstructions to local implementations of quantum LDPC codes. arXiv preprint. arXiv:2109.14599
  20. Maxime A. Tremblay, Nicolas Delfosse, Michael E. Beverland (2022). Constant-Overhead Quantum Error Correction with Thin Planar Connectivity. Physical Review Letters 129, 050504. doi:10.1103/PhysRevLett.129.050504arXiv:2109.14609
  21. Qian Xu, J. Pablo Bonilla Ataides, Christopher A. Pattison, … et al. (2024). Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays. Nature Physics 20, 1084-1090. doi:10.1038/s41567-024-02479-zarXiv:2308.08648
  22. Anirudh Krishna, David Poulin (2021). Fault-Tolerant Gates on Hypergraph Product Codes. Physical Review X 11, 011023. doi:10.1103/PhysRevX.11.011023arXiv:1909.07424
  23. Armanda O. Quintavalle, Paul Webster, Michael Vasmer (2023). Partitioning qubits in hypergraph product codes to implement logical gates. Quantum 7, 1153. doi:10.22331/q-2023-10-24-1153arXiv:2204.10812
  24. Lawrence Z. Cohen, Isaac H. Kim, Stephen D. Bartlett, Benjamin J. Brown (2022). Low-overhead fault-tolerant quantum computing using long-range connectivity. Science Advances 8, eabn1717. doi:10.1126/sciadv.abn1717arXiv:2110.10794
  25. Andrew W. Cross, Zhiyang He, Patrick J. Rall, Theodore J. Yoder (2024). Improved QLDPC Surgery: Logical Measurements and Bridging Codes. arXiv preprint. arXiv:2407.18393
  26. Guanyu Zhu, Shehryar Sikander, Elia Portnoy, … Benjamin J. Brown (2025). Non-Clifford and Parallelizable Fault-Tolerant Logical Gates on Constant and Almost-Constant Rate Homological Quantum Low-Density Parity-Check Codes via Higher Symmetries. PRX Quantum 6, 040361. doi:10.1103/wcxs-w69tarXiv:2310.16982
  27. Louis Golowich, Venkatesan Guruswami (2025). Asymptotically Good Quantum Codes with Transversal Non-Clifford Gates. Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC 2025), 707-717. doi:10.1145/3717823.3718234arXiv:2408.09254
  28. Theodore J. Yoder, Eddie Schoute, Patrick Rall, … Michael E. Beverland (2025). Tour de gross: A modular quantum computer based on bivariate bicycle codes. arXiv preprint. arXiv:2506.03094
  29. 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
  30. Sergey Bravyi, Barbara Terhal (2009). A no-go theorem for a two-dimensional self-correcting quantum memory based on stabilizer codes. New Journal of Physics 11, 043029. doi:10.1088/1367-2630/11/4/043029arXiv:0810.1983
  31. Shouzhen Gu, Christopher A. Pattison, Eugene Tang (2023). An Efficient Decoder for a Linear Distance Quantum LDPC Code. Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023), 919-932. doi:10.1145/3564246.3585169arXiv:2206.06557
  32. Anthony Leverrier, Gilles Zémor (2023). Efficient decoding up to a constant fraction of the code length for asymptotically good quantum codes. Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 1216-1244. doi:10.1137/1.9781611977554.ch45arXiv:2206.07571
  33. Anthony Leverrier, Gilles Zémor (2023). Decoding Quantum Tanner Codes. IEEE Transactions on Information Theory 69, 5100-5115. doi:10.1109/TIT.2023.3267945arXiv:2208.05537

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)

    Topic's own text checked; embedded records carry their own states. Worked examples re-derived: HGP of the [7,4,3] Hamming code (n = 58, k = 16, d = 3, check weights 5-7, qubit degree <= 4, 21 + 21 independent checks; same rank formula verified numerically for other inputs) and the [[144,12,12]] counts (k = 12 recomputed, 1728 and 3444 surface-code qubits). Quantum Tanner code description compared with Leverrier-Zemor arXiv 2202.13641. Attributions compared with arXiv abstracts: Evra-Kaufman-Zemor 2004.07935 (beyond sqrt(n) by log factors), Hastings-Haah-O'Donnell 2009.03921 (Omega(N^{3/5}/polylog N), Theta~(N^{3/5})), Panteleev-Kalachev 2012.04068, Breuckmann-Eberhardt 2012.09271 (K = Theta(N^{4/5}), D = Omega(N^{3/5})), Gottesman 1310.2984, Fawzi-Grospellier-Leverrier 1808.03821, Dinur-Hsieh-Lin-Vidick 2206.07750, Bravyi et al. 2308.07915 (0.8%, 288 vs nearly 3000, depth-7, d_circ <= 10), Baspin-Krishna 2106.00765 (separator bounds), Delfosse-Beverland-Tremblay 2109.14599 (depth Omega(n/sqrt N), no threshold for 2D-local HGP), Xu et al. 2308.08648; remaining gate/architecture attributions (Krishna-Poulin, Quintavalle-Webster-Vasmer, Cohen et al., Cross et al., Zhu et al., Golowich-Guruswami, Yoder et al., Tremblay-Delfosse-Beverland) checked against their titles in the reference entries only.

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 0dfc6ba5c94800df. Source file knowledge/records/topic/quantum-ldpc-codes.md in the content repository (readable there once it is public).