Lune

OOPSLA2022Top-tier venue

On incorrectness logic for Quantum programs

Peng Yan, Hanru Jiang, Nengkun Yu

Abstract

Bug-catching is important for developing quantum programs. Motivated by the incorrectness logic for classical programs, we propose an incorrectness logic towards a logical foundation for static bug-catching in quantum programming. The validity of formulas in this logic is dual to that of quantum Hoare logics. We justify the formulation of validity by an intuitive explanation from a reachability point of view and a comparison against several alternative formulations. Compared with existing works focusing on dynamic analysis, our logic provides sound and complete arguments. We further demonstrate the usefulness of the logic by reasoning several examples, including Grover's search, quantum teleportation, and a repeat-until-success program. We also automate the reasoning procedure by a prototyped static analyzer built on top of the logic rules.

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.

7 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

  • Projection-based runtime assertions for testing and debugging Quantum programs cites Quantum Circuits for Dynamic Runtime Assertions in Quantum Computation
  • Calculational Design of Hyperlogics by Abstract Interpretation cites Incorrectness logic
  • Calculational Design of Hyperlogics by Abstract Interpretation cites Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation
  • Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic cites Incorrectness logic
  • Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • QbC: Quantum Correctness by Construction cites Incorrectness logic
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. An Automata-Based Framework for Verification and Bug Hunting in Quantum CircuitsYu-Fang Chen, Kai-Min Chung, Ondrej Lengál, Jyun-Ao Lin et al.PLDI 2023 · 41 citations
  2. Calculational Design of [In]Correctness Transformational Program Logics by Abstract InterpretationPatrick CousotPOPL 2024 · 11 citations
  3. Calculational Design of Hyperlogics by Abstract InterpretationPatrick Cousot, Jeffery WangPOPL 2025 · 3 citations
  4. QbC: Quantum Correctness by ConstructionAnurudh Peduri, Ina Schaefer, Michael WalterOOPSLA 2025 · 3 citations
  5. AccelerQ: Accelerating Quantum Eigensolvers with Machine Learning on Quantum SimulatorsAvner Bensoussan, Elena Chachkarova, Karine Even-Mendoza, Sophie Fortz et al.OOPSLA 2025 · 1 citation

Builds on8

  1. Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 citations
  2. Projection-based runtime assertions for testing and debugging Quantum programsGushu Li, Li Zhou, Nengkun Yu, Yufei Ding et al.OOPSLA 2020 · 120 citations
  3. Quantum Circuits for Dynamic Runtime Assertions in Quantum ComputationJi Liu, Gregory T. Byrd, Huiyang ZhouASPLOS 2020 · 82 citations
  4. Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer et al.CAV 2020 · 70 citations
  5. Quantum abstract interpretationNengkun Yu, Jens PalsbergPLDI 2021 · 69 citations

Related papers

  1. Outcome Logic: A Unifying Foundation for Correctness and Incorrectness ReasoningNoam Zilberstein, Derek Dreyer, Alexandra SilvaOOPSLA 2023 · 39 citations
  2. Verification of Nondeterministic Quantum ProgramsYuan Feng, Yingte XuASPLOS 2023 · 7 citations
  3. Revealing Sources of (Memory) Errors via Backward AnalysisFlavio Ascari, Roberto Bruni, Roberta Gori, Francesco LogozzoOOPSLA 2025 · 4 citations
  4. Relational proofs for quantum programsGilles Barthe, Justin Hsu, Mingsheng Ying, Nengkun Yu et al.POPL 2020 · 29 citations
  5. A Quantum interpretation of separating conjunction for local reasoning of Quantum programs based on separation logicXuan-Bach Le, Shang-Wei Lin, Jun Sun, David SanánPOPL 2022 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines