Introduction
In the current Noisy Intermediate-Scale Quantum (NISQ) era, quantum processors (QPUs) from major developers like IBM and Google face significant hardware limitations, most notably restricted qubit connectivity. Unlike theoretical models where any two qubits can interact, physical qubits can typically only perform two-qubit gates with their immediate neighbors. To execute a quantum circuit, logical qubits must be mapped to physical ones, and SWAP gates must be strategically inserted to move information until the required qubits are adjacent.
Every added SWAP gate increases the total gate count and circuit depth, which in turn elevates noise levels and the risk of decoherence. Most existing mapping algorithms struggle to balance these metrics and often only "look ahead" to future gates, neglecting how a SWAP might interact with or even cancel out preceding operations. TANGO addresses these gaps with a novel bidirectional approach.
Methods
The TANGO algorithm introduces three major innovations to optimize the mapping and routing process:
- Dual-Factor Initial Mapping: Before routing, TANGO places qubits using a scoring function that balances two factors: the proximity of a qubit to its already-placed neighbors and the remaining "room" for neighbors yet to be placed. This prevents the algorithm from creating bottlenecks early in the process.
- Two-Stage Routing Search:
- Stage 1: The algorithm identifies SWAP candidates that maximize the number of immediately executable two-qubit gates.
- Stage 2: If multiple candidates are viable, it uses a refined heuristic ($H_{refine}$) considering gate distance, current circuit depth, and a "Reward" value.
- Bidirectional Look: This core novelty allows TANGO to look both forward to future gates and backward to preceding gates. If a SWAP facilitates the cancellation or commutation of a preceding gate, it receives a "Reward," making it a high-priority choice.
- Adaptive Gate Optimization: TANGO employs adaptive CNOT decomposition and commutative gate cancellation to further shrink the circuit after the mapping is finalized.
Experimental Evaluation
The algorithm was evaluated against state-of-the-art mappers like NASSC and SQGM using hardware models such as the IBM Tokyo Q20 and IBM Rochester Q53. The test suites included standard QASM benchmarks and complex chemistry-related circuits (e.g., $H_2$, $LiH$, $H_2O$) derived via the Jordan-Wigner transformation.
Key Results
- Gate Count Reduction: TANGO reduced the CNOT count by an average of 27.85% on small-scale circuits and 5.95% on large-scale circuits compared to NASSC.
- Circuit Depth Improvement: The algorithm achieved a 22.59% depth reduction on small circuits and 11.88% on large circuits.
- Chemistry Benchmarks: In high-complexity cases, such as the $LiH$ circuit on the Rochester architecture, TANGO achieved a massive 48.8% reduction in gate count.
- Efficiency: TANGO often ran faster than NASSC by avoiding computationally expensive block re-synthesis steps.
Conclusion and Future Work
TANGO demonstrates that a "look-back" strategy can significantly optimize quantum circuits by identifying opportunities for gate cancellation that unidirectional algorithms miss. While its performance advantage narrows for extremely large circuits where heuristics may encounter local optima, it remains a robust tool for the NISQ era. Future research will focus on integrating noise-aware metrics and exploring advanced synthesis techniques for circuit sub-blocks.
Summary updated