Real-time decoding of quantum error correction codes using high-performance computing
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Real-time decoding of quantum error correction codes using high-performance computing Lingling Lao, Qiang Wang, Yuanqi Liu, Yantong Liu, Haowen Wang, Yitao Chen, Yankang Zhao, Zhenwei Wu, Wei Zhang, Yong Dong, Yingwen Liu, Mingche Lai,∗ and Junjie Wu†
arXiv:2608.03948v1 [quant-ph] 4 Aug 2026
College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China (Dated: August 5, 2026) Quantum error correction (QEC) is indispensable for building scalable fault-tolerant quantum computers. Effective QEC demands stringent real-time decoding: the decoder must process syndrome measurements and determine corrections within a time scale—typically on the order of microseconds, to avoid data backlog. Scaling to large number of logical qubits further necessitates significant computational resources. In this work, we propose an architecture, called THQLink, for real-time decoding of quantum error correction codes using high-performance computing (HPC) resources. The network connecting the HPC and the control system of quantum processing unit (QPU) is built on TH-Express and can be adapted to different quantum technologies and their associated control stacks. We report a round-trip latency of 2.944 µs on average, with an incremental overhead of 130 ns per additional hop. Using a parallel window strategy, we demonstrate real-time decoding (1 µs per QEC round) of the surface code up to distance 19 using a matching-based decoder on CPUs. Our work presents a scalable framework for real-time decoding in fault-tolerant quantum computing. It can be readily applied to quantum-centric supercomputers that feature tight integration between QPU and HPC resources, thereby enabling efficient support for hybrid quantum-classical algorithms and computation-intensive workloads offloaded from the QPU.
I.
INTRODUCTION
Quantum computing holds the promise of solving problems intractable for classical supercomputers, yet its practical realization hinges critically on the ability to suppress physical errors through quantum error correction (QEC) [1–3]. The key idea of QEC is to protect information by redundantly encoding many physical qubits into one logical qubit and periodically measure auxiliary qubits to extract error syndromes without collapsing the logical state [3, 4]. A classical decoder processes the syndrome data to diagnose the most probable errors and prescribe corrective actions [5]. To be viable for large-scale quantum computing, a decoder must satisfy three stringent and often conflicting requirements. First, it should achieve accuracy approaching the optimal decoder, thereby minimizing the qubit overhead needed to reach a target logical error rate [6]. Second, it must process syndromes within the hardware’s generation clock rate, typically around 1 µs for superconducting qubits, to prevent an exponential data backlog [3, 7]. This processing time includes both the actual decoding computation and the communication latency between the decoder and the quantum system controller(QSC). Meeting the realtime budget necessitates that the computing unit hosting the decoder be either tightly coupled with or physically integrated into QSC [8, 9]. Third, the decoder should be scalable to support hundreds or thousands of logical qubits at large code distances for utility-scale quantum computing.
∗ mingchelai@nudt.edu.cn † junjiewu@nudt.edu.cn
Various decoding algorithms have been developed in both software and dedicated hardware to satisfy one or all the requirements. Minimum-weight perfect matching (MWPM) is a widely used decoder for topological codes [10, 11]. Sparse blossom is a highly optimized sequential implementation of MWPM designed for fast single-core performance, it decodes a distance-17 surface code with 1 us per QEC round [12]. Fusion blossom is a parallel MWPM solver to leverage multi-core CPUs, enabling it to decode surface codes up to distance 33 with submicrosecond per-round latency on a 64-core processor [13]. The Union-Find decoder achieves near-linear time complexity but typically sacrifices some accuracy compared to MWPM [14]. Belief propagation with ordered statistics decoding (BP+OSD) is applicable to various codes such as surface codes and bicycle codes [15]. Nevertheless, the post-processing step of OSD may become a bottleneck for real-time performance. Relay-BP introduces asymmetric memory strengths to enable faster and more accurate convergence to the final error belief [16]. It achieves roughly a 10-fold improvement in accuracy over BP+OSD, while maintaining or even improving the speed of standard BP. Except the conventional algorithms, machine learning (ML) decoding is emerging as a highly viable solution because it can learn directly from data without needing to fit a precise noise model, allowing them to adapt to the complex and unpredictable noise present in real hardware and thereby achieve near-optimal logical error rates. Decoders based on reinforcement learning [17–20], graph neural networks [21–23], diffusion models [24, 25], and transformers [26–30] are being explored. These software decoders often run on CPUs or GPUs and face prohibitive and non-deterministic delays when connecting to QSC via TCP/IP Network. While Periph-
2 eral Component Interconnect Express (PCIe) is widely adopted for high-speed peripheral interconnects, its chassis-confined electrical reach creates a fundamental roadblock to cross-node scaling of QEC decoding resources. On the other hand, decoders implemented on dedicated classical hardware—such as field-programmable gate arrays (FPGAs) [31–36]or application-specific integrated circuits (ASICs) [31] can be naturally integrated with the control system of quantum processors and offer superior decoding speed to meet the real-time latency requirements. FPGAs are widely used for their reconfigurability and ability to achieve high throughput. The collision clustering decoder on an FPGA achieves megahertz decoding speeds for surface codes up to distance 21 [31]. For BP+OSD, a parallel architecture on a single FPGA can operate at 200 MHz for surface codes up to distance 9 [32]. The Relay-BP algorithm on an AMD FPGA, and the GARI decoder for correlated errors has shown a preliminary FPGA implementation with an average latency of just 273 ns [33]. ASICs are fixed-function chips that provide the higher performance and lower energy consumption than FPGAs. The ASIC implementation of the collision clustering decoder decodes a distance-23 surface code in 0.24 µs, occupying just 0.064 mm2 of die area and consuming only 7.72 mW of power [31]. While impressive in speed and energy efficiency, this hardware-firmware co-design is inherently rigid. Any modification to the QEC code, noise model, or decoding algorithm necessitates costly and time-consuming chip redesigns. Google’s AlphaQubit 2 demonstrated that transformer-based decoders can achieve near-optimal logical error rates and enable real-time decoding for surface codes up to distance 11 on commercial TPUs [27]. However, its reliance on specialized machine-learning accelerators creates a closed ecosystem that is difficult to adapt, or integrate into standard quantum computing workflows. To summarize, custom hardware such as FPGAs, ASICs, and TPUs delivers peak deterministic performance but sacrifices scalability or programmability or adaptability. NVIDIA’s recently NVQLink architecture offers a foundational blueprint for tightly coupling QPUs with HPC resources via a low-latency, deterministic interconnect reporting a mean round-trip latency of 3.839 µs over RoCE Ethernet[37], and balancing performance with scalability, programmability, and support for heterogeneous QPU modalities. However, its design prioritizes commercial deployability: it retains generic Ethernet protocol overhead and current validation is limited to pure network loopback tests without real-time decoding demonstration. In this work, we introduce a scalable real-time QEC decoding architecture, THQLink, that leverages a generalpurpose HPC cluster as its primary computational engine, tightly coupled to the QSC via a high-speed interconnection network, TH-Express. Our interconnect strips redundant protocol fields, achieving a measured mean round-trip latency of 2.944 µs — a 23.3% reduc-
tion over NVQLink. Critically, THQLink supports seamless scaling to additional decoding compute nodes via its switching fabric, with a measured incremental latency overhead of just 130 ns on average per additional network hop. For the first time, we demonstrate a full closed-loop decoding pipeline spanning FPGA-driven transmission of syndrome data, low-latency transport, decoding, and correction feedback to the FPGA. With a carefully designed parallel window decoding strategy and optimized software implementations, We demonstrate real-time (1 µs per round) decoding requirement at scale using HPC while offering flexibility and scalability that are challenging to achieve with hardware-fixed alternatives.
II. A.
BACKGROUND
Quantum error correction
Quantum systems are inherently fragile: interactions with the environment cause decoherence, while imperfect quantum operations introduce errors that accumulate throughout a computation. Unlike classical information, quantum states cannot be copied due to the nocloning theorem, making straightforward classical error correction inapplicable [38]. Quantum error correction (QEC) overcomes this fundamental limitation by encoding a logical qubit into an entangled state of many physical qubits, allowing errors to be detected and corrected without directly measuring the encoded quantum information [1, 3, 39, 40]. Among the various QEC architectures proposed to date, topological codes, represented by the surface code [5, 6, 41, 42] and the color code [43–46], have become the predominant choice for near-term QEC demonstrations owing to their local connectivity and compatibility with current hardware. In parallel, emerging quantum low-density parity-check (QLDPC) codes have drawn increasing attention for their potential to achieve higher encoding rates and reduce the physical qubit overhead required for fault tolerance, offering a promising pathway toward large-scale quantum computation [47, 48]. Recent experimental progress has further demonstrated the practical viability of QEC: logical qubits have been operated below the surface-code threshold in both superconducting [8] and neutral-atom [49] platforms, while trapped-ion systems have demonstrated break-even QEC performance [50]. Fault-tolerant quantum computing extends the principles of QEC from protecting quantum memories to executing reliable logical computations. In this scenario, the decoder is no longer merely responsible for identifying errors; it must also provide timely feedback to support logical operations. If decoding cannot keep pace with syndrome generation, syndrome data accumulate into a decoding backlog, potentially stalling the computation and compromising fault-tolerance. Moreover, unlike quantum-memory experiments, where Pauli corrections
3 can generally be deferred through Pauli frame tracking, the execution of non-Clifford gates such as the logical T gate requires the pending Pauli frame to be resolved and the corresponding corrections to be applied before the gate can proceed. These requirements place stringent demands on decoding latency, making low-latency decoding a key enabling technology for scalable fault-tolerant quantum computing.
B.
Decoding surface codes
The surface code encodes a logical qubit into a twodimensional lattice of physical qubits [6], as shown in Fig. 1(a). The lattice contains data qubits which store the logical information, and ancilla qubits which perform stabilizer measurements—either X-type or Z-type plaquette checks on their four neighboring data qubits. By periodically measuring these stabilizers, the quantum control system extracts syndrome data: a binary string indicating which stabilizer measurements have flipped relative to their expected outcomes. A single physical error on a data qubit flips the two adjacent stabilizers, producing a pair of syndrome defects in the spatial lattice. Measurement errors add a critical complication: a faulty readout of a stabilizer can produce a false syndrome defect in a single time step, even when no physical error occurred. This creates a temporal dimension to the decoding problem, where defects may appear and disappear over successive measurement rounds. To distinguish data errors from measurement faults, the decoder must track syndrome changes across multiple rounds, treating a measurement error as a defect that persists for only one time step before vanishing in the next round. One can formulate the decoding problem as a graphtheoretic matching problem on the space-time graph shown in Fig. 1(b), where vertices represent syndrome events at specific measurement rounds and edges represent either data errors (connecting defects across space within the same round) or measurement errors (connecting a defect in one round to its absence in the next round via a temporal edge). A widely used decoder based on this formulation is the minimum-weight perfect matching (MWPM) decoder, which seeks a perfect matching that pairs all syndrome defects across the entire space-time graph, yielding the most probable combination of data and measurement errors consistent with the observed syndrome stream. The decoder must process each new round of syndrome data in real time—typically within ∼1 us for superconducting qubits—to prevent a decoding backlog that would compromise fault tolerance. This stringent timing constraint has catalyzed extensive research into hardware-accelerated decoders [31, 34], transformer-based approaches [27], and parallel-window decoding architectures [7, 51] to keep pace with kilohertz to megahertz syndrome rates anticipated in near-term quantum devices.
(a)
(b)
Z
Z
M
Y
X stabilizer
Z stabilizer
Y
X
X
Z-type decoding graph
X-type decoding graph
FIG. 1. The rotated surface code and its decoding graphs. (a) A distance-5 rotated surface code. (b) Corresponding Z- and X-type space-time decoding graphs, where horizontal edges represent data-qubit errors and vertical dashed edges represent measurement (M ) errors. Red nodes denote detection events, and orange edges indicate their matching.
III. A.
THQLINK
Architecture overview
The proposed architecture, THQLink, integrates a quantum control system with high-performance computing resources to support low-latency, real-time decoding of quantum error-correction codes. During quantum execution, the control system performs qubit manipulation and measurement while continuously collecting syndrome information from the quantum processor. The resulting syndrome stream is transferred through a high-speed TH-Express interconnect to the decoding infrastructure [52, 53]. A hierarchy of TH-Express switches connects the quantum control system to multiple HPC racks, providing high-bandwidth and low-latency communication between the syndrome data source and distributed classical computing resources. This switched fabric allows decoding traffic to be routed to suitable compute nodes while supporting scalable deployment across multiple racks. Each HPC rack contains CPU- and/or GPU-based compute nodes that cooperate to execute the decoding pipeline. The computing nodes are responsible for both executing the decoding algorithms and handling a range of pre-/post-processing tasks, including communication, syndrome preprocessing, task scheduling, decoder coordination, and the delivery of recovery decisions. Incoming syndrome data can be partitioned across racks according to logical qubits, code patches, or decoding windows, enabling multiple decoding tasks to execute concurrently. After computation, the inferred error corrections are returned through the TH-Express network to the quantum control system. By combining scalable high-speed network with high-performance computing, the THQLink architecture could increase decoding throughput while preserving the low response latency required for faulttolerant quantum computing. THQLink is also inherently well suited for the paradigm of quantum-centric supercomputing, in which QPUs and classical HPC resources operate cooperatively within a tightly integrated system. These tasks include
4
Rack 0
Rack 1
DIMM CPU
Rack R-1
DIMM PCIE
GPU/...
CPU
PCIE
DIMM PCIE
...
GPU/...
CPU
PCIE
NIC
TH Express network
NIC
Switches in rack (optional)
Switch 0
GPU/...
PCIE
NIC
Switches in rack (optional)
PCIE
NRC
Switch 1
Switches in rack (optional)
NRC
...
Switch S-1
NRC
TH Express link Quantum system controllor
FPGA
FPGA
...
FPGA
(Distributed)
Quantum processing unit (QPU) (Superconducting, atom, ion, photon, ...)
Switch
TH Express switch
NRC
TH Express network routing chip
NIC
TH Express network interface card
FPGA
FPGA with TH Express NIC core
FIG. 2. Overview of the THQLink architecture.
hybrid quantum-classical algorithms, error mitigation, calibration, etc. Consequently, the design not only fulfills the stringent latency and throughput requirements of real-time decoding but also provides a scalable and resilient communication and execution backbone for largescale hybrid quantum-classical computing platforms.
B.
High-speed interconnect
The high-speed interconnection network is bulit on TH-Express developed for Tianhe supercomputers [52, 53]. It is designed to provide a low-latency, highbandwidth, and scalable communication substrate. As shown in Figure 3, the THQLink via TH-Express network is mainly composed of three types of dedicated components: network interface cards (NICs) which connect compute nodes to the interconnection network, FPGAs with NIC core which send syndromes and receive corrections, and switches which perform packet switching and routing inside the network. The NIC implements the host-side protocol functions of TH-Express, covering the physical, link, network, and transport layers, together with the upper-layer communication interfaces exposed to applications and runtime systems. It supports both Mini-Packet (MP), a lightweight short-message communication mechanism, and Remote Direct Memory Access (RDMA) for efficient bulk data movement. With up to 800 Gbps of aggregate network bandwidth, sub-0.8 µs communication latency, RDMA read/write operations, and hardware-offloaded collec-
tive communication, the NIC is optimized for latencysensitive and communication-intensive workloads. The FPGAs in QSC implement the physical and link layers of TH-Express together with custom logic, syndrome-topacket generator and correction for QEC. The switch implements the physical, link, and network layers of TH-Express and provides the core switching and routing capability of the interconnection fabric. It adopts a non-blocking full-line-rate switching architecture and enables TH-Express to support flexible topologies while maintaining high throughput under dynamic traffic conditions. Compared with conventional PCIe- or Ethernet-based communication solutions, TH-Express provides stronger topological flexibility and higher protocol efficiency for tightly coupled computing systems. Its dedicated protocol stack reduces software overhead, supports zero-copy data movement, enables hardware-based reliable delivery and traffic control, and allows communication operations to be offloaded from host processors. Therefore, THExpress is well suited for tight coupling between HPC and QPUs.
C.
Real-time decoding via THQLink
Figure 3 illustrates the closed-loop real-time decoding flow in THQLink. On the FPGA side, the Syndrome-toPacket generator encapsulates streaming syndromes into Mini-Packets and transmits them over the lightweight physical/link-layer interface. The packets are then for-
5
STP Generator
Syndrome-To-Packet generator
Correction
Corrective Pauli operators
Compute node Application layer (Decoding) Transport layer
Switch
STP Correction generator
Network layer
Network layer
Link layer
Link layer
Link layer
Physical layer
Physical layer
Physical layer
NIC
FPGA
FIG. 3. The real-time decoding flow via the high-speed network TH-Express.
warded by the switch. At the host side, the NIC interface passes the syndrome packets through the network and transport them to the application-layer (i.e., the decoder) where the corresponding correction actions are computed. Before each run, the host constructs the decoding graphs and edge weights, generates lookup tables for mapping recovery edges to correction records, initializes a persistent worker pool and a decoder instance for each window if parallel-window is used, and pre-allocates the required working buffers. These setups remain resident and are reused throughout a run. As the syndromes arrive, the host prepares the corresponding input blocks of the decoder and stores them in pre-allocated buffers. We will evaluate both the global decoding strategy (that decodes all syndromes at once) and the parallel-window decoding strategy [7, 51] (that decodes overlapping syndrome rounds to exploit parallelism, more details can be found in Appendix A). For parallel-window decoding, an A-window task is dispatched as soon as all data required by its core and buffer regions are available, without waiting for subsequent QEC rounds outside that window. After an A window has been decoded, recovery contributions supported entirely within its core are retained, whereas seam-crossing matching information is encoded as artificial boundary defects and passed as boundary information to the corresponding B window. The Bwindow task Bi becomes eligible for execution once its two adjacent A-window tasks, Ai and Ai+1 , have completed and provided the required boundary information. This dependency structure permits a ready B-window task to execute without waiting for unrelated A-window tasks, thereby enabling decoding to overlap syndrome acquisition and transmission. Once the final round of syndromes has been received by the host, all remaining window tasks whose input dependencies are satisfied can be executed. The window-decoding stage is complete when all A- and B-window tasks required for the current decoding instance have finished. Finally, the re-
covery contributions produced by the completed A and B windows are combined so that duplicate contributions cancel. The resulting correction (i.e., corrective Pauli operators) are sent back along the reverse path to the FPGA correction logic, which will trigger the quantum control system for applying corresponding corrections on QPUs. The Switch decouples FPGA syndrome I/O from host decoder placement, enabling the system to scale out by attaching additional FPGA and HPC nodes through TH-Express ports. We measure the end-to-end decoding latency as τe2e = tcorr − tsyn,last , where tsyn,last denotes the time at which transmission of the final round of syndromes starts, and tcorr denotes the time at which the complete correction set C has been received and made available at the FPGA correction module. Both timestamps are recorded in the same FPGA clock domain. This interval includes transmission of the syndromes to the host, the decoding time, correction calculation and mapping, and transmission of the correction back to the FPGA. Syndrome processing completed before tsyn,last is hidden by its overlap with syndrome acquisition and streaming. Software-level decoding latency is evaluated separately using a batch method. For each sample, the complete syndrome streams are available in host memory before timing begins. The parallel-window decoder and the global decoder (that decodes all syndromes at once) are evaluated using identical syndrome instances and same timing strategies. Syndrome generation and offline initialization are excluded for software-level decoding latency evaluation.
IV. A.
RESULTS
Experiment setup
We conduct experiments on Intel Xeon Gold 6348 CPUs running at 2.60GHz, featuring 28 physical cores
Network latency characterization
Since communication latency directly contributes to the end-to-end decoding response time, we first quantify the raw performance of the TH-Express interconnect under decoding traffic. We measure the round-trip latency of direct interconnect between the FPGA and one HPC rack in Figure 4. The mean and median round-trip latencies are 2.944 µs and 2.870 µs respectively, with a standard deviation of 173 ns, a minimum of 2.66 µs, and a maximum of 3.24 µs. Figure 5 shows the incremental latency introduced by each additional switch hop when scaling to more computing nodes, the mean and median latencies are 0.130 µs and 0.130 µs respectively, with a minimum of 0.122 µs, and a maximum of 0.138 µs.
C.