Running Low-Latency Quantum Workloads on NVIDIA Groq 3 LPX
The language processing units (LPUs) in NVIDIA Groq 3 LPX are designed for low latency AI inference and can also support quantum error correction decoding. Fast decoding is esse...
By Hardware Team
The language processing units (LPUs) in NVIDIA Groq 3 LPX are designed for low-latency AI inference and can also support quantum error correction decoding. Fast decoding is essential because errors must be corrected while a quantum computer is operating. Achieving this performance remains a major challenge for fault-tolerant quantum computing.
Fault-tolerant quantum computers use quantum error correction (QEC) and quantum processing unit (QPU) calibration to manage errors. Real-time decoding is central to QEC. It is an inference workload that requires high throughput and response times of approximately 10 microseconds. Previous demonstrations of real-time decoding have used field-programmable gate arrays (FPGAs), CPUs, and GPUs.
NVIDIA Groq 3 LPX is a rack-scale system containing 256 Groq 3 LPUs. Its architecture can support QEC decoding and other quantum computing workloads. The results below compare LPU decoding accuracy and latency with CPU, GPU, and FPGA implementations.
Figure 1. A model for how the LPU, GPU, and CPU can work together to support a fault-tolerant QPU.
NVIDIA Groq 3 LPX
NVIDIA Groq 3 LPX is a deterministic, rack-scale system specialized for low-latency, low-jitter inference. Its deterministic execution model allows the compiler to create a clock-cycle-accurate schedule for an entire program before execution begins. This applies to programs running within one compute tray, across a rack, or across multiple interconnected racks.
The basic LPX building block is a 2U compute tray. Each tray combines:
- 16 NVIDIA Groq 3 language processing units (LPUs)
- A host CPU
- An NVIDIA BlueField-4 data processing unit (DPU)
- Two 400 Gb/s Ethernet links
The 16 LPUs in each tray are connected in an all-to-all configuration, with a direct chip-to-chip (C2C) link between every pair. A liquid-cooled LPX rack contains 16 trays. Spine connectors connect the trays to the rack's copper backplane, linking all 256 LPUs in a low-diameter C2C network.
Figure 2. NVIDIA Groq 3 LPX rack and 16-LPU compute tray.
The LPUs in one tray provide 8 GB of on-chip static random-access memory (SRAM). Each LPU operates at 1.5 GHz and includes a 500 MB, or 480 MiB, SRAM block. This capacity can hold multiple QEC decoding windows on each chip, enabling windowed decoding for logical operations.
For example, intra-block surgery on a gross code block, a bivariate-bicycle code with 144 data qubits, requires six window programs over 36 QEC rounds. These programs can remain resident on one LPU chip and switch nearly instantaneously during execution. In this configuration, the worst-case on-chip latency for any window was 5.81 microseconds under SI1000 noise with p = 0.1%.
The main difference between LPU-based systems and CPU- or GPU-based systems is the execution model. LPUs use a flat memory hierarchy and do not rely on out-of-order execution, thread schedulers, or interlocks between functional units. The compiler assigns every instruction on every functional unit to a specific clock cycle in advance.
LPU memory consists of on-chip SRAM rather than dynamic random-access memory (DRAM), so memory access latency remains fixed. Consequently, a program's execution time is known at compile time and remains consistent for identical inputs.
Why QEC algorithms fit LPUs
Not every algorithm maps efficiently to an LPU. Because the compiler fixes the schedule for every operation before execution, LPUs are best suited to workloads that apply a fixed operation graph to broad data vectors, with only the input values changing. Dense and mixture-of-experts (MoE) AI inference follows this pattern, as do many QEC decoders. In MoE architectures, statically compiled experts can still be scheduled dynamically.
Dataflow-based decoding algorithms are particularly suitable for LPUs. Examples include:
- Belief propagation (BP) and variants such as min-sum, Relay-BP, and memory BP
- Union-find (UF)
- AI predecoders, including convolutional neural networks (CNNs) and small multilayer perceptrons (MLPs)
In BP, each iteration sends the same messages along the same edges of the decoding graph. The graph is derived from the detector error model and is known before the first shot arrives. It can therefore be laid out on the chip once, while syndromes are streamed through it.
Search-based decoders and algorithms with irregular, branch-heavy control flow are less suitable. Examples include the blossom algorithm for minimum-weight perfect matching and ordered statistics decoding (OSD), which uses Gaussian elimination and pivoting. Tree searches are another example because each step depends on the result of the preceding step.
When evaluating a workload for an LPU, the key question is whether its structure can be fixed before runtime. If the graph, matrix dimensions, and operation sequence are known at compile time, the compiler can schedule them in advance.
Figure 3. Control flow for large language model (LLM) inference, belief propagation, and union-find on LPUs.
Decoding QEC codes in microseconds
LPU decoding performance was evaluated using memory-experiment data for surface codes and bivariate-bicycle (BB) codes. The experiments used the SI1000 noise model from Gid23, which adds gate, measurement, and idling noise to model a superconducting-qubit system.
Each experiment used d rounds of syndrome extraction for a distance-d code. Results report the logical error rate per round. Latencies represent the on-chip decoding time for all d rounds, measured on LPX hardware. These values were calculated from on-chip performance counters that record the clock cycles required to process an input syndrome.
The following decoders were implemented on the LPU:
- Trajectory-calibrated belief propagation and union-find (TCBP+UF): This decoder is a new formulation of BeliefFind. Its trajectory-calibrated belief propagation (TCBP) front end reweights the graph used by the UF decoder. TCBP performs 10 iterations of min-sum BP followed by a small multilayer perceptron. This decoder was used for the surface code.
- Correlated X+Z Relay-BP: This decoder runs Relay-BP concurrently on the X and Z sectors of the decoding graph and exchanges beliefs between them every few iterations to improve detection of Y errors. It was used for BB codes.
Figure 4. Evaluation setup for LPU-based decoders.
The logical error rates of the LPU decoders for surface and BB codes were compared with reference decoders designed for real-time decoding. For the surface code, TCBP+UF on the LPU achieved logical error rates comparable to correlated PyMatching while running more than an order of magnitude faster. PyMatching ran on a single x86 core.
For the gross code, the Correlated X+Z Relay-BP decoder on the LPU outperformed GPU-based Relay-BP on the XYZ graph in both accuracy and latency. It achieved approximately half the logical error rate and more than two orders of magnitude lower latency.
Figure 5. Accuracy and latency comparison for LPU decoders and reference decoders for surface and BB codes. Results use p = 0.1% and the SI1000 noise model. Vertical bars show 95% confidence intervals for the logical error rate per round, while horizontal bars show 99th-percentile (P99) latency. Mean LPU latency was 3.6 microseconds for a distance-13 surface code and 2.05 microseconds for the gross code.
LPU performance was also compared with CPU-, GPU-, and FPGA-based implementations. Each comparison used the same underlying decoding graph. The GARI XYZ graph was implemented on the LPU as well, producing a 14x speedup per iteration compared with the FPGA implementation.
The measured speedups were:
- 21x compared with the CPU reference, by median time per decode
- 343x compared with the GPU reference, by median time per decode
- 114x compared with the FPGA reference, by median time per decode
- 14x compared with the FPGA reference, by time per BP iteration
Figure 6. LPU decoding speedups compared with CPU, GPU, and FPGA implementations. The first three comparisons use median time per decode, while the fourth uses time per BP iteration. Results use p = 0.1% and the SI1000 noise model.
LPU-based quantum error correction decoding
The initial experiments show that NVIDIA Groq 3 LPUs can perform QEC decoding with low latency. Their deterministic architecture provides an approach to the classical computing requirements of fault-tolerant quantum computing, particularly for decoding workloads whose operation graphs can be fixed before runtime.