Lune

OOPSLA2020Top-tier venue

Projection-based runtime assertions for testing and debugging Quantum programs

Gushu Li, Li Zhou, Nengkun Yu, Yufei Ding, Mingsheng Ying, Yuan Xie

Abstract

In this paper, we propose Proq, a runtime assertion scheme for testing and debugging quantum programs on a quantum computer. The predicates in Proq are represented by projections (or equivalently, closed subspaces of the state space), following Birkhoff-von Neumann quantum logic. The satisfaction of a projection by a quantum state can be directly checked upon a small number of projective measurements rather than a large number of repeated executions. On the theory side, we rigorously prove that checking projection-based assertions can help locate bugs or statistically assure that the semantic function of the tested program is close to what we expect, for both exact and approximate quantum programs. On the practice side, we consider hardware constraints and introduce several techniques to transform the assertions, making them directly executable on the measurement-restricted quantum computers. We also propose to achieve simplified assertion implementation using local projection technique with soundness guaranteed. We compare Proq with existing quantum program assertions and demonstrate the effectiveness and efficiency of Proq by its applications to assert two sophisticated quantum algorithms, the Harrow-Hassidim-Lloyd algorithm and Shor’s algorithm.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

19 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Bugs in Quantum computing platforms: an empirical study cites A verified optimizer for Quantum circuits
  • MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform cites Bugs in Quantum computing platforms: an empirical study
  • MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform cites Quantum Circuits for Dynamic Runtime Assertions in Quantum Computation
  • Twist: sound reasoning for purity and entanglement in Quantum programs cites A verified optimizer for Quantum circuits
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers19

  1. Bugs in Quantum computing platforms: an empirical studyMatteo Paltenghi, Michael PradelOOPSLA 2022 · 70 citations
  2. MorphQ: Metamorphic Testing of the Qiskit Quantum Computing PlatformMatteo Paltenghi, Michael PradelICSE 2023 · 44 citations
  3. symQV: Automated Symbolic Verification of Quantum ProgramsFabian Bauer-Marquart, Stefan Leue, Christian SchillingFM 2023 · 37 citations
  4. Qunity: A Unified Language for Quantum and Classical ComputingFinn Voichick, Liyi Li, Robert Rand, Michael HicksPOPL 2023 · 35 citations
  5. Twist: sound reasoning for purity and entanglement in Quantum programsCharles Yuan, Christopher McNally, Michael CarbinPOPL 2022 · 30 citations

Builds on2

  1. A verified optimizer for Quantum circuitsKesha Hietala, Robert Rand, Shih-Han Hung, Xiaodi Wu et al.POPL 2021 · 111 citations
  2. Quantum Circuits for Dynamic Runtime Assertions in Quantum ComputationJi Liu, Gregory T. Byrd, Huiyang ZhouASPLOS 2020 · 82 citations

Related papers

  1. Systematic Approaches for Precise and Approximate Quantum State Runtime AssertionJi Liu, Huiyang ZhouHPCA 2021 · 31 citations
  2. An Expressive Assertion Language for Quantum ProgramsBonan Su, Yuan Feng, Mingsheng Ying, Li ZhouPOPL 2026 · 1 citation
  3. Quantum abstract interpretationNengkun Yu, Jens PalsbergPLDI 2021 · 69 citations
  4. Verification of Nondeterministic Quantum ProgramsYuan Feng, Yingte XuASPLOS 2023 · 7 citations
  5. Scalable Equivalence Checking and Verification of Shallow Quantum CircuitsNengkun Yu, Xuan Du Trinh, Thomas RepsOOPSLA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines