Abstract
Abstract
A while loop tests a termination condition on every iteration. On a quantum computer, such measurements perturb the evolution of the algorithm. We define a while loop primitive using weak measurements, offering a trade-off between the perturbation caused and the amount of information gained per iteration. This trade-off is adjusted with a parameter set by the programmer. We provide sufficient conditions that let us determine, with arbitrarily high probability, a worst-case estimate of the number of iterations the loop will run for. As an example, we solve Grover’s search problem using a while loop and prove the quadratic quantum speed-up is maintained.
Funder
Engineering and Physical Sciences Research Council
EPSRC Centre for Doctoral Training in Pervasive Parallelism
Subject
Electrical and Electronic Engineering,Physics and Astronomy (miscellaneous),Materials Science (miscellaneous),Atomic and Molecular Physics, and Optics
Reference26 articles.
1. A functional quantum programming language;Altenkirch,2005
2. Quadratic speedup for finding marked vertices by quantum walks;Ambainis,2020
3. Quantum alternation: prospects and problems;Bădescu,2015
4. Quantum walks and electric networks;Belovs,2013
5. Quantum control of a single qubit;Brańczyk;Phys. Rev. A,2007
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Quantum Control Machine: The Limits of Control Flow in Quantum Programming;Proceedings of the ACM on Programming Languages;2024-04-29
2. References;Foundations of Quantum Programming;2024
3. Quantum while-programs;Foundations of Quantum Programming;2024
4. Differentiable Quantum Programming with Unbounded Loops;ACM Transactions on Software Engineering and Methodology;2023-11-23
5. Development of Evolutionary Systems Based on Quantum Petri Nets;Mathematics;2022-11-22