Not All SWAPs Have the Same Cost: A Case for Optimization-Aware Qubit Routing

05/21/2022
by   Ji Liu, et al.
0

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.

READ FULL TEXT
research
07/27/2023

Decomposing and Routing Quantum Circuits Under Constraints for Neutral Atom Architectures

Quantum computing is in an era defined by rapidly evolving quantum hardw...
research
04/01/2021

Qubit Routing using Graph Neural Network aided Monte Carlo Tree Search

Near-term quantum hardware can support two-qubit operations only on the ...
research
12/14/2020

Relaxed Peephole Optimization: A Novel Compiler Optimization for Quantum Circuits

In this paper, we propose a novel quantum compiler optimization, named r...
research
05/27/2019

Full-Stack, Real-System Quantum Computer Studies: Architectural Comparisons and Design Insights

In recent years, Quantum Computing (QC) has progressed to the point wher...
research
08/29/2022

Qubit Mapping and Routing via MaxSAT

Near-term quantum computers will operate in a noisy environment, without...
research
05/03/2023

Algorithmic Theory of Qubit Routing

The qubit routing problem, also known as the swap minimization problem, ...
research
06/26/2023

Clifford Assisted Optimal Pass Selection for Quantum Transpilation

The fidelity of quantum programs in the NISQ era is limited by high leve...

Please sign up or login with your details

Forgot password? Click here to reset