Runtime Analysis of Quantum Programs: A Formal Approach

11/25/2019
by   Federico Olmedo, et al.
0

In this extended abstract we provide a first step towards a tool to estimate the resource consumption of programs. We specifically focus on the runtime analysis of programs and, inspired by recent methods for probabilistic programs, we develop a calculus à la weakest precondition to formally and systematically derive the (exact) 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. To conclude, we show the applicability of our calculus analyzing the runtime of an algorithm based on the BB84 quantum key distribution protocol.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/28/2019

Expected Runtime of Quantum Programs

Building upon recent work on probabilistic programs, we formally define ...
research
08/23/2019

Modular Runtime Complexity Analysis of Probabilistic While Programs

We are concerned with the average case runtime complexity analysis of a ...
research
10/13/2020

Inferring Expected Runtimes of Probabilistic Integer Programs Using Expected Sizes

We present a novel modular approach to infer upper bounds on the expecte...
research
02/02/2023

A Typed Lambda-Calculus for Establishing Trust in Probabilistic Programs

The extensive deployment of probabilistic algorithms has radically chang...
research
01/06/2020

A Calculus for Modular Loop Acceleration

Loop acceleration can be used to prove safety, reachability, runtime bou...
research
02/03/2022

Improving Automatic Complexity Analysis of Integer Programs

In earlier work, we developed an approach for automatic complexity analy...
research
07/19/2020

Parts of Speech Tagging in NLP: Runtime Optimization with Quantum Formulation and ZX Calculus

This paper proposes an optimized formulation of the parts of speech tagg...

Please sign up or login with your details

Forgot password? Click here to reset