arrow
Return

Compositional Quantum Control Flow with Efficient Compilation in Qunity

delete2025-10-01
delete0
PRE
AI
M
Mikhail Mints *
F
Finn Voichick
L
Leonidas Lampropoulos
R
Robert W. Rand
DOI:10.1145/3763056delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Most existing quantum programming languages are based on the quantum circuit model of computation, as higher-level abstractions are particularly challenging to implement-especially ones relating to quantum control flow. The Qunity language, proposed by Voichick et al., offered such an abstraction in the form of a quantum control construct, with great care taken to ensure that the resulting language is still realizable. However, Qunity lacked a working implementation, and the originally proposed compilation procedure was very inefficient, with even simple quantum algorithms compiling to unreasonably large circuits. In this work, we focus on the efficient compilation of high-level quantum control flow constructs, using Qunity as our starting point. We introduce a wider range of abstractions on top of Qunity's core language that offer compelling trade-offs compared to its existing control construct. We create a complete implementation of a Qunity compiler, which converts high-level Qunity code into the quantum assembly language OpenQASM 3. We develop optimization techniques for multiple stages of the Qunity compilation procedure, including both low-level circuit optimizations as well as methods that consider the high-level structure of a Qunity program, greatly reducing the number of qubits and gates used by the compiler.
Keywords:
quantum programming languages
high-level programming languages
quantum control flow
quantum subroutines
compiler optimizations

Journal

P
Proceedings of the ACM on Programming Languages-PACMPL
IF:
2.8
Papers:
308
Citations:
4.7K

Organization

C
California Institute of Technology
Scholars:
2.9W
Papers: 2.5W
Citations: 4.9W
University System of Maryland cover
University System of Maryland
Scholars:
6.5W
Papers: 5.6W
Citations: 113
Cited Papers

Cited Papers

The Mathematical Language of Quantum Theory
err
IF0
err2012-01-05
err0
PREAI
errTeiko Heinosaari; Mário Ziman
errShare
errSave
OpenQASM3: A Broader and Deeper Quantum Assembly Language
err2022-09-06
err70
errOAAI
errCross, Andrew; Javadi-Abhari, Ali; Alexander, Thomas; de Beaudrap, Niel; Bishop, Lev S.; Heidel, Steven; Ryan, Colm A.; Sivarajah, Prasahnt; Smolin, John; Gambetta, Jay M.; Johnson, Blake R.
errShare
errSave
Q#
err2018-02-24
err0
errOAAI
errKrysta Svore; Alan Geller; Matthias Troyer; John Azariah; Christopher Granade; Bettina Heim; Vadym Kliuchnikov; Mariia Mykhailova; Andres Paz; Martin Roetteler
errShare
errSave
On the order of odd integers modulo 2n
err2019-01-01
err0
PREAI
errJung,Soon-Mo; Nam,Doyun; Rassias,Michael
errShare
errSave
From Symmetric Pattern-Matching to Quantum Control
err2018-04-14
err0
errOAAI
errAmr Sabry; Benoît Valiron; Juliana Kaizer Vizzotto
errShare
errSave
Modular Synthesis of Efficient Quantum Uncomputation
err2024-10-08
err0
PREAI
errVenev,Hristo; Gehr,Timon; Dimitrov,Dimitar; Vechev,Martin
errShare
errSave
Conventions for quantum pseudocode
err
IF0
err1996-06-01
err0
errOAAI
errE. Knill
errShare
errSave
researcher View more