Abstract
The conventional approach for initial qubit mapping in the Noisy Intermediate-Scale Quantum (NISQ) era typically uses a static heuristic strategy, overlooking insufficient qubit neighborhood in subsequent operations, resulting in excess additional SWAP gates. To address this, we introduce a multifactor interaction cost function considering qubit distance, interaction time, and gate operation error rates, enhancing SWAP gate selection in the traditional strategy. Considering quantum hardware constraints, we propose Batch SWAP Optimization Strategy (BSOS). BSOS tackles qubit mapping challenges by leveraging optimal SWAP gate selection and a SWAP-based batch update technique, effectively minimizing SWAP gates throughout circuit execution. Experimental results show that BSOS significantly reduces additional gates by intelligently selecting SWAP gates and using batch updating, with a 38.1% average decrease in inserted SWAP gates, leading to a 12% reduction in hardware gate counting overhead.
Introduction: The Connectivity Challenge in NISQ Computing
In the Noisy Intermediate-Scale Quantum (NISQ) era, one of the primary hurdles for executing quantum algorithms is the limited connectivity of physical qubits. Unlike an ideal quantum computer where any two qubits can interact, real-world hardware restricts two-qubit operations (such as CNOT gates) to adjacent physical qubits on a chip. This constraint is represented by a coupling graph.
To execute a gate between non-adjacent qubits, compilers must insert SWAP gates to physically relocate logical qubits across the hardware topology. However, SWAP gates are costly; a single SWAP typically requires three CNOT gates. Given that two-qubit gates have significantly higher error rates than single-qubit gates, minimizing the number of inserted SWAPs is critical for maintaining circuit fidelity.
The Batch SWAP Optimization Strategy (BSOS)
The proposed Batch SWAP Optimization Strategy (BSOS) addresses the inefficiencies of traditional mapping heuristics through three core innovations:
- Multifactor Interaction Cost Function: Rather than relying solely on physical distance, BSOS utilizes a cost function that integrates qubit distance, interaction time, and specific gate error rates. This allows the compiler to navigate "high-quality" paths, avoiding noisy regions of the hardware.
- Optimal SWAP Selection: The algorithm evaluates potential SWAP gates based on their "gain"—the number of subsequent gates in the circuit that become executable as a result of the move. This look-ahead approach prevents greedy choices that might lead to suboptimal mapping later.
- Batch Update Technique (BUT): Traditional compilers often update the entire qubit map after every SWAP, creating a computational bottleneck. BUT identifies non-conflicting SWAP operations and executes them as a batch, significantly reducing compilation latency.
Experimental Evaluation and Results
The effectiveness of BSOS was tested against industry-standard compilers, including IBM's Qiskit and Quantinuum's t|ket⟩, using benchmark circuits like QAOA and Hamiltonian simulations on the IBM Q20 Tokyo hardware model.
Key findings include:
- Significant SWAP Reduction: BSOS achieved an average 38.1% reduction in inserted SWAP gates.
- Hardware Efficiency: The total hardware gate count overhead was reduced by 12%.
- Scalability: The performance gap widened with larger circuits; for 22-qubit scenarios, BSOS required 43% fewer SWAPs than t|ket⟩ and 65% fewer than Qiskit.
Conclusion
By shifting from simple distance-based heuristics to a multifactor, batch-optimized approach, BSOS provides a more robust framework for qubit mapping. This strategy not only reduces the classical overhead of compilation but, more importantly, enhances the reliability of quantum computations on current NISQ hardware by minimizing error-prone gate operations.
Summary updated