Chenyang (Eric) Jin of the University of California, Berkeley, and colleagues have developed Rapids, a new decoder that lowers the logical error rate by a factor of 240 compared to existing real-time hardware decoders for the distance-19 surface code. The decoder achieves this performance by processing each round of syndromes in under a microsecond on a single field-programmable gate array, a speed sufficient for use with fast superconducting processors.
This co-designed FPGA network is trained using integer arithmetic. The design extends to other quantum error correction codes like the color code and bivariate-bicycle code, where it is more accurate than the Relay decoder.
Rapids Decoder Achieves 240x Error Rate Reduction on FPGAs
The decoder’s low latency is critical for fault-tolerant quantum algorithms, enabling timely decisions during computation. The Rapids design isn’t limited to a single quantum error correction scheme. It also extends to the color code and the bivariate-bicycle code, demonstrating versatility beyond the surface code. On these alternative codes, Rapids achieves greater accuracy than the Relay decoder, a previously established benchmark for real-time performance. This broader applicability suggests a robust architecture adaptable to diverse quantum computing platforms and error correction strategies.
Experiments 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. “Its logical error rate at p = 0.15% is 240 times below that of union-find,” the paper states, emphasizing the magnitude of the improvement.
Real-Time Decoding Challenges for Superconducting Processors
Superconducting processors demand a delicate balance between decoding speed and accuracy, a challenge Rapids addresses through a novel co-design with field-programmable gate arrays. The architecture’s efficiency stems from building the decoder from operations that readily translate to FPGA hardware and training it using integer arithmetic, a departure from more computationally intensive approaches. This design choice allows Rapids to process syndrome measurements at the rate they are generated, a critical requirement for these fast-cycling processors. Beyond speed, the decoder significantly improves error correction performance.
Detailed analysis of the decoder’s implementation on an AMD VP1802 FPGA reveals a compact network capable of efficient hardware use, with a floorplan optimized for the demands of quantum error correction. The work also highlights the trade-offs inherent in real-time decoding, noting that prior decoders have often sacrificed accuracy to maintain speed. The Rapids design aims to overcome this limitation, offering a solution that prioritizes both metrics.
Comparisons with other real-time decoders, such as AQ2-RT and Willow RT, demonstrate the improvements achieved by the new approach, with Rapids consistently outperforming these alternatives in terms of logical error rate and throughput. The team’s analysis of the decoder’s space-time cost further illustrates its efficiency, showing that Rapids can achieve comparable performance with fewer resources than traditional methods. “Rapids compact and fast are two FPGA implementations of the same trained decoder,” the paper notes, emphasizing the flexibility of the design.
Rapids Architecture: Streaming Neural Network Co-Design
Prioritizing a streaming architecture and enabling parallel processing of syndrome measurements on field-programmable gate arrays, Rapids is designed for high-performance computation. This approach allows the decoder to maintain high throughput without sacrificing accuracy, a common challenge in real-time quantum error correction. Unlike previous decoders, Rapids integrates a small recurrent network with a convolutional neural network, creating a parallel-window decoder that processes incoming syndrome data efficiently.
This co-design, extending to both the network’s architecture and training process, is specifically tailored for implementation on FPGAs. Rapids’ convolutional neural network structure mirrors the repetitive nature of quantum error correction codes, applying consistent filters across the lattice to extract features from each check. Each block within the network updates features from neighboring sites in space and time, using the same weights at every location and round.
This design forms a pipeline where the syndrome streams through at a rate of one site per clock cycle, maximizing processing speed. The limited recurrence is contained within a small gated recurrent unit at the network’s end, ensuring the throughput remains independent of network depth. The architecture addresses a critical limitation of superconducting processors, which generate syndrome measurements at rates approaching one microsecond per round. Existing decoders often compromise accuracy to meet this speed requirement, necessitating larger codes and more physical qubits to compensate for increased error rates.
Surface Code Performance: Rapids at Distance 19
For a distance-19 surface code, the Rapids decoder processes over one million syndrome rounds per second using a single AMD Versal Premium VP1802 FPGA, achieving a speed sufficient for current superconducting processors. Characterization of the decoder’s performance involved implementing the circuits on FPGAs and measuring speed, accuracy and hardware footprint, with the team reporting latency measurements in microseconds and power consumption in watts. C.J. implemented the decoders, while S.F.Y. supervised the project, and all authors contributed to writing and revising the manuscript.
Scalability of Rapids Across Multiple FPGAs
The Rapids decoder’s architecture allows for spatial parallelization, directly addressing limitations in single-FPGA throughput, and enabling faster processing of quantum error correction. Evaluations on three distinct quantum codes, the surface code, the color code and the bivariate-bicycle code, demonstrate Rapids’ broad applicability and consistent performance improvements. The implementation on AMD Versal Premium VP1802 FPGAs provided concrete data on speed, accuracy and hardware footprint, confirming the decoder’s practical viability.
Low-Latency Design: Rapids Throughput and Decision Time
The Rapids decoder achieves a decision latency of 20.36 microseconds at a code distance of 19, a speed enabled by processing one quantum site per clock cycle on a field-programmable gate array. A small gated recurrent unit (GRU) is incorporated at the end of the convolutional neural network to maintain a bounded history of features, while the convolutional layers themselves are pipelined across decoding rounds.
This approach ensures throughput is independent of network depth, allowing for efficient processing of syndrome measurements. “Each window must wait for the one before it, so the throughput is limited by the time to decode a single window,” the paper notes, emphasizing the benefit of parallel window decoding.
Sparse Layers and Integer Arithmetic Enhance Hardware Efficiency
Convolutional networks within the Rapids decoder use sparse layers specifically designed for the arithmetic and logic resources of field-programmable gate arrays, achieving hardware efficiency through quantization-aware training that preserves accuracy in integer arithmetic. This approach allows the decoder to process syndrome measurements with a one microsecond cycle time on a single FPGA, a speed critical for superconducting processors, while introducing only 20 microseconds of latency.
The design prioritizes hardware minimization through several techniques, including Monarch linear layers and sparse depthwise convolutions, which together halve the number of look-up tables required for operation. Fixed weights, compiled into shift-and-add logic, further reduce resource demands by requiring five times fewer look-up tables than general multipliers. This focus on efficient operations allows Rapids to process syndromes as a continuous stream of data, maintaining throughput that matches the rate of syndrome extraction from the quantum system.
The decoder’s throughput is a key metric, quantifying the number of syndrome rounds processed per second, and is directly linked to the speed of the underlying quantum processor. The trade-off between accuracy and hardware savings is addressed by the decoder’s architecture, which demonstrates that sparse networks can actually be more accurate than denser networks given a fixed hardware budget. A standard convolutional operation requires 27C2 products per site, dominating the cost, but Rapids reduces this through sparse connections, connecting every input channel to every output channel with three to five times fewer products.
By embracing integer arithmetic, a natural fit for FPGAs, the Rapids team quantized depthwise convolutions and Monarch layers to 8-bit and 4-bit integers, training the network with this quantization in place to maintain decoder accuracy. For example, a multiplication by 5 is compiled into a network of shifts and additions, represented as (x≪ 2) + x, directly within the configurable logic.
👉 More information
🗞 Scaling classical hardware for accurate real-time quantum error correction
✍️ Susanne F. Yelin and Andi Gu (Department of Physics, Harvard University, Cambridge, Massachusetts, USA); Chenyang Jin
🧠 ArXiv: https://arxiv.org/pdf/2611.26447v1




See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.
