Not All SWAPs Have the Same Cost: A Case for Optimization-Aware Qubit Routing
Ji Liu, Peiyi Li, Huiyang Zhou
Abstract
Despite rapid advances in quantum computing technologies, the qubit connectivity limitation remains to be a critical challenge. Both near-term NISQ quantum computers and relatively long-term scalable quantum architectures do not offer full connectivity. As a result, quantum circuits may not be directly executed on quantum hardware, and a quantum compiler needs to perform qubit routing to make the circuit compatible with the device layout. During the qubit routing step, the compiler inserts SWAP gates and performs circuit transformations. Given the connectivity topology of the target hardware, there are typically multiple qubit routing candidates. The state-of-the-art compilers use a cost function to evaluate the number of SWAP gates for different routes and then select the one with the minimum number of SWAP gates. After qubit routing, the quantum compiler performs gate optimizations upon the circuit with the newly inserted SWAP gates.
In this paper, we observe that the aforementioned qubit routing is not optimal, and qubit routing should not be independent on subsequent gate optimizations. We find that with the consideration of gate optimizations, not all of the SWAP gates have the same basis-gate cost. These insights lead to the development of our qubit routing algorithm, NASSC (Not All Swaps have the Same Cost). NASSC is the first algorithm that considers the subsequent optimizations during the routing step. Our optimization-aware qubit routing leads to better routing decisions and benefits subsequent optimizations. We also propose a new optimization-aware decomposition for the inserted SWAP gates. Our experiments show that the routing overhead compiled with our routing algorithm is reduced by up to 69.30% (21.30% on average) in the number of CNOT gates and up to 43.50% (7.61% on average) in the circuit depth compared with the state-of-the-art scheme, SABRE.
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.
Cited by top-tier papers11
- Elivagar: Efficient Quantum Circuit Search for ClassificationSashwat Anagolum, Narges Alavisamani, Poulami Das, Moinuddin K. Qureshi et al.ASPLOS 2024 · 19 citations
- FMCC: Flexible Measurement-based Quantum Computation over Cluster StateYingheng Li, Aditya Pawar, Zewei Mo, Youtao Zhang et al.ASPLOS 2024 · 5 citations
- MIRAGE: Quantum Circuit Decomposition and Routing Collaborative Design Using Mirror GatesEvan McKinney, Michael Hatridge, Alex K. JonesHPCA 2024 · 4 citations
- Orchestrating Measurement-Based Quantum Computation over Photonic Quantum ProcessorsYingheng Li, Aditya Pawar, Mohadeseh Azari, Yanan Guo et al.DAC 2023 · 3 citations
- Optimizing Quantum Fourier Transformation (QFT) Kernels for Modern NISQ and FT ArchitecturesYuwei Jin, Xiangyu Gao, Minghao Guo, Henry Chen et al.SC 2024 · 3 citations
Builds on11
- Software Mitigation of Crosstalk on Noisy Intermediate-Scale Quantum ComputersPrakash Murali, David C. McKay, Margaret Martonosi, Ali Javadi-AbhariASPLOS 2020 · 253 citations
- QuantumNAS: Noise-Adaptive Search for Robust Quantum CircuitsHanrui Wang, Yongshan Ding, Jiaqi Gu, Yujun Lin et al.HPCA 2022 · 199 citations
- CutQC: using small Quantum computers for large Quantum circuit evaluationsWei Tang, Teague Tomesh, Martin Suchara, Jeffrey Larson et al.ASPLOS 2021 · 159 citations
- Optimized Quantum Compilation for Near-Term Algorithms with OpenPulsePranav Gokhale, Ali Javadi-Abhari, Nathan Earnest, Yunong Shi et al.MICRO 2020 · 87 citations
- Quantum Circuits for Dynamic Runtime Assertions in Quantum ComputationJi Liu, Gregory T. Byrd, Huiyang ZhouASPLOS 2020 · 82 citations
Related papers
- DDRoute: a Novel Depth-Driven Approach to the Qubit Routing ProblemAlessandro Annechini, Marco Venere, Donatella Sciuto, Marco D. SantambrogioDAC 2025 · 2 citations
- Qubit Routing Using Graph Neural Network Aided Monte Carlo Tree SearchAnimesh Sinha, Utkarsh Azad, Harjinder SinghAAAI 2022 · 31 citations
- 2QAN: a quantum compiler for 2-local qubit hamiltonian simulation algorithmsLingling Lao, Dan E. BrowneISCA 2022 · 37 citations
- Time-optimal Qubit mappingChi Zhang, Ari B. Hayes, Longfei Qiu, Yuwei Jin et al.ASPLOS 2021 · 72 citations
- Unifying Qubit Routing Across Diverse Quantum ISAs via Canonical RepresentationZhaohui Yang, Kai Zhang, Xinyang Tian, Xiangyu Ren et al.ISCA 2026 · 1 citation
