TANQ-Sim: Tensorcore Accelerated Noisy Quantum System Simulation via QIR on Perlmutter HPC

Ang Li, Chenxu Liu, Samuel Alexander Stein, In-Saeng Suh, Muqing Zheng, Meng Wang, Yue Shi, Bo Fang, Martin Roetteler, Travis S. HumblearXiv 2024 · DOI

Introduction

We are currently in the "Noisy Intermediate-Scale Quantum" (NISQ) era, where real-world quantum computers are prone to errors from environmental decoherence and imperfect gate operations. To develop resilient algorithms, researchers must simulate these noisy environments on classical supercomputers. However, there is a massive "computational tax" for simulating noise: while ideal "state-vector" simulations scale at $2^n$, "density matrix" simulations required for noise scale at $4^n$. This exponential growth means simulating just 27 qubits would require 256 petabytes of memory, making high-performance acceleration essential.

A 3-qubit GHZ state circuit and its output distributions across various noisy quantum backends compared to an ideal simulation, illustrating the impact of hardware noise.

Methodology

The authors introduce TANQ-Sim, a high-performance simulator that leverages several novel strategies to break through these bottlenecks:

  1. Tensor Core Acceleration: TANQ-Sim repurposes the Double-Precision Tensor Cores (DPTCs) found in NVIDIA Ampere and Hopper GPUs. By mapping 2-qubit gate operations directly onto these hardware accelerators, the simulator achieves unprecedented speed for the dense matrix math required by noise models.
  2. Gate Fusion: To maximize efficiency, consecutive quantum gates are merged into single operations, reducing circuit depth and improving arithmetic intensity.
  3. GPU-Side Communication (NVSHMEM): By using NVSHMEM, GPUs communicate directly within a unified memory space, significantly reducing synchronization overhead compared to traditional CPU-managed transfers.
  4. QIR Integration: The simulator supports the Quantum Intermediate Representation (QIR), allowing it to execute programs from various frameworks like Qiskit, Q#, or OpenQASM.

Performance and Key Results

The researchers evaluated TANQ-Sim on the Perlmutter supercomputer using the QASMBench suite and custom large-scale circuits.

  • Massive Scalability: The simulator demonstrated strong scaling across up to 4,096 GPUs (1,024 nodes). A 21-qubit noisy simulation was successfully performed, requiring 128 TB of memory.
  • Hardware Leap: TANQ-Sim on NVIDIA H100 GPUs is 2.12x faster on average than on A100 GPUs, nearing theoretical hardware limits.
  • Superior Performance: TANQ-Sim significantly outperformed existing state-of-the-art simulators like Qiskit-Aer and DM-Sim as qubit counts increased.
  • Practical Utility: The platform successfully modeled complex phenomena like quantum teleportation and entanglement distillation under realistic noise conditions, proving its value for actual quantum physics research.

Discussion and Future Work

A key insight of this work is that DPTCs are not just for AI; they represent a game-changer for high-precision scientific simulations. While ideal simulations can exploit matrix sparsity, noise makes these matrices dense, playing directly to the strengths of Tensor Cores.

Despite these optimizations, the $4^n$ scaling remains an inescapable challenge for simulating 30+ qubits. Future work will explore "mixed-precision" techniques—using lower precision for non-critical calculations—to save memory and time without sacrificing result integrity. Additionally, the team aims to expand support for more complex, non-Markovian noise types.

Summary updated

BibTeX
@misc{li2024tanq,
  author = {Ang Li and Chenxu Liu and Samuel Alexander Stein and In-Saeng Suh and Muqing Zheng and Meng Wang and Yue Shi and Bo Fang and Martin Roetteler and Travis S. Humble},
  title = {{TANQ-Sim: Tensorcore Accelerated Noisy Quantum System Simulation via QIR on Perlmutter HPC}},
  year = {2024},
  eprint = {2404.13184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.13184},
}
Figure