Quantum Weakest Preconditions for Reasoning about Expected Runtimes of Quantum Programs
Junyi Liu, Li Zhou, Gilles Barthe, Mingsheng Ying
Abstract
We study expected runtimes for quantum programs. Inspired by recent work on probabilistic programs, we first define expected runtime as a generalisation of quantum weakest precondition. Then, we show that the expected runtime of a quantum program can be represented as the expectation of an observable (in physics). A method for computing the expected runtimes of quantum programs in finite-dimensional state spaces is developed. Several examples are provided as applications of this method, including computing the expected runtime of quantum Bernoulli Factory – a quantum algorithm for generating random numbers. In particular, using our new method, an open problem of computing the expected runtime of quantum random walks introduced by Ambainis et al. (STOC 2001) is solved.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0760c2b4-1ab6-4df0-9e62-6f6cd88439ffCited by top-tier papers3
- The T-Complexity Costs of Error Correction for Control Flow in Quantum ComputationCharles Yuan, Michael CarbinPLDI 2024 · 10 citations
- QbC: Quantum Correctness by ConstructionAnurudh Peduri, Ina Schaefer, Michael WalterOOPSLA 2025 · 3 citations
- Flexible Type-Based Resource Estimation in Quantum Circuit Description LanguagesAndrea Colledan, Ugo Dal LagoPOPL 2025 · 3 citations
Builds on1
Related papers
- Relational proofs for quantum programsGilles Barthe, Justin Hsu, Mingsheng Ying, Nengkun Yu et al.POPL 2020 · 29 citations
- Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026
- Quantum Expectation Transformers for Cost AnalysisMartin Avanzini, Georg Moser, Romain Péchoux, Simon Perdrix et al.LICS 2022 · 10 citations
- Just Like the Real Thing: Fast Weak Simulation of Quantum ComputationStefan Hillmich, Igor L. Markov, Robert WilleDAC 2020 · 25 citations
- An Expressive Assertion Language for Quantum ProgramsBonan Su, Yuan Feng, Mingsheng Ying, Li ZhouPOPL 2026 · 1 citation
