Scaling classical hardware for accurate real-time quantum error correction

Chenyang Jin, Susanne F. Yelin, Andi GuarXiv 2026

TL;DR

Rapids is a new family of streaming neural decoders that solves the "speed vs. accuracy" trade-off in quantum error correction (QEC). By co-designing neural network architectures specifically for FPGA hardware, Rapids achieves the microsecond-level throughput required by superconducting qubits while delivering error rates up to 240 times lower than previous real-time hardware decoders.

What Problem Does This Paper Address?

Quantum computers are notoriously fragile. To perform useful calculations, they must use Quantum Error Correction (QEC) to constantly monitor and fix errors. This involves a "decoder"—a classical computer that processes error signals (syndromes) and decides which corrections to apply.

For superconducting processors, this is a brutal engineering challenge. Syndromes are generated every microsecond. If the decoder is too slow (low throughput), it creates a backlog that crashes the computation. If it takes too long to decide (high latency), the quantum gates "wait," and more errors accumulate. Until now, we had a binary choice: use fast, "dumb" decoders that require massive amounts of extra qubits to compensate for their mistakes, or use accurate, "smart" neural decoders that are too slow to run in real-time.

Methods

The authors introduce Rapids, a decoder that bridges this gap through hardware-algorithm co-design. Key innovations include:

  • Streaming Recurrent Architecture: Building on the "Cascade" convolutional neural network (CNN), Rapids adds a small gated recurrent unit (GRU) to handle an unbounded stream of syndromes. This allows it to process data round-by-round rather than waiting for an entire experiment to finish.
  • Hardware-Efficient Layers: Standard neural networks are too "heavy" for FPGAs. Rapids uses depthwise convolutions and Monarch matrices (structured sparse matrices) to reduce the number of required multiplications by 3 to 128 times compared to dense layers.
  • Integer Arithmetic: Instead of power-hungry floating-point math, the network is trained using quantization-aware training to run entirely on 4-bit and 8-bit integers.
  • Shift-and-Add Logic: The authors compiled fixed weights directly into FPGA logic gates (LUTs) using shift-and-add operations, which is five times more efficient than using dedicated multipliers (DSPs).
FIG. 2. Rapids as a parallel-window decoder, co-designed with the FPGA. (a) One CNN block, with numerical precision of the weights w and activations. (b) With L = 2 CNN blocks, the pooled vector zt depends on a bounded window of input rounds. This vector zt can be understood as a representation of the commitment for round t, with buffers of size L on either side. (c) This leads to a streaming design on an FPGA: each layer computes the features of one new round from the rounds it stores in block RAM (hatched), so the layers work on different rounds at once. (d) Monarch linear layers [29] and hardware-efficient nonlinearities sparsify each multilayer perceptron, halving its LUTs. (e) Sparse depthwise convolutions further reduce hardware requirements. (f) Fixed weights compiled into shift-and-add logic require 5 times fewer LUTs than general multipliers.

Datasets

The decoders were trained and evaluated using simulated data from Stim, a high-performance stabilizer circuit simulator.

  • Noise Models: The primary benchmark was the SI1000 model (circuit-level noise) at physical error rates around $p=0.15\%$.
  • Codes Evaluated:
    • Rotated surface codes (distances $d=3$ to $19$).
  • Superdense color codes ($d=3$ to $15$).
  • The $[[144, 12, 12]]$ bivariate-bicycle "Gross" code, a type of Quantum Low-Density Parity-Check (QLDPC) code.

Key Insights and Ideas

  • Sparsity is a Feature: A major "aha" moment was finding that sparser networks are actually more accurate for a fixed hardware budget. Because sparse layers are "cheaper," you can afford to make the network "wider" (more features per site), which captures more complex error correlations.
  • Spatial Pipelining: The CNN structure allows the decoder to be laid out as a physical pipeline across the FPGA. While one part of the chip processes round $t$, the next part is already working on round $t-1$. This makes throughput independent of the network's depth.
  • Scalability via "Cuts": Because the CNN only looks at local neighbors, the pipeline can be "cut" and spread across multiple FPGAs or even custom ASIC chips with minimal communication overhead. This provides a clear path to decoding the thousands of logical qubits needed for practical quantum algorithms.
Rapids outperforms existing real-time decoders in both speed and accuracy across different code distances.

Key Results

  • Surface Code ($d=19$): Rapids achieved a throughput of 1 MHz (matching superconducting speeds) on a single FPGA. It produced 240 times fewer logical errors than Union-Find, the only other decoder previously shown to run in real-time at this scale.
  • Color Code ($d=15$): It was over 20 times more accurate than the state-of-the-art Chromobius decoder.
  • Gross Code: On the bivariate-bicycle code, Rapids was 16 times more accurate than the real-time Relay-BP decoder.
  • Latency: For $d=19$, the "compact" version had a latency of ~20 $\mu$s. By spreading the work across two FPGAs, they reduced this to ~13 $\mu$s.
  • ASIC Potential: The authors estimate that a custom silicon (ASIC) version would draw only 10W of power per logical qubit, compared to ~250W for an FPGA, making large-scale quantum data centers much more feasible.

Limitations and Future Work

  • Latency Floor: There is a fundamental latency floor (roughly 8 $\mu$s for $d=19$) caused by the time it takes for signals to travel between chips. Reducing this further may require even tighter integration between the quantum controller and the decoder.
  • Training Complexity: Like all neural decoders, Rapids must be trained on specific noise models. If the real quantum hardware's noise drifts or differs significantly from the simulation, the decoder's accuracy might degrade.
  • Hardware Footprint: While efficient, a $d=19$ surface code decoder still consumes about half of a high-end AMD Versal VP1802 FPGA. Scaling to hundreds of logical qubits will require the transition to ASICs or highly modular FPGA clusters.

Summary updated

Abstract

Fault-tolerant quantum computation requires a classical decoder fast enough to process syndrome measurements at the rate at which they are generated, and to return its decisions with low latency. This is most demanding for superconducting processors, whose fast syndrome cycles force a trade-off between decoding speed and accuracy. Decoders fast enough to keep up sacrifice accuracy, which must be compensated for with larger codes and thus additional physical qubits. Here we introduce Rapids, a streaming neural decoder that is both fast and accurate. We achieve this by co-designing the decoder with a field-programmable gate array (FPGA): the network is built from operations that map cheaply onto the device and trained in its integer arithmetic. For the distance-19 surface code, Rapids decodes each round of syndromes in under a microsecond on a single FPGA, fast enough for superconducting processors, and returns its decisions with the low latency that fault-tolerant algorithms require. Its logical error rate is 240 times lower than that of existing real-time hardware decoders. The same design extends to the color code and the [[144,12,12]] bivariate-bicycle code, on which our decoder is 16 times more accurate than the real-time Relay decoder. We further show that the decoder scales: spread over several FPGAs or hardened into custom silicon, it becomes faster, more accurate, or able to decode larger codes. Classical hardware thus becomes a further resource, alongside qubits, that can be scaled to improve fault-tolerant quantum computers.
BibTeX
@misc{jin2026scaling,
  author = {Chenyang Jin and Susanne F. Yelin and Andi Gu},
  title = {{Scaling classical hardware for accurate real-time quantum error correction}},
  year = {2026},
  eprint = {2611.26447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26447},
}
Figure