From Symmetric Pattern-Matching to Quantum Control (Extended Version)

04/03/2018
by   Amr Sabry, et al.
0

One perspective on quantum algorithms is that they are classical algorithms having access to a special kind of memory with exotic properties. This perspective suggests that, even in the case of quantum algorithms, the control flow notions of sequencing, conditionals, loops, and recursion are entirely classical. There is however, another notion of control flow, that is itself quantum. The notion of quantum conditional expression is reasonably well-understood: the execution of the two expressions becomes itself a superposition of executions. The quantum counterpart of loops and recursion is however not believed to be meaningful in its most general form. In this paper, we argue that, under the right circumstances, a reasonable notion of quantum loops and recursion is possible. To this aim, we first propose a classical, typed, reversible language with lists and fixpoints. We then extend this language to the closed quantum domain (without measurements) by allowing linear combinations of terms and restricting fixpoints to structurally recursive fixpoints whose termination proofs match the proofs of convergence of sequences in infinite-dimensional Hilbert spaces. We additionally give an operational semantics for the quantum language in the spirit of algebraic lambda-calculi and illustrate its expressiveness by modeling several common unitary operations.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/31/2023

Quantum Suplattices

Building on the theory of quantum posets, we introduce a non-commutative...
research
04/26/2022

Qunity: A Unified Language for Quantum and Classical Computing (Extended Version)

We introduce Qunity, a new quantum programming language designed to trea...
research
01/23/2022

Quantum Expectation Transformers for Cost Analysis

We introduce a new kind of expectation transformer for a mixed classical...
research
11/21/2021

Qimaera: Type-safe (Variational) Quantum Programming in Idris

Variational Quantum Algorithms are hybrid classical-quantum algorithms w...
research
02/17/2023

Quantum Hitting Time according to a given distribution

In this work we focus on the notion of quantum hitting time for discrete...
research
07/26/2021

Quantum Information Effects

We study the two dual quantum information effects to manipulate the amou...
research
04/28/2023

Quantum Control Machine: The Limits of Quantum Programs as Data

Quantum algorithms for factorization, search, and simulation obtain comp...

Please sign up or login with your details

Forgot password? Click here to reset