Qunity: A Unified Language for Quantum and Classical Computing
Top Cited Papers
Open Access
- 9 January 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 7 (POPL) , 921-951
Abstract
We introduce Qunity, a new quantum programming language designed to treat quantum computing as a natural generalization of classical computing. Qunity presents a unified syntax where familiar programming constructs can have both quantum and classical effects. For example, one can use sum types to implement the direct sum of linear operators, exception-handling syntax to implement projective measurements, and aliasing to induce entanglement. Further, Qunity takes advantage of the overlooked BQP subroutine theorem, allowing one to construct reversible subroutines from irreversible quantum algorithms through the uncomputation of "garbage" outputs. Unlike existing languages that enable quantum aspects with separate add-ons (like a classical language with quantum gates bolted on), Qunity provides a unified syntax and a novel denotational semantics that guarantees that programs are quantum mechanically valid. We present Qunity's syntax, type system, and denotational semantics, showing how it can cleanly express several quantum algorithms. We also detail how Qunity can be compiled into a low-level qubit circuit language like OpenQASM, proving the realizability of our design.Keywords
All Related Versions
Funding Information
- Advanced Scientific Computing Research (DE-SC0019040)
- Air Force Office of Scientific Research (FA95502110051)
- National Science Foundation (CCF-1730449)
This publication has 33 references indexed in Scilit:
- An Overview of QML With a Concrete Implementation in HaskellElectronic Notes in Theoretical Computer Science, 2011
- Any AND-OR Formula of Size N Can Be Evaluated in Time $N^{1/2+o(1)}$ on a Quantum ComputerSIAM Journal on Computing, 2010
- Towards a quantum programming languageMathematical Structures in Computer Science, 2004
- A Lambda Calculus for Quantum ComputationSIAM Journal on Computing, 2004
- Strengths and Weaknesses of Quantum ComputingSIAM Journal on Computing, 1997
- Semiclassical Fourier Transform for Quantum ComputationPhysical Review Letters, 1996
- Quantum theory, the Church–Turing principle and the universal quantum computerProceedings of the Royal Society of London. A. Mathematical and Physical Sciences, 1985
- A single quantum cannot be clonedNature, 1982
- Confluent Reductions: Abstract Properties and Applications to Term Rewriting SystemsJournal of the ACM, 1980
- On Theories with a Combinatorial Definition of "Equivalence"Annals of Mathematics, 1942