Verified Compilation of Quantum Oracles

Liyi Li, Finn Voichick, Kesha Hietala, Yuxiang Peng, Xiaodi Wu +1 more
12/13/2021
quant-phcs.PL

Official code: inQWIRE/VQO (4 stars, OpenQASM, MIT, last commit 2023-09-22).

Abstract

Quantum algorithms often apply classical operations, such as arithmetic or predicate checks, over a quantum superposition of classical data; these so-called oracles are often the largest components of a quantum program. To ease the construction of efficient, correct oracle functions, this paper presents VQO, a high-assurance framework implemented with the Coq proof assistant.

Show full abstract

The core of VQO is OQASM, the oracle quantum assembly language. OQASM operations move qubits between two different bases via the quantum Fourier transform, thus admitting important optimizations, but without inducing entanglement and the exponential blowup that comes with it. OQASM's design enabled us to prove correct VQO's compilers -- from a simple imperative language called OQIMP to OQASM, and from OQASM to SQIR, a general-purpose quantum assembly language -- and allowed us to efficiently test properties of OQASM programs using the QuickChick property-based testing framework. We have used VQO to implement a variety of arithmetic and geometric operators that are building blocks for important oracles, including those used in Shor's and Grover's algorithms. We found that VQO's QFT-based arithmetic oracles require fewer qubits, sometimes substantially fewer, than those constructed using "classical" gates; VQO's versions of the latter were nevertheless on par with or better than (in terms of both qubit and gate counts) oracles produced by Quipper, a state-of-the-art but unverified quantum programming platform.

View on arXivView PDF

Code Implementations(1)

inQWIRE/VQOOfficial100%
MIT

Verified Compilation of Quantum Oracles

42OpenQASM, CoqNov 12, 20213 years agoMIT

Similar Papers

Cite this paper

@article{li2021verified,
  title  = {Verified Compilation of Quantum Oracles},
  author = {Liyi Li and Finn Voichick and Kesha Hietala and Yuxiang Peng and Xiaodi Wu and Michael Hicks},
  year   = {2021},
  eprint = {2112.06700},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.06700}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.06700.svg)](https://codeofpaper.com/paper/2112.06700)

Discussion