Quantum Debugging in Action: Statistical and State Vector Assertions
Abstract
Debugging quantum programs presents fundamentally different challenges from classical debugging: quantum systems have exponentially large state spaces, and measuring a quantum state collapses it. Our assertion-based approach provides debugging support despite these constraints, and we implement it in NVIDIA CUDA-Q, which has recently gained rapid adoption due to its GPU-accelerated simulation and hardware integration capabilities. This tool, QDB3, provides a Python assertions library that extends prior work in sampling-based assertions with state vector assertions that directly inspect simulated amplitudes. We demonstrate the complementary usage of both assertion forms in a set of teaching examples, including deterministic, variational, and other circuit types.
Create a lesson
Metadata
- Comments
- 2 pages, 2 figures, accepted as a poster paper at IEEE QCE 2026
Related papers
Transmitted-Local-Oscillator-Assisted Quantum Receiver for Binary Coherent States under Phase Diffusion
Shared title terminologyquant-phEnhao Bai, Fengkai Sun, Hao Yang et al.
Informational completeness for pure quantum states: minimality and stability
Shared title terminologyquant-phLukas Liehr, Daniel Omer, Ben Pineau et al.
The Hannay angle of a nonlinear spin diverges at the excited-state quantum phase transition
Shared title terminologyquant-phChon-Fai Kam, En-Jui Kuo
Probing Rydberg-state energy shifts beyond the standard quantum limit using a one-step entanglement protocol
Shared title terminologyquant-phPhilip Kitson, Ian Iucker, Payton Hamilton et al.
Quantum Circuits for Exact Preparation of Colored Motzkin and Fredkin States
Shared title terminologyquant-phIgor Gaidai, Kaustav Mukherjee, Tomasz Szołdra et al.
An Efficient Sequential Algorithm for Structured Quantum State Preparation
Shared title terminologyquant-phAlok Shukla