CLINE: Improving Control Flow Compilation of Quantum Programs with Control Line Encoding
Anbang Wu, Liqiang Lu, Jianwei Yin, Jingwen Leng, Minyi Guo
Abstract
Important applications like quantum search and quantum simulation rely on control flow implemented by oracle circuits, which may account for up to 99% of the total gate count [1] as oracle circuits consist of expensive multi-controlled (MC) quantum operations that formulate the control flow. Existing efforts optimize them by simplifying Boolean expressions associated with MC gates. They merge MC gates, if associated Boolean expressions are adjacent, to reduce the gate cost. Being more aggressive, our work introduces control line encoding (CLE), a technique that even allows merging non-adjacent MC gates by modifying their control (line) polarity. We further develop a plug-in compiler framework that efficiently applies this technique. The framework is grounded in the following observations: 1) Control flows often commute with one another and can be globally reorganized to maximize their merging by CLE; 2) numerous CLE schemes exist to allow gate merge and we can co-design CLE applications to diminish the overhead of CLE itself. Experiments demonstrate that, compared to the baseline, our framework further reduces the CX and T cost, on average by 54.7% and 56.8%, respectively.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 08d4e9e9-75ab-444c-9ccf-b8657f7f838fRelated papers
- QuCLEAR: Clifford Extraction and Absorption for Quantum Circuit OptimizationJi Liu, Alvin Gonzales, Benchen Huang, Zain Hamid Saleem et al.HPCA 2025 · 3 citations
- Compiling Conditional Quantum Gates without Using Helper QubitsKeli Huang, Jens PalsbergPLDI 2024 · 5 citations
- Ever more optimized simulations of fermionic systems on a quantum computerQingfeng Wang, Ze-Pei Cian, Ming Li, Igor L. Markov et al.DAC 2023 · 12 citations
- An Efficient Circuit Compilation Flow for Quantum Approximate Optimization AlgorithmMahabubul Alam, Abdullah Ash-Saki, Swaroop GhoshDAC 2020 · 37 citations
- Linear and Non-linear Relational Analyses for Quantum Program OptimizationMatthew Amy, Joseph LundervillePOPL 2025 · 9 citations
