Lune

POPL2026Top-tier venue

Quantum Circuits Are Just a Phase

Chris Heunen, Louis Lemonnier, Christopher McNally, Alex Rice

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 several ways. Firstly, we establish that our representation is universal by deriving a universal quantum gate set. Secondly, we show that important quantum algorithms can be expressed naturally and concisely, including Grover's search algorithm, Hamiltonian simulation, Quantum Fourier Transform, Quantum Signal Processing, and the Quantum Eigenvalue Transformation. Furthermore, we give clean denotational semantics grounded in categorical quantum mechanics. Finally, we implement a prototype compiler that efficiently translates terms of our language to quantum circuits, and prove that it is sound with respect to these semantics. Collectively, these contributions show that this construct offers a principled and practical step toward more abstract and structured quantum programming.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Quantum Control and General Recursion Beyond the Unitary Case cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Quantum Control and General Recursion Beyond the Unitary Case cites Qunity: A Unified Language for Quantum and Classical Computing
  • RapunSL: Untangling Quantum Computing with Separation, Linear Combination and Mixing cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Granthi: Higher-Order Quantum Programming via Unitary Wiring cites Qunity: A Unified Language for Quantum and Classical Computing
  • Qunity: A Unified Language for Quantum and Classical Computing cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Proto-Quipper with Dynamic Lifting cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. RapunSL: Untangling Quantum Computing with Separation, Linear Combination and MixingYusuke Matsushita, Kengo Hirata, Ryo Wakizaka, Emanuele D'OsualdoPOPL 2026 · 1 citation
  2. Quantum Control and General Recursion Beyond the Unitary CaseKathleen Barsse, Romain Péchoux, Simon PerdrixLICS 2026
  3. Granthi: Higher-Order Quantum Programming via Unitary WiringSamson Abramsky, Radha JagadeesanOOPSLA 2026

Builds on10

  1. Silq: a high-level quantum language with safe uncomputation and intuitive semanticsBenjamin Bichsel, Maximilian Baader, Timon Gehr, Martin T. VechevPLDI 2020 · 145 citations
  2. Qunity: A Unified Language for Quantum and Classical ComputingFinn Voichick, Liyi Li, Robert Rand, Michael HicksPOPL 2023 · 35 citations
  3. Proto-Quipper with Dynamic LiftingPeng Fu, Kohei Kishida, Neil J. Ross, Peter SelingerPOPL 2023 · 17 citations
  4. A Complete Equational Theory for Quantum CircuitsAlexandre Clément, Nicolas Heurtel, Shane Mansfield, Simon Perdrix et al.LICS 2023 · 14 citations
  5. Quantum Eigenvalue ProcessingGuang Hao Low, Yuan SuFOCS 2024 · 12 citations

Related papers

  1. Compositional Quantum Control Flow with Efficient Compilation in QunityMikhail Mints, Finn Voichick, Leonidas Lampropoulos, Robert RandOOPSLA 2025
  2. A Case for Synthesis of Recursive Quantum Unitary ProgramsHaowei Deng, Runzhou Tao, Yuxiang Peng, Xiaodi WuPOPL 2024 · 10 citations
  3. Hadamard-Pi: Equational Quantum ProgrammingWang Fang, Chris Heunen, Robin KaarsgaardPOPL 2026
  4. Optimizing Quantum Circuits, Fast and SlowAmanda Xu, Abtin Molavi, Swamit Tannu, Aws AlbarghouthiASPLOS 2025 · 8 citations
  5. QbC: Quantum Correctness by ConstructionAnurudh Peduri, Ina Schaefer, Michael WalterOOPSLA 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines