Skip to main content
QUICK REVIEW

[Paper Review] 2QAN: A quantum compiler for 2-local qubit Hamiltonian simulation algorithms

Lingling Lao, Dan E. Browne|arXiv (Cornell University)|Aug 4, 2021
Quantum Computing Algorithms and ArchitectureComputer Science72 references15 citations
TL;DR

2QAN is an application-specific quantum compiler for 2-local qubit Hamiltonian simulation that exploits operator permutation flexibility across terms in the Hamiltonian to minimize SWAP gates, circuit depth, and gate count. It achieves up to 68.5X reduction in hardware gate overhead and 21X reduction in circuit depth compared to state-of-the-art compilers on Google Sycamore, IBMQ Montreal, and Rigetti Aspen devices.

ABSTRACT

Simulating quantum systems is one of the most important potential applications of quantum computers. The high-level circuit defining the simulation needs to be compiled into one that complies with hardware limitations such as qubit architecture (connectivity) and instruction (gate) set. General-purpose quantum compilers work at the gate level and have little knowledge of the mathematical properties of quantum applications, missing further optimization opportunities. Existing application-specific compilers only apply advanced optimizations in the scheduling procedure and are restricted to the CNOT or CZ gate set. In this work, we develop a compiler, named 2QAN, to optimize quantum circuits for 2-local qubit Hamiltonian simulation problems, a framework which includes the important quantum approximate optimization algorithm (QAOA). In particular, we exploit the flexibility of permuting different operators in the Hamiltonian (no matter whether they commute) and propose permutation-aware techniques for qubit routing, gate optimization and scheduling to minimize compilation overhead. 2QAN can target different qubit topologies and different hardware gate sets. Compilation results on four applications (up to 50 qubits) and three quantum computers (namely, Google Sycamore, IBMQ Montreal and Rigetti Aspen) show that 2QAN outperforms state-of-the-art general-purpose compilers and application-specific compilers. Specifically, 2QAN can reduce the number of inserted SWAP gates by 11.5X, reduce overhead in hardware gate count by 68.5X, and reduce overhead in circuit depth by 21X. Experimental results on the Montreal device demonstrate that benchmarks compiled by 2QAN achieve the highest fidelity.

Motivation & Objective

  • Address the high compilation overhead in NISQ-era quantum computers due to limited qubit connectivity and native gate sets.
  • Overcome the limitations of general-purpose compilers that lack application-level semantic awareness and miss fine-grained optimizations.
  • Leverage the mathematical flexibility of permuting non-commuting terms in product formula-based Hamiltonian simulation to reduce circuit cost.
  • Develop a compiler that supports multiple qubit topologies and hardware gate sets, including CNOT, CZ, SYC, and iSWAP.
  • Achieve higher fidelity and lower compilation overhead than existing general-purpose and application-specific compilers for 2-local Hamiltonian simulations.

Proposed method

  • Exploit the fact that exponentials of non-commuting Hamiltonian terms in product formulas can be reordered without altering computational accuracy.
  • Introduce permutation-aware qubit routing that reorders operators to minimize SWAP gate insertion by aligning qubit movements with favorable gate sequences.
  • Apply permutation-aware gate scheduling to reduce circuit depth by reordering operations to minimize idle time and improve parallelization.
  • Perform permutation-aware gate optimization to merge or reduce redundant two-qubit gates using the flexibility of operator ordering.
  • Integrate with existing compilation tools for low-level transformations, focusing only on high-level, application-aware passes.
  • Support multiple hardware targets (Google Sycamore, IBMQ Montreal, Rigetti Aspen) with different native gate sets and qubit connectivity graphs.

Experimental results

Research questions

  • RQ1Can operator permutation flexibility in 2-local Hamiltonian simulations be exploited at the compilation level to reduce SWAP gate count and circuit depth?
  • RQ2How does permutation-aware compilation compare to general-purpose and existing application-specific compilers in terms of gate count, circuit depth, and fidelity?
  • RQ3To what extent can permutation-aware optimization reduce overhead across diverse quantum hardware architectures with different native gate sets?
  • RQ4Does permutation-aware compilation improve experimental fidelity in real NISQ devices compared to standard compilation flows?
  • RQ5Can the proposed techniques be generalized to other quantum simulation algorithms beyond product formula-based approaches?

Key findings

  • 2QAN reduces the number of inserted SWAP gates by up to 11.5X compared to state-of-the-art general-purpose and application-specific compilers.
  • The compiler reduces hardware gate count overhead by up to 68.5X, significantly lowering error-prone two-qubit gate usage.
  • Circuit depth is reduced by up to 21X, improving resilience to decoherence and noise in NISQ devices.
  • On the IBMQ Montreal device, 2QAN-compiled benchmarks achieved the highest experimental fidelity among all tested compilers.
  • For some applications, 2QAN achieves zero gate overhead, meaning no additional SWAP or optimization gates are needed.
  • The compiler demonstrates consistent performance gains across three distinct quantum hardware platforms with different qubit topologies and native gate sets (CNOT, iSWAP, SYC).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.