pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs
Mário Silva, Alexandre Guernut, Marco Lewis
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.
Create a lesson
Related papers
Towards Datalog on Quantum Annealers: Compiling Recursive Logic Programs with Bottom-up Semantics to 2-local Ising Models
Shared title terminology · Bruno Rucy Carneiro Alves de Lima, Victor Henrique Cabral Pinheiro, Evgenii Dolzhkov et al.
Morph-Aware Computing: Compiler-Ordered Updates of Program State after Topology Changes
Shared title terminology · Yusuke Izawa, Junichiro Kadomoto
ReOC: Compilation of Recursive Quantum Oracles with Recursion-Aware Uncomputation
Shared title terminology · Huiling Wu, Yuxin Deng
Tenon: A Unified Programming Framework for Retargetable PIM Compilation
Shared title terminology · Niansong Zhang, Shiran Guo, Zhiru Zhang
Simulating Quantum Computation Using Probabilistic Programming
Shared title terminology · Yafei Yang, Chung-chieh Shan
Compiling Matrix Formulas to Quantum Block Encodings
Shared title terminology · Daksh Shami, Charles Yuan