A Testing Method for Detector Error Models in Quantum Error Correction Compilers
Junjie Luo, Yasunari Suzuki
Abstract
A quantum error correction (QEC) compiler produces, from a code and a noise model, both the physical circuit to execute and a detector error model (DEM). The DEM lists the probability of each error mechanism and the measurements it flips. Decoders consume the DEM without verification, so a defect that describes the noise incorrectly calibrates the decoder against wrong rates and silently degrades the logical error rate. Existing techniques for testing quantum software judge correctness by crashes or by statistics of sampled outputs. DEM defects that only distort rates lie below what sampling can resolve at the error rates where QEC operates. We present DEMVal, a testing method that validates each model the compiler emits against a reconstructed reference, with rates obtained from outside the compiler under test. It compares the two models exactly, so its sensitivity is independent of the physical error rate. The reference can be built in three ways that jointly cover the pipeline from source program to emitted model. Applied to NVIDIA's CUDA-Q QEC, Riverlane's Deltakit, and the deq component of Microsoft's QDK-EC, DEMVal found six defects, all confirmed by the developers and fixed. Sampling could have exposed only the four defects that drop, merge, or misplace mechanisms, and exposing all four requires millions of samples per experiment. Even analytically optimal moment tests miss the two rate-level defects, while exact model comparison detects all six with no samples. To our knowledge, DEMVal is the first systematic testing method for the error-model semantics of QEC compilers.
Create a lesson
Related papers
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminology · Zhenyu Jiang, Yanlin Li, Rongjie Yan et al.
Testing Settlement Flags after Late Evidence and Process Restart
Shared title terminology · Zengjian Liu, Tommy He, ELE Zhao et al.
Re-Testing LLM-Based C-to-Rust Translations Against Their Original C
Shared title terminology · Muhammad Hassnain
RootSink: Reproducible C/C++ Crashes with Tested Repair Sites
Shared title terminology · Suryansh Singh Sijwali, Achintya Lakshmanan, Abhiram Dodda et al.
Think Before You Code: A Benchmark for Testing LLMs on Software Engineering Deliberation
Shared title terminology · Ashman Mehra
Can Coding Agents Write and Transpile Unit Tests
Shared title terminology · Gil Pasternak, AJ Langley, Tom Yotam et al.