CUDA-Q QEC - Quantum Error Correction Library
CUDA-Q QEC is a Python and C++ library for quantum error correction. It provides tools to build and simulate quantum codes, model noise, and decode measurements using CPU or GPU decoders. These tools support both offline experiments and realtime decoding during quantum circuit execution.
Highlights in 0.9.1
Relay BP is faster in batched mode (
decode_batch()withcomposition=1). See the 0.9.1 release notes for throughput measurements.Jittered OSD Beam Search now supports models with more than 8192 detectors. The maximum detector count is limited by the memory of the GPU.
Highlights in 0.9.0
Trajectory-Calibrated BP and Jittered OSD Beam Search expand the NVIDIA QLDPC decoder’s GPU decoding pipeline. TCBP turns BP trajectories into calibrated error probabilities; JOBS uses parallel searches over alternative corrections and can report a per-shot confidence measure for post-selection.
Noise learning estimates a detector error model’s mechanism probabilities from recorded detector samples, without logical labels or known device error rates. Use the learned probabilities as decoder priors when the model’s mechanisms are known but their rates need to be measured.
Decoding task graphs let you connect decoders and combine their results in a single pipeline. Build pipelines with parallel windows or decoder ensembles to decode complete shots or process measurement rounds as they arrive.
Dynamic detector error models (DEMs) now describe how measurements form detectors and how logical observables are read out, alongside the existing fault information. Task graphs use these mappings to return corrected logical measurements as well as correction bits.
The playback emulator lets you test realtime decoders without a live QPU. Replay recorded or simulated measurements on a timed schedule, check the returned corrections, and measure latency, either within one process or through a decoding server.
C++ decoder plugin APIs changed in 0.9.0; see the migration guide when updating a plugin.
What the Library Provides
Codes and models: Define QEC codes, their logical operations, and stabilizer-measurement circuits. Use detector error models to describe how faults affect detectors and logical observables.
CPU and GPU decoders: Choose from built-in decoders for different codes and workloads, or integrate your own through the decoder plugin interface.
Decoding task graphs: Connect decoders into a task graph, distribute work across parallel windows, or run decoder ensembles.
Realtime integration: Connect your quantum-control application to realtime decoding so it can send measurements and retrieve corrections during circuit execution.
Decoding server and playback: Deploy a configured decoding pipeline in a standalone server. Use the playback emulator to test decoder behavior and timing, either locally or through the server.
Experiments and noise modeling: Run experiments to simulate code-capacity or circuit-level noise, sample detector error models, and estimate logical error rates.
Noise learning: Estimate a detector error model’s mechanism probabilities from recorded detector samples with noise learning, then use those estimates as decoder priors.
Explore the examples for working programs and the performance studies for benchmark results. The conventions guide explains syndrome and correction formats.
Library Guides