Lune

PLDI2025Top-tier venue

Quantum Register Machine: Efficient Implementation of Quantum Recursive Programs

Zhicheng Zhang, Mingsheng Ying

Abstract

Quantum recursive programming has been recently introduced for describing sophisticated and complicated quantum algorithms in a compact and elegant way. However, implementation of quantum recursion involves intricate interplay between quantum control flow and recursive procedure calls. In this paper, we aim at resolving this fundamental challenge and develop a series of techniques to efficiently implement quantum recursive programs. Our main contributions include:

(1) We propose a notion of quantum register machine, the first quantum architecture (including an instruction set) that provides instruction-level support for quantum control flow and recursive procedure calls at the same time. (2) Based on quantum register machine, we describe the first comprehensive implementation process of quantum recursive programs, including the compilation, the partial evaluation of quantum control flow, and the execution on the quantum register machine. (3) As a bonus, our efficient implementation of quantum recursive programs also offers automatic parallelisation of quantum algorithms. For implementing certain quantum algorithmic subroutine, like the widely used quantum multiplexor, we can even obtain exponential parallel speed-up (over the straightforward implementation) from this automatic parallelisation. This demonstrates that quantum recursive programming can be win-win for both modularity of programs and efficiency of their implementation.

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 Circuits Are Just a Phase cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Quantum Circuits Are Just a Phase cites Qunity: A Unified Language for Quantum and Classical Computing
  • Quantum Control and General Recursion Beyond the Unitary Case cites Quantum Circuits Are Just a Phase
  • 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
  • A verified optimizer for Quantum circuits cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Cobble: Compiling Block Encodings for Quantum Computational Linear Algebra cites A verified optimizer for Quantum circuits
  • Cobble: Compiling Block Encodings for Quantum Computational Linear Algebra cites Silq: a high-level quantum language with safe uncomputation and intuitive semantics
  • Cobble: Compiling Block Encodings for Quantum Computational Linear Algebra 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
  • Giallar: push-button verification for the qiskit Quantum compiler cites A verified optimizer for Quantum circuits
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Quantum Circuits Are Just a PhaseChris Heunen, Louis Lemonnier, Christopher McNally, Alex RicePOPL 2026
  2. Quantum Control and General Recursion Beyond the Unitary CaseKathleen Barsse, Romain Péchoux, Simon PerdrixLICS 2026
  3. Cobble: Compiling Block Encodings for Quantum Computational Linear AlgebraCharles YuanPLDI 2026

Builds on14

  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. A verified optimizer for Quantum circuitsKesha Hietala, Robert Rand, Shih-Han Hung, Xiaodi Wu et al.POPL 2021 · 111 citations
  3. Giallar: push-button verification for the qiskit Quantum compilerRunzhou Tao, Yunong Shi, Jianan Yao, Xupeng Li et al.PLDI 2022 · 44 citations
  4. Optimal Space-Depth Trade-Off of CNOT Circuits in Quantum Logic SynthesisJiaqing Jiang, Xiaoming Sun, Shang-Hua Teng, Bujiao Wu et al.SODA 2020 · 40 citations
  5. Qunity: A Unified Language for Quantum and Classical ComputingFinn Voichick, Liyi Li, Robert Rand, Michael HicksPOPL 2023 · 35 citations

Related papers

  1. Verification of Recursively Defined Quantum CircuitsMingsheng Ying, Zhicheng ZhangPLDI 2026
  2. Modular Synthesis of Efficient Quantum UncomputationHristo Venev, Timon Gehr, Dimitar Dimitrov, Martin T. VechevOOPSLA 2024 · 5 citations
  3. Quantum Control Machine: The Limits of Control Flow in Quantum ProgrammingCharles Yuan, Agnes Villanyi, Michael CarbinOOPSLA 2024 · 9 citations
  4. Exploiting Different Levels of Parallelism in the Quantum Control Microarchitecture for Superconducting QubitsMengyu Zhang, Lei Xie, Zhenxing Zhang, Qiaonian Yu et al.MICRO 2021 · 13 citations
  5. Compositional Quantum Control Flow with Efficient Compilation in QunityMikhail Mints, Finn Voichick, Leonidas Lampropoulos, Robert RandOOPSLA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines