pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs
Abstract
Recursive quantum control allows for simple and concise descriptions of algorithms. However, a naive circuit compilation sequentializes the different branches of the quantum if-statement and results in an exponential increase in circuit depth. Existing techniques can parallelize these branches, but do so at the cost of an exponential number of ancillary qubits. We present pfoqcompiler, a compiler targeting Qiskit for the first-order quantum programming language FOQ that exploits program structure to merge compatible recursive procedure calls across quantum branches. We introduce weaker syntactically-checkable conditions for well-foundedness, recursive halving, and uniformity, while preserving previously demonstrated complexity characterizations. For weakly well-founded bounded-width programs, the compiler produces polynomial-size circuits; weakly recursively halving programs additionally yield polylogarithmic depth, while weak uniformity removes the asymptotic overhead of branch sequentialization.
Related
- Why Are We Unrolling? The Importance of Structured Quantum Programs for Compilation
- C-Phase-Aware Compilation for Efficient Fault-Tolerant Quantum Execution
- Efficient Compilation for Hamiltonian Simulation via Global Binary Symplectic Form Simplification
- Quantum circuit compilation with constant overhead
- A Compilation Framework for Quantum Simulation of Non-unitary Dynamics
BibTeX
@misc{silva2026pfoqcompiler,
title = {{pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs}},
author = {Mário Silva and Alexandre Guernut and Marco Lewis},
howpublished = {HAL},
year = {2026},
month = sep,
url = {https://inria.hal.science/hal-05738864v1},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs
AU - Mário Silva
AU - Alexandre Guernut
AU - Marco Lewis
PY - 2026
DA - 2026/09/04
PB - HAL
UR - https://inria.hal.science/hal-05738864v1
AB - Recursive quantum control allows for simple and concise descriptions of algorithms. However, a naive circuit compilation sequentializes the different branches of the quantum if-statement and results in an exponential increase in circuit depth. Existing techniques can parallelize these branches, but do so at the cost of an exponential number of ancillary qubits. We present pfoqcompiler, a compiler targeting Qiskit for the first-order quantum programming language FOQ that exploits program structure to merge compatible recursive procedure calls across quantum branches. We introduce weaker syntactically-checkable conditions for well-foundedness, recursive halving, and uniformity, while preserving previously demonstrated complexity characterizations. For weakly well-founded bounded-width programs, the compiler produces polynomial-size circuits; weakly recursively halving programs additionally yield polylogarithmic depth, while weak uniformity removes the asymptotic overhead of branch sequentialization.
ER -