REVIEW 3 major objections 7 minor 1 cited by
A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers
T0 review · 3 major / 7 minor · reviewed 2026-08-15 · deepseek-v4-flash
Pith's one-line read Runtime assertions on quantum programs can be checked on noisy hardware automatically.
desk verdict A useful debugging framework with an open-source implementation, but the statistical test is miscalibrated and the abstract overclaims scalability. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central object is the measurement slice, a prefix of the program ending at one assertion with the measurements needed to evaluate it inserted. Three operations carry the argument: assertion translation maps a superposition assertion to individual qubit measurements, an explicit-state equality assertion to the expected outcome distribution, and a circuit-specified equality assertion to inverse gates followed by a $|0\rangle$ measurement; slice optimization cancels assertions implied by earlier ones and concatenates slices when the deferred measurement principle guarantees no interference; and runtime verification mixes the expected distribution with a uniform distribution in proportion to an estimated slice fidelity and runs a power-divergence test. The framework also recommends a number of shots by simulating the same test, which makes sample counts practical.
What would settle it
Run the 90 correct ansatz programs on a calibrated device and collect the p-values: a calibrated noise model should yield roughly uniform p-values over many repetitions, not a cluster near 0.9-0.99, so reproducing that cluster would show the fidelity-mixing null is too permissive.
Extended reading notes
Core claim
The central claim is that runtime assertions on quantum programs can be made practical on current noisy hardware. The paper's approach replaces unrestricted state access with targeted measurements: each assertion is translated into a measurement pattern, the program is cut into slices that each terminate at one assertion, and the slices are optimized by subset canceling, where a later assertion is dropped if an earlier one already implies it, and by concatenation, where slices are merged when measurements cannot disturb the remaining instructions. Verification then runs a power-divergence test against an expected distribution that is mixed with a uniform distribution according to the estimated slice fidelity, so that hardware noise is absorbed into the null hypothesis. The experimental result is that all 90 faulty ansatz programs are rejected with p-values below $4.6\times 10^{-4}$, all correct programs pass, and a 32-qubit Bell-pair program with one deliberately wrong gate is rejected with a p-value of $2.02\times 10^{-6}$.
Load-bearing premise
The verification result depends on the assumption that gate and measurement errors are independent enough that a slice's fidelity can be estimated by multiplying per-gate error rates, and that the resulting noise is equivalent to mixing the true distribution with a uniform one.
Editorial extensions
If this is right
- Developers can add assertions to a quantum program and have them checked automatically on real hardware, without writing measurement circuits by hand.
- Multiple assertions can be verified with fewer program executions, because redundant assertions are canceled and compatible slices are merged.
- Faulty programs in the tested family, hardware-efficient ansatz circuits with a missing gate, are reliably distinguished from correct ones, with the worst observed p-value at $4.6\times 10^{-4}$.
- The evaluation demonstrates the framework on a 32-qubit Bell-pair program, showing that the debugging path is not restricted to tiny circuits.
Reading between the lines
- Beyond the paper: the noise model's per-gate error multiplication is the piece most likely to need refinement, since devices with correlated or biased errors may require replacing the uniform mixing distribution with a device-calibrated noise channel.
- Beyond the paper: the same slice-optimization rules could be extended to assertions about entanglement or expectation values, provided the implication table is extended to those assertion families.
- Beyond the paper: the observed p-value clustering near 0.9-0.99 for correct programs suggests the noise-adjusted null distribution is conservative; a direct calibration study on a large set of correct programs could tell whether the test's false-positive rate is as advertised.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a framework for evaluating runtime assertions on real quantum computers. It translates two assertion types (superposition and equality, with explicit-state or circuit specifications) into measurement slices, reduces the number of slices via implication-based cancellation and concatenation, and performs noise-aware runtime verification using a power-divergence goodness-of-fit test against an expected distribution that is mixed with a uniform distribution according to an estimated slice fidelity. The framework is implemented in an open-source tool and evaluated on IBM's ibm_brisbane device. The main empirical result is that all 90 faulty hardware-efficient ansatz programs (12, 14, and 16 qubits, 8192 shots each) were flagged with p-values below 4.6e-4, while the 90 correct programs all produced p-values between 0.9 and 0.99. A larger 32-qubit Bell-pair example is used to illustrate scalability, and a shot-count recommendation procedure is described.
Significance. If the statistical claims were sound, this would be a practically useful contribution to quantum software debugging: it automates the insertion and evaluation of assertions on current hardware, addresses measurement collapse by slicing, and provides an open-source implementation with a concrete device evaluation. The slice translation and optimization portions are well motivated and appear technically sound, and the empirical error-detection results are suggestive. However, the paper's central promise of "high certainty" and user-selectable confidence rests on the statistical calibration of the runtime-verification step, and that calibration is not supported by the reported data. The scalability claim is also only weakly evidenced. With a proper calibration analysis and more careful claims, the framework could be a solid engineering contribution.
major comments (3)
- [§V-A, Fig. 4 and §IV-C] The runtime-verification test is not calibrated. The paper reports that all 90 correct hardware-efficient ansatz programs yielded p-values in [0.9, 0.99]. Under a correctly specified null distribution, p-values from a goodness-of-fit test should be approximately uniform on [0,1]; the probability that 90 independent uniform draws all fall in an interval of length 0.09 is below 10^-90. This indicates either that the asymptotic chi-square approximation underlying the power-divergence test is invalid for 12–16 qubits with 8192 shots (where many expected cell counts are far below 5), that the noise-modified expected distribution described in §IV-C is misspecified, or both. Consequently, the reported p-values are not true probabilities, and the user-specified significance level α=0.05 is not a controlled false-positive rate. The claim in the abstract and introduction that errors are detected with "high certainty" is therefore not supported by the statistical evidence presented.
- [§IV-C] The noise-robustness step is not specified precisely enough to be reproduced or checked. The text states that the framework computes the expected fidelity of each slice by multiplying per-gate error rates and then "modifies the expected distribution based on the slice fidelity by mixing it with a uniform distribution relative to the expected fidelity," but no equation is given. This is the core of the runtime-verification procedure, and the validity of the p-values depends on exactly how the mixing is performed and on the independence and depolarizing assumptions of the noise model. Please provide the explicit formula and, at minimum, a calibration check of the resulting test on known-correct programs. The shot-count recommendation, which is obtained by simulating the power-divergence test under the same model, inherits this calibration issue.
- [§V-B and Abstract] The scalability claim is not supported by the presented experiment. The 32-qubit example creates 16 independent Bell pairs and is classically simulable; the paper's own footnote in Section V-B concedes that the evaluation "does not necessarily demonstrate an advantage over classical simulation." Yet the abstract claims scalability "even to larger instances where classical simulations become prohibitive," and the conclusion repeats this assertion. The experiment demonstrates only that the framework can process a low-depth, weakly entangled circuit on hardware; it does not establish the stated scalability beyond classical simulation.
minor comments (7)
- [§II-B] There is a typo: "speicifc" should be "specific".
- [§IV-A and §IV-C] There are several typos: "phyiscal" should be "physical", "interchangably" should be "interchangeably", "rejeted" should be "rejected", and "porposed" should be "proposed".
- [§IV-C] The text says the framework "allows the developer to propose any desired p-value"; a p-value is an observed quantity, so the developer should be described as choosing a significance level or threshold, not a p-value.
- [§IV-C] The power-divergence test is referenced to Cressie and Read, but the specific member of the power-divergence family (e.g., the Cressie–Read statistic with λ=2/3, Pearson's χ² with λ=1, or the likelihood-ratio statistic with λ=0) is not stated; this should be specified for reproducibility.
- [§V-A, Fig. 4] The caption of Fig. 4 refers to a "threshold of 0.05 commonly employed when evaluating p-values"; it would be clearer to call this the significance level α, since the threshold is chosen by the user and is not itself a p-value.
- [§V-A] The paper reports only the p-values for faulty programs in Fig. 4; including the correct-program p-values in the same figure or in a companion plot would help readers assess the calibration concern directly.
- [§V] The evaluation does not report the device calibration date or the specific gate and measurement error rates used to compute the slice fidelities; providing these values would improve reproducibility of the noise-modeling step.
Circularity Check
No significant circularity: the framework is evaluated empirically against hardware outcomes, and no load-bearing prediction reduces to its own inputs by construction.
full rationale
The paper's central claim is that its framework translates quantum runtime assertions into measurement slices, optimizes those slices, and statistically evaluates the resulting measurement distributions on real hardware. None of these steps is circular. The expected distributions for equality assertions are computed directly from the asserted state or inverse circuit, not from the observed data; the runtime verification compares observed hardware outcomes to this pre-specified expected distribution using a power-divergence test. The noise adjustment is an explicit, simplistic model using device-reported gate error rates, and the paper does not fit its parameters to the subsequent pass/fail results. The recommended shot count is obtained by simulating the test itself, which is a methodological parameter rather than a fitted quantity used to assert correctness. The slice-optimization rules follow from the definitions of assertion satisfaction via set inclusion, not from a self-citation. The paper does cite prior work by the same authors, notably for MQT tooling and earlier assertion-refinement techniques, but these citations are not load-bearing for the central empirical evaluation; the evaluation is self-contained against real-device outcomes and, for the faulty-program test, against an independent simulator. The observed clustering of correct-program p-values in [0.9, 0.99] is a statistical calibration concern that could indicate a misspecified null or an invalid chi-square approximation, but it is a correctness/validity issue rather than evidence of circularity: the p-values are not constructed to equal a target value, and the paper does not redefine its inputs to force its conclusions. The large-scale Bell-pair example is explicitly footnoted as not demonstrating an advantage over classical simulation, so it does not smuggle in a predictive claim by construction. Overall, no derivation in the paper reduces to its inputs by definition or by fitted parameters, and no self-citation chain forces the central result.
Assumptions & free parameters
assumptions (3)
- standard math The deferred measurement principle, which allows measurements to be moved or kept in place without changing the final outcome distribution when the measurements do not affect later operations.
- standard math The quantum measurement postulate, where measuring a qubit in the computational basis collapses the state and yields probabilistic outcomes.
- domain assumption Noise is modeled as independent, depolarizing errors that can be summarized by a uniform mixing of the ideal distribution with a uniform distribution, weighted by a slice fidelity computed from multiplicative gate error rates.
Cite this review
Pith. "Pith review of A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers." pith.science (2026). https://pith.science/paper/DAT5UYAG
@misc{pith2026250503885,
author = {Pith},
title = {Pith review of: A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers},
year = {2026},
howpublished = {\url{https://pith.science/paper/DAT5UYAG}},
note = {Machine review of arXiv:2505.03885}
}
read the original abstract
The continuous growth of quantum computing and the increasingly complex quantum programs resulting from it lead to unprecedented obstacles in ensuring program correctness. Runtime assertions are, therefore, becoming a crucial tool in the development of quantum programs. They assist developers in the debugging process and help to test and verify the program. However, while assertions can be implemented in a straightforward manner on classical computers, physical limitations of quantum computers pose considerable challenges for the evaluation of quantum assertions. Access to the quantum state of a program is limited, execution time is expensive and noise can significantly distort measurement outcomes. To address these problems, this work proposes a framework that assists developers in the evaluation of runtime assertions on real quantum computers. It translates a variety of assertions into sets of measurements, reduces execution overhead where possible and evaluates the measurement results after the execution even in the presence of noise. This approach substantially aids developers in the debugging process, enabling efficient assertion-driven debugging even in large programs. The proposed framework is available as an open-source implementation at https://github.com/munich-quantum-toolkit/debugger
Figures
Forward citations
Cited by 1 Pith paper
-
The Time-Space Complexity of Checking Multiple Assertions in Quantum Programs
ExistFail and FirstFail for n quantum assertions need only Θ(log n) ancillas (or S=Θ(log(1+n/T)) over T rounds), while ListAll requires linear S·T=Θ(n).
Reference graph
Works this paper leans on
-
[1]
On the need for effective tools for debugging quantum programs,
O. Di Matteo, “On the need for effective tools for debugging quantum programs,” in International Workshop on Quantum Software Engineer- ing, Association for Computing Machinery, 2024
work page 2024
-
[2]
Testing and Debugging Quantum Circuits,
S. A. Metwalli and R. Van Meter, “Testing and Debugging Quantum Circuits,” IEEE Transactions on Quantum Engineering , 2024
work page 2024
-
[3]
Statistical assertions for validating patterns and finding bugs in quantum programs,
Y . Huang and M. Martonosi, “Statistical assertions for validating patterns and finding bugs in quantum programs,” in International Symposium on Computer Architecture , Association for Computing Machinery, 2019
work page 2019
-
[4]
A. Miranskyy, L. Zhang, and J. Doliskani, On testing and debugging quantum software, 2021. arXiv: 2103.09172[quant-ph]
arXiv 2021
-
[5]
Quantum software testing: State of the art,
A. García de la Barrera, I. García-Rodríguez de Guzmán, M. Polo, and M. Piattini, “Quantum software testing: State of the art,” Journal of Software: Evolution and Process , 2023
2023
-
[6]
Floyd–hoare logic for quantum programs,
M. Ying, “Floyd–hoare logic for quantum programs,” ACM Trans. Program. Lang. Syst., 2012
work page 2012
-
[7]
Formal verification of quantum algorithms using quantum Hoare logic,
J. Liu, B. Zhan, S. Wang, S. Ying, T. Liu, Y . Li, M. Ying, and N. Zhan, “Formal verification of quantum algorithms using quantum Hoare logic,” in Computer Aided Verification , Springer International Publishing, 2019
work page 2019
-
[8]
Advanced equivalence checking for quantum circuits,
L. Burgholzer and R. Wille, “Advanced equivalence checking for quantum circuits,” IEEE Trans. on CAD of Integrated Circuits and Systems, 2021
work page 2021
Show all 32 references
-
[9]
Statistical assertions for validating patterns and finding bugs in quantum programs,
Y . Huang and M. Martonosi, “Statistical assertions for validating patterns and finding bugs in quantum programs,” in International Sym- posium on Computer Architecture , New York, NY , USA: Association for Computing Machinery, 2019
2019
-
[10]
G. Li, L. Zhou, N. Yu, Y . Ding, M. Ying, and Y . Xie, Proq: Projection- based Runtime Assertions for Debugging on a Quantum Computer ,
-
[11]
Debugging quantum processes using monitoring measurements,
Y . Li and M. Ying, “Debugging quantum processes using monitoring measurements,” Physical Review A , 2014
2014
-
[12]
Systematic approaches for precise and approxi- mate quantum state runtime assertion,
J. Liu and H. Zhou, “Systematic approaches for precise and approxi- mate quantum state runtime assertion,” in International Symposium on High-Performance Computer Architecture (HPCA) , 2021
2021
-
[13]
Quantum circuits for dynamic run- time assertions in quantum computation,
J. Liu, G. T. Byrd, and H. Zhou, “Quantum circuits for dynamic run- time assertions in quantum computation,” in International Conference on Architectural Support for Programming Languages and Operating Systems, Association for Computing Machinery, 2020
2020
-
[14]
Rovara, L
D. Rovara, L. Burgholzer, and R. Wille, Automatically refining as- sertions for efficient debugging of quantum programs , 2024. arXiv: 2412.14252
2024 arXiv
-
[15]
A practical approach to programming with assertions,
D. Rosenblum, “A practical approach to programming with assertions,” IEEE Transactions on Software Engineering , 1995
1995
-
[16]
Stallman, R
R. Stallman, R. Pesch, and S. Shebs, Debugging with GDB: The GNU Source-Level Debugger , Tenth edition, for GDB version 8.1.50.20180116-git. Boston, MA: Free Software Foundation, 2018
2018
-
[17]
Regression testing minimization, selection and prioritization: A survey,
S. Yoo and M. Harman, “Regression testing minimization, selection and prioritization: A survey,” Software Testing, Verification and Reli- ability, 2012
2012
-
[18]
A study of effective regression testing in practice,
W. Wong, J. Horgan, S. London, and H. Agrawal, “A study of effective regression testing in practice,” in International Symposium on Software Reliability Engineering, 1997
1997
-
[19]
Quantum Complexity Theory,
E. Bernstein and U. Vazirani, “Quantum Complexity Theory,” SIAM Journal on Computing , 1997
1997
-
[20]
Openqasm 3: A broader and deeper quantum assembly language,
A. Cross, A. Javadi-Abhari, T. Alexander, N. De Beaudrap, L. S. Bishop, S. Heidel, et al., “Openqasm 3: A broader and deeper quantum assembly language,” ACM Transactions on Quantum Computing, 2022
2022
-
[21]
Rovara, L
D. Rovara, L. Burgholzer, and R. Wille, A framework for debugging quantum programs, 2024. arXiv: 2412.12269
2024 arXiv
-
[22]
symQV: Automated symbolic verification of quantum programs,
F. Bauer-Marquart, S. Leue, and C. Schilling, “symQV: Automated symbolic verification of quantum programs,” in 2023. arXiv: 2212 . 02267[quant-ph]
2023
-
[23]
Multinomial Goodness-Of-Fit Tests,
N. Cressie and T. R. Read, “Multinomial Goodness-Of-Fit Tests,” Journal of the Royal Statistical Society: Series B (Methodological) , 1984
1984
-
[24]
Determination of quasiprobability distribu- tions in terms of probability distributions for the rotated quadrature phase,
K. V ogel and H. Risken, “Determination of quasiprobability distribu- tions in terms of probability distributions for the rotated quadrature phase,” Physical Review A , 1989
1989
-
[25]
Efficient quantum state tomography,
M. Cramer, M. B. Plenio, S. T. Flammia, R. Somma, D. Gross, S. D. Bartlett, O. Landon-Cardinal, D. Poulin, and Y .-K. Liu, “Efficient quantum state tomography,” Nature Communications, 2010
2010
-
[26]
M. A. Nielsen and I. L. Chuang, Quantum Computation and Quan- tum Information, 10th Anniversary. Cambridge: Cambridge University Press, 2010
2010
-
[27]
IBM Quantum, https://quantum-computing.ibm.com/, 2025
2025
-
[28]
Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets,
A. Kandala, A. Mezzacapo, K. Temme, M. Takita, M. Brink, J. M. Chow, and J. M. Gambetta, “Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets,” Nature, 2017
2017
-
[29]
A variational eigenvalue solver on a photonic quantum processor,
A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’brien, “A variational eigenvalue solver on a photonic quantum processor,” Nature communications , 2014
2014
-
[30]
The MQT Handbook: A Summary of Design Automation Tools and Software for Quantum Computing,
R. Wille, L. Berent, T. Forster, J. Kunasaikaran, K. Mato, T. Peham, et al., “The MQT Handbook: A Summary of Design Automation Tools and Software for Quantum Computing,” in Int’l Conf. on Quantum Software, 2024. arXiv: 2405.17543, A live version of this document is available a...
2024 arXiv
-
[31]
MQT Core: The backbone of the Munich Quantum Toolkit (MQT),
L. Burgholzer, Y . Stade, T. Peham, and R. Wille, “MQT Core: The backbone of the Munich Quantum Toolkit (MQT),” Journal of Open Source Software, 2025
2025
-
[2020]
arXiv: 1911.12855 [quant-ph]
1911 arXiv
Reviewed August 15, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.