English

Runtime Analysis of Quantum Programs: A Formal Approach

Logic in Computer Science 2020-01-01 v2

Abstract

In this abstract we study the resource consumption of quantum programs. Specifically, we focus on the expected runtime of programs and, inspired by recent methods for probabilistic programs, we develop a calculus \`a la weakest precondition to formally and systematically derive the (exact) expected runtime of quantum programs. Notably, the calculus admits a notion of loop runtime invariant that can be readily used to derive upper bounds of their runtime. Finally, we show the applicability of our calculus analyzing the runtime of (a simplified version of) the BB84 quantum key distribution protocol.

Keywords

Cite

@article{arxiv.1911.11247,
  title  = {Runtime Analysis of Quantum Programs: A Formal Approach},
  author = {Federico Olmedo and Alejandro Díaz-Caro},
  journal= {arXiv preprint arXiv:1911.11247},
  year   = {2020}
}

Comments

Accepted at PLanQC 2020

R2 v1 2026-06-23T12:27:03.107Z