FPGA-based Distributed Union-Find Decoder for Surface Codes

Namitha Liyanage, Yue Wu, Siona Tagare, Lin ZhongarXiv 2024 · DOI

Abstract

Fault-tolerant quantum computing requires real-time error correction to prevent the accumulation of physical errors. The surface code is a leading candidate for quantum error correction (QEC), but its decoding process often presents a computational bottleneck as system sizes scale. We present Helios, a distributed Union-Find (UF) decoder implemented on FPGAs. By assigning a processing element to every vertex in the decoding graph, Helios achieves sublinear average time complexity—a significant milestone where decoding time per measurement round decreases as the code distance increases. Our implementation on a Xilinx VCU129 FPGA demonstrates record-breaking speeds, decoding a distance $d=21$ surface code in 11.5 ns per round, effectively eliminating the decoding backlog for near-term superconducting quantum processors.

Introduction

To realize practical quantum computers, we must implement Quantum Error Correction (QEC) to protect fragile quantum information from environmental noise. The surface code is currently the most promising QEC scheme due to its high error threshold and 2D local connectivity. However, as the code distance ($d$) increases to provide higher reliability, the volume of syndrome data grows, placing a heavy burden on the classical decoding hardware.

Decoding involves processing measurement outcomes (syndromes) to identify and correct underlying physical errors. If the decoder's latency exceeds the rate of syndrome generation, an "exponential backlog" occurs, eventually halting the quantum computation. Most existing decoders scale linearly or super-linearly with $d$, making them a potential bottleneck for large-scale fault-tolerant systems.

Syndrome extraction circuit for a surface code stabilizer measurement.

The Helios Architecture

Helios addresses the decoding bottleneck by parallelizing the Union-Find (UF) algorithm at the hardware level. While the standard UF algorithm is efficient, Helios transforms it into a fully distributed process where computation is localized to individual vertices in the decoding graph.

Vertex-Level Parallelism

The core of Helios is a grid of Processing Elements (PEs), where each PE corresponds to a vertex in the 3D spacetime decoding graph. These PEs independently manage cluster growth and merge with neighbors based on local syndrome data. This architecture avoids the serial bottlenecks of centralized processors.

The 3D decoding graph and noise models used to evaluate Helios.

Hardware Implementation

Implemented on a Xilinx VCU129 FPGA, Helios utilizes a hybrid 3D grid and tree structure. A global controller synchronizes the PEs through distinct phases: Growing, Merging, and Parity Checking. To handle codes larger than the physical FPGA capacity, the researchers developed a context-switching mechanism that time-multiplexes sub-graphs, allowing for the decoding of codes up to $d=51$.

Decoding Performance and Noise Models

The decoder was rigorously tested against three primary noise models: phenomenological noise, circuit-level noise, and erasure errors. The 3D graph structure (shown in the figure above) illustrates how syndromes are tracked across multiple measurement rounds. In the circuit-level noise model, additional edges are added to the graph to account for errors occurring during gate operations, increasing the complexity of the decoding task.

Key Results

Helios demonstrates unprecedented performance metrics:

  • Sublinear Scaling: Uniquely, the average decoding time per round decreases as the code distance $d$ increases. This is because the distributed hardware resources grow as $O(d^3)$, allowing the workload to be spread more effectively across parallel units.
  • Record-Breaking Latency: For a $d=21$ code under phenomenological noise (0.1%), Helios achieves an average latency of 11.5 ns per round. Under more realistic circuit-level noise for $d=17$, the latency is 23.7 ns.
  • Scalability: Using context switching, a $d=51$ code was decoded with a latency of 544 ns per round, which remains well below the microsecond-scale measurement times typical of superconducting qubits.

Discussion and Future Work

While Helios provides a path to backlog-free decoding, it is resource-intensive, requiring $O(d^3)$ hardware components. As code distances reach into the hundreds, routing complexity on FPGAs may lead to clock frequency degradation. Future research will focus on multi-FPGA implementations and further optimizing the hardware-algorithm co-design to maintain these speed advantages at even larger scales.

Summary updated

BibTeX
@misc{liyanage2024fpga,
  author = {Namitha Liyanage and Yue Wu and Siona Tagare and Lin Zhong},
  title = {{FPGA-based Distributed Union-Find Decoder for Surface Codes}},
  year = {2024},
  eprint = {2406.08491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08491},
}
Figure