pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs
M\'ario Silva (LMF, QuaCS), Alexandre Guernut (MOCQUA), Marco Lewis (LMF, QuaCS)
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- QWeaver: Quantum Circuit Cut Workflow with MLIR-based Compiler, Runtime, and Weaver Hybrid TasksarXiv · 2026
- Granthi: Higher-Order Quantum Programming via Unitary WiringProceedings of the ACM on Programming Languages · 2026
- Latency-Preserving Rewrites and Translation Validation for Dynamic Quantum CircuitsarXiv · 2026
- SAQR-QC: A Logic for Scalable but Approximate Quantitative Reasoning about Quantum CircuitsProceedings of the ACM on Programming Languages · 2026
- Constraint-Preserving Quantum Circuit Compilation for Graph Independent Sets via Persistent Occupancy EncodingarXiv · 2026
- Exact Quantum Algorithms for Composed Boolean FunctionsarXiv · 2026