Newsletter
English
Guide6 min read

qLDPC codes explained: how Riverlane's directional codes fit on a square-grid chip

A plain-language guide to quantum low-density parity-check codes, prompted by a Nature Communications paper published on November 25, 2026. Its results are simulations of quantum memory, not hardware experiments.

The short answer

A qLDPC (quantum low-density parity-check) code is an error-correcting code in which every check involves only a few qubits and every qubit takes part in only a few checks. Well-chosen qLDPC codes can store several logical qubits in far fewer physical qubits than the surface code. The usual price is extra, long-range connections between qubits. Directional codes, published by Riverlane researchers in Nature Communications on November 25, 2026, try to avoid that price by putting the swapping action of the iSWAP gate to work on an ordinary square grid.

Why error correction is expensive

Error correction spreads one logical qubit across many physical qubits and repeatedly measures checks, called stabilizers, to locate errors without reading out the stored data. The surface code, the most widely used approach today, needs only nearest-neighbor connections on a square grid, but each logical qubit costs many physical qubits. In IBM's 2024 Nature paper, the surface code would need nearly 3,000 physical qubits to match what a qLDPC code achieved with 288.

What "low-density parity-check" means

The name comes from classical coding theory. In a qLDPC code family, the number of qubits in each check and the number of checks on each qubit both stay below a fixed limit as the code grows. That sparsity keeps check circuits short and easy to run in parallel. It says nothing about where on the chip the qubits of a check sit, and that is where the hardware gets difficult.

The connectivity catch: IBM's bivariate bicycle codes

IBM's bivariate bicycle codes are the best-known qLDPC example. In the March 2024 Nature paper, one code of this family kept 12 logical qubits for nearly 1 million syndrome cycles with 288 physical qubits, assuming a physical error rate of 0.1%, and showed an error threshold of 0.7%. Each qubit needs six connections, including long-range links, instead of the four of a square grid. IBM's planned Starling system, targeted for 2029 with 200 logical qubits running 100 million operations, is built on this approach. In November 2026 IBM said a revised code needs five connections per qubit instead of six.

Directional codes: moving qubits instead of adding wires

Riverlane's directional codes keep the chip's wiring fixed and change which qubits meet during the circuit. An iSWAP gate exchanges the states of the two qubits it acts on. One layer of these gates shifts every auxiliary (measurement) qubit one step in one direction and every data qubit one step the other way, so each auxiliary qubit meets new neighbors. A code is written as a sequence of compass steps; the main example, N²E³N², measures checks on seven qubits at a time and encodes 12 logical qubits. The codes are defined on a torus, and some variants also fit the sparser hexagonal grid.

What the paper shows

  • All results come from simulated quantum memory under SI-1000, a circuit-level noise model for superconducting qubits, using the Stim simulator and the Tesseract decoder. Riverlane says the study took about 45 CPU-core-years.
  • At equal code distance, the rotated N²E³N² code uses half the physical qubits of six copies of the rotated toric code, which together encode the same 12 logical qubits.
  • Extrapolated to larger distances, the best family matches the rotated toric code's logical error rate at a 0.1% physical error rate with about a quarter to a third of the physical qubits.
  • Bivariate bicycle codes still performed better in the simulations. The authors point out that the noise model adds no extra noise for those codes' long-range links, which favors them.

What it does not show yet

  • No hardware experiment: every result is a simulation.
  • Memory only: logical operations, including non-Clifford gates, still have to be worked out.
  • No flat layout: the codes live on a torus. Planar versions proposed by other groups since the July 2025 preprint are follow-on work.
  • Decoding speed: Riverlane says the Tesseract decoder used in the study cannot yet keep up in real time.
  • Gate quality: the model treats iSWAP and CZ errors as equal, while experiments show larger conditional-phase errors for iSWAP gates.

How to read the next qLDPC claim

  • The comparison: physical qubits per logical qubit at the same logical error rate, and against which baseline code.
  • The noise model: does it charge for long-range connections and for the gates the hardware actually uses?
  • The scope: memory or computation, simulation or hardware, torus or planar layout.
  • The decoder: can it run in real time at the chip's cycle rate?

Related reading: our quantum error correction explainer, decoders explained, the IBM Starling progress deep dive, and the profiles of Riverlane and IBM Quantum.

Sources

Facts on this page come from the sources below, retrieved by DesignQuantum™.

  1. Directional codes for quantum LDPC error correction on square and hexagonal grid architectures — Nature Communications (Nov 25, 2026) nature.com
  2. Gehér, Byfield, Ruban: Directional Codes for Quantum LDPC Error Correction on Square and Hexagonal Grid Architectures — arXiv:2507.19430 (v4, Nov 2, 2026) arxiv.org
  3. Directional codes: low-overhead qLDPC on a square grid — Riverlane (Nov 26, 2026) riverlane.com
  4. High-threshold and low-overhead fault-tolerant quantum memory — Nature (Mar 27, 2024) nature.com
  5. Tracking progress on the path to IBM Quantum Starling — IBM Quantum (Nov 11, 2026) ibm.com
  6. IBM Sets the Course to Build World's First Large-Scale, Fault-Tolerant Quantum Computer — IBM via PR Newswire (Jun 10, 2025) prnewswire.com
  7. Qubit QLDPC code — Error Correction Zoo (accessed Nov 27, 2026) errorcorrectionzoo.org