An efficient quantum circuits optimizing scheme compared with QISKit

Xin Zhang, Hong Xiang, Tao Xiang, Li Fu, Jun SangarXiv 2018

Introduction

In the current Noisy Intermediate-Scale Quantum (NISQ) era, physical limitations of superconducting qubits impose significant constraints on quantum circuit execution. Ideally, any qubit in a processor could interact with any other; however, real-world hardware typically restricts interactions to immediate neighbors in specific topologies, such as linear chains or grid-like structures.

When a quantum algorithm requires a two-qubit operation (like a CNOT gate) between non-adjacent physical qubits, the compiler must insert SWAP gates to move the quantum states into proximity. This process, known as mapping or routing, comes at a high cost: every additional gate increases the circuit's depth and exposes the system to decoherence—the environmental noise that rapidly destroys quantum information. Consequently, developing efficient optimization schemes that minimize gate overhead and compilation time is critical for the practical utility of near-term quantum computers.

The Three-Step Optimization Scheme

Researchers from Chongqing University have developed a novel three-step optimization framework designed to map quantum circuits onto restricted hardware topologies with minimal overhead.

1. Global Adjustment

The first phase focuses on finding an optimal initial mapping of logical qubits to physical qubits. By analyzing the entire circuit before any gates are executed, the algorithm attempts to align logical qubits such that the maximum number of operations occur between physically adjacent neighbors. This step is computationally "free" because it merely reassigns labels without adding physical gates.

2. Local Adjustment and the "Don't Look Back" Strategy

For operations that remain "illegal" (non-adjacent) after global adjustment, the scheme inserts SWAP gates. A key innovation here is the "Don't Look Back" strategy. Traditional compilers often perform a SWAP to enable a gate and then immediately SWAP back to restore the original qubit order. This scheme instead maintains a dynamic "local mapping." Once a SWAP occurs, the algorithm simply tracks the new physical locations of the logical qubits and updates all subsequent instructions in the circuit accordingly.

To manage the exponential search space ($O(2^n)$) inherent in finding optimal SWAP paths, the researchers employed a greedy search algorithm enhanced by a look-ahead heuristic. This heuristic estimates the cost of future gates, allowing the algorithm to make local decisions that benefit the circuit's overall structure.

3. Mergence of Single-Qubit Gates

The final phase involves a post-processing scan of the mapped circuit. The algorithm identifies sequences of adjacent single-qubit gates (such as $u1, u2$, and $u3$ rotations) acting on the same qubit and merges them into a single equivalent mathematical operation. This reduction in gate count directly mitigates the impact of decoherence.

Experimental Setup and Layouts

The effectiveness of the scheme was validated using a benchmark of 2,240 random quantum circuits. These circuits varied in scale from 3 to 16 qubits and in depth from 1 to 16. The researchers tested the optimizer across four distinct physical layouts commonly found in superconducting hardware.

Figure 1: Common physical layouts for quantum hardware used in the benchmark, including (a) Tenerife, (b) Yorktown, (c) Central layout, and (d) Linear layout.

As shown in Figure 1, these layouts represent different connectivity challenges, from the simple chain of the Linear layout to the star-shaped Central layout and the more complex connectivity of IBM's Tenerife and Yorktown chips.

Results and Performance Comparison

The proposed scheme was benchmarked against IBM’s QISKit (v0.4.11), a leading industry standard. The results demonstrated a clear superiority in both gate efficiency and computational speed:

  • Gate Reduction: On average, the new scheme utilized only 74.7% of the gates required by QISKit. The performance was most striking in the Central layout, where the scheme required only 49% of the gates.
  • Compilation Speed: The optimizer's execution time was roughly 12.9% of QISKit’s time. In the specific case of the Central layout, the scheme was 17.3 times faster than the IBM tool.
  • Scalability: The performance gap between the proposed scheme and QISKit widened as the number of qubits increased, suggesting that this method is particularly well-suited for larger NISQ-era processors.

Conclusion and Future Directions

The Chongqing University team's approach offers a significant step forward in quantum circuit compilation. By combining a dynamic mapping strategy with efficient heuristics, they have significantly reduced the "connectivity tax" imposed by physical hardware.

However, the authors note that the greedy nature of the local adjustment can occasionally lead to local optima in very deep circuits. Additionally, the high-precision floating-point arithmetic required for merging single-qubit gates currently consumes about 70% of the total compilation time. Future research will focus on optimizing these mathematical bottlenecks and exploring hardware-software co-design, where physical chip layouts are tailored to complement specific optimization algorithms.

Summary updated

BibTeX
@misc{zhang2018efficient,
  author = {Xin Zhang and Hong Xiang and Tao Xiang and Li Fu and Jun Sang},
  title = {{An efficient quantum circuits optimizing scheme compared with QISKit}},
  year = {2018},
  eprint = {1807.01703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.01703},
}
Figure