Quantum Circuits Are Just a Phase
Chris Heunen, Louis Lemonnier, Christopher McNally, Alex Rice

TL;DR
This paper introduces a minimal, expressive quantum programming language centered on phase operations and pattern matching, enabling more abstract, scalable, and concise quantum algorithm descriptions with a formal semantics and a prototype compiler.
Contribution
It presents a new syntax and semantics for quantum programming based on phases and pattern matching, demonstrating universality and practical expressiveness for key algorithms.
Findings
Universal quantum gate set derived from the language
Concise expression of algorithms like Grover's search and QFT
Prototype compiler efficiently translates language to circuits
Abstract
Quantum programs today are written at a low level of abstraction - quantum circuits akin to assembly languages - and the unitary parts of even advanced quantum programming languages essentially function as circuit description languages. This state of affairs impedes scalability, clarity, and support for higher-level reasoning. More abstract and expressive quantum programming constructs are needed. To this end, we introduce a simple syntax for generating unitaries from "just a phase"; we combine a (global) phase operation that captures phase shifts with a quantum analogue of the "if let" construct that captures subspace selection via pattern matching. This minimal language lifts the focus from gates to eigendecomposition, conjugation, and controlled unitaries; common building blocks in quantum algorithm design. We demonstrate several aspects of the expressive power of our language in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture
