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