Generating Compilers for Qubit Mapping and Routing
Abtin Molavi, Amanda Xu, Ethan Cecchetti, Swamit Tannu, Aws Albarghouthi
Abstract
To evaluate a quantum circuit on a quantum processor, one must find a mapping from circuit qubits to processor qubits and plan the instruction execution while satisfying the processor’s constraints. This is known as the qubit mapping and routing ( qmr ) problem. High-quality qmr solutions are key to maximizing the utility of scarce quantum resources and minimizing the probability of logical errors affecting computation. The challenge is that the landscape of quantum processors is incredibly diverse and fast-evolving. Given this diversity, dozens of papers have addressed the qmr problem for different qubit hardware, connectivity constraints, and quantum error correction schemes by a developing a new algorithm for a particular context. We present an alternative approach: automatically generating qubit mapping and routing compilers for arbitrary quantum processors. Though each qmr problem is different, we identify a common core structure— device state machine —that we use to formulate an abstract qmr problem . Our formulation naturally leads to a compact domain-specific language for specifying qmr problems and a powerful parametric algorithm that can be instantiated for any qmr specification. Our thorough evaluation on case studies of important qmr problems shows that generated compilers are competitive with handwritten, specialized compilers in terms of runtime and solution quality.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7dbf42f0-09dd-4fa3-a4ae-ef040cbcea83Builds on11
- Architecting Noisy Intermediate-Scale Trapped Ion Quantum ComputersPrakash Murali, Dripto M. Debroy, Kenneth R. Brown, Margaret MartonosiISCA 2020 · 78 citations
- Quartz: superoptimization of Quantum circuitsMingkuan Xu, Zikun Li, Oded Padon, Sina Lin et al.PLDI 2022 · 57 citations
- Qubit Mapping and Routing via MaxSATAbtin Molavi, Amanda Xu, Martin Diges, Lauren Pick et al.MICRO 2022 · 49 citations
- Synthesizing Quantum-Circuit OptimizersAmanda Xu, Abtin Molavi, Lauren Pick, Swamit Tannu et al.PLDI 2023 · 41 citations
- Scalable Optimal Layout Synthesis for NISQ Quantum ProcessorsWan-Hsuan Lin, Jason Kimko, Bochen Tan, Nikolaj S. Bjørner et al.DAC 2023 · 34 citations
Related papers
- Dependency-Aware Compilation for Surface Code Quantum ArchitecturesAbtin Molavi, Amanda Xu, Swamit Tannu, Aws AlbarghouthiOOPSLA 2025 · 10 citations
- Qubit Routing Using Graph Neural Network Aided Monte Carlo Tree SearchAnimesh Sinha, Utkarsh Azad, Harjinder SinghAAAI 2022 · 31 citations
- DDRoute: a Novel Depth-Driven Approach to the Qubit Routing ProblemAlessandro Annechini, Marco Venere, Donatella Sciuto, Marco D. SantambrogioDAC 2025 · 2 citations
- QECC-Synth: A Layout Synthesizer for Quantum Error Correction Codes on Sparse ArchitecturesKeyi Yin, Hezi Zhang, Xiang Fang, Yunong Shi et al.ASPLOS 2025 · 8 citations
- Not All SWAPs Have the Same Cost: A Case for Optimization-Aware Qubit RoutingJi Liu, Peiyi Li, Huiyang ZhouHPCA 2022 · 30 citations
