← Back

qLDPC Codes: Fewer Qubits per Logical Qubit, at a Price

The surface code protects one logical qubit per patch, and the patch grows fast. A family called qLDPC codesA quantum error-correcting code in which each check involves only a few qubits and each qubit sits in only a few checks, however large the code grows. packs many logical qubits into one block. On paper the saving is large. The bill arrives as wiring and decoding.

The surface code’s expensive habit

A surface codeAn error-correcting code that spreads one protected qubit over a square grid of physical qubits. patch of distance d uses about 2d² physical qubits and protects exactly one logical qubitA reliable ‘qubit’ built by bundling many error-prone physical qubits together with error correction. These are the units that actually matter for useful computing.. A hundred logical qubits means a hundred patches. One team proposing an alternative put it bluntly: scaling the surface code to a hundred or more logical qubits would be prohibitively expensive because of its poor encoding efficiency.1

What the letters mean

qLDPC stands for quantum low-density parity-check. A parity check is the question the surface code’s measure qubits already ask: do these qubits still agree? Low density means the questions stay small.4

By that definition the surface code is one too: at most four qubits per check. What it adds is a second rule, that every check uses only nearest neighbors on a flat grid. That rule has a proven cost. For codes built only from local checks on a flat surface, the number of logical qubits times the distance squared can grow no faster than the number of physical qubits.2 Drop the locality rule and the limit no longer applies. Theorists have since proven that qLDPC codes exist whose logical qubits and distance both grow in proportion to the code’s size.3

The numbers

One well-studied example stores 12 logical qubits in 288 physical qubits, half data and half check qubits, at distance 12.1 That is 24 physical qubits per logical qubit. A distance-13 surface code spends 338.1 Its authors estimate that matching the protection for 12 logical qubits with surface codes would take nearly 3,000 physical qubits, and in their noise model its thresholdThe error rate below which making an error-correcting code bigger starts to help instead of hurt., about 0.7%, is on par with the surface code’s.1 These are simulations of a memory under assumed noise, not a working machine.

Two grids of qubits compared. Title: qLDPC Codes: Fewer Qubits, Longer Wires. Left, labeled surface code: a 5 by 5 grid of small circles, with the center qubit drawn larger and linked only to its four grid neighbors; labels each qubit: 4 nearby links, 1 logical qubit per patch, and distance 13: 338 qubits each. Right, labeled a qLDPC code: the same grid, with the center qubit linked to its four neighbors plus two long red curved links reaching qubits in opposite far corners; labels each qubit: 4 nearby + 2 long-range, 12 logical qubits in 288, and distance 12: 24 qubits each. Beneath both: the saving is paid for in wiring, and in a harder decoder.
Figure 1: Fewer qubits, longer wires. A surface code links each qubit only to its grid neighbors and protects one logical qubit per patch. A qLDPC code adds long-range links, shown in red, and stores 12 logical qubits in 288 physical qubits. Schematic: which qubits the long links reach is illustrative.

The price: wiring

The catch is connectivityWhich qubits in a machine can directly interact with each other. More connectivity makes more algorithms possible.. In that example every qubit needs six links: four to its grid neighbors and two long-range.1 For a flat superconducting chip, the authors propose two stacked layers of wiring that do not cross.1

Atom-based machines take another route: atoms can be moved. One design for reconfigurable atom arrays makes the long-range connections by rearranging atoms.6 In simulation it starts to beat the surface code with as few as several hundred physical qubits, and saves more than tenfold with under 3,000, at an error rate of 1 in 1,000.6 The price there is time: moving atoms dominates how long each round takes.6

The price: decoding

The decoderThe classical algorithm that reads the pattern of error-correction alarms and bets on which errors most likely caused them. gets harder too. In the surface code, an error lights up two nearby alarms, and a decoder can pair them. In the 288-qubit example, each qubit sits in six checks, so one error sets off several alarms at once, and the tidy pairing trick no longer applies.

The usual general method, belief propagation, can stall on quantum codes, because many different errors explain the same alarms.5 The standard fix bolts on a heavier second step called ordered statistics decoding.4,5 The 288-qubit team lists it as an open problem that this decoder “may not be fast enough to perform error correction in real time.”1

Running computations is a further open question. Those authors show how to store information, and they ask how to apply logical gates.1 A review of the field notes that not much is known about logical gates for general qLDPC codes.4

How to read it

When a roadmap promises far fewer qubits thanks to qLDPC codes, check four things. Is the comparison at the same target error rate? What connectivity does it assume, and does the hardware have it? Can the decoder keep up in real time? Does the claim cover computing, or only storage? The overhead saving is why these codes lead many plans for large machines. Turning it into a working fault-tolerantThe milestone where a quantum computer can run long calculations correctly despite ongoing errors. It is the field’s holy grail. computer is still ahead.

Sources

  1. S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, and T. J. Yoder (IBM), “High-threshold and low-overhead fault-tolerant quantum memory,” Nature 627, 778 (2024). arXiv:2308.07915. (LDPC defined as each check acting on a few qubits and each qubit in a few checks; scaling the surface code to a hundred or more logical qubits “prohibitively expensive due to its poor encoding efficiency”; [[144,12,12]] code, 288 physical qubits with n ancillas, net rate 1/24 versus 1/338 for the distance-13 surface code; nearly 3,000 surface-code qubits for the same suppression on 12 logical qubits at 0.1% error; threshold 0.7% for circuit noise in the published version (0.8% in arXiv v2), on par with the surface code; degree-6 connectivity, four short-range and two long-range edges per vertex, thickness 2, two planar layers of couplers; BP-OSD decoder; open problems: BP-OSD “may not be fast enough to perform error correction in real time” and “How to apply logical gates?”) ↩
  2. S. Bravyi, D. Poulin, and B. Terhal, “Tradeoffs for reliable quantum information storage in 2D systems,” Physical Review Letters 104, 050503 (2010). arXiv:0909.5200. (For geometrically local codes on a 2D lattice, kd² = O(n).) ↩
  3. P. Panteleev and G. Kalachev, “Asymptotically good quantum and locally testable classical LDPC codes,” Proceedings of the 54th Annual ACM Symposium on Theory of Computing (2022), p. 375. DOI: 10.1145/3519935.3520017; arXiv:2111.03654. (Proof that asymptotically good qLDPC codes exist: constant rate and linear distance.) ↩
  4. N. P. Breuckmann and J. N. Eberhardt, “Quantum low-density parity-check codes,” PRX Quantum 2, 040101 (2021). arXiv:2103.06309. (Review; LDPC definition; Bravyi-Poulin-Terhal bound for Euclidean lattices; “Not much is known regarding logical gates for general LDPC codes”; BP with ordered statistics decoding performs well on many qLDPC codes.) ↩
  5. J. Roffe, D. R. White, S. Burton, and E. T. Campbell, “Decoding across the quantum LDPC code landscape,” Physical Review Research 2, 043423 (2020). arXiv:2005.07016. (BP fails to converge on degenerate quantum errors with split beliefs; BP+OSD post-processing as a general qLDPC decoder; the surface code encodes a single qubit per block; real-time decoding is computationally intensive.) ↩
  6. Q. Xu, J. P. Bonilla Ataides, C. A. Pattison, N. Raveendran, et al. (Harvard, QuEra, and others), “Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays,” Nature Physics 20, 1084 (2024). DOI: 10.1038/s41567-024-02479-z; arXiv:2308.08648. (qLDPC long-range connectivity “makes their physical realization challenging”; non-local syndrome extraction by atom rearrangement; outperforms the surface code with as few as several hundred physical qubits at 10⁻³; over an order of magnitude savings with fewer than 3,000 physical qubits; run time dominated by rearrangement; the surface code is a special case of hypergraph product codes.) ↩