State of practice: evaluating GPU performance of state vector and tensor network methods

Marzio Vallero, Flavio Vella, Paolo Rech · DOI

Abstract

The frontier of quantum computing (QC) simulation on classical hardware is quickly reaching the hard scalability limits for computational feasibility. Nonetheless, there is still a need to simulate large quantum systems classically, as the Noisy Intermediate Scale Quantum (NISQ) devices are yet to be considered fault tolerant and performant enough in terms of operations per second. Each of the two main exact simulation techniques, state vector and tensor network simulators, boasts specific limitations. The exponential memory requirement of state vector simulation, when compared to the qubit register sizes of currently available quantum computers, quickly saturates the capacity of the top HPC machines currently available. Tensor network contraction approaches, which encode quantum circuits into tensor networks and then contract them over an output bit string to obtain its probability amplitude, still fall short of the inherent complexity of finding an optimal contraction path, which maps to a max-cut problem on a dense mesh, a notably NP-hard problem. This article aims at investigating the limits of current state-of-the-art simulation techniques on a test bench made of eight widely used quantum subroutines, each in 31 different configurations, with special emphasis on performance. We then correlate the performance measures of the simulators with the metrics that characterise the benchmark circuits, identifying the main reasons behind the observed performance trend. From our observations, given the structure of a quantum circuit and the number of qubits, we highlight how to select the best simulation strategy, obtaining a speedup of up to an order of magnitude.

Introduction: The Classical Simulation Frontier

As we transition into the era of Noisy Intermediate-Scale Quantum (NISQ) devices, classical simulation remains the "gold standard" for verifying quantum algorithms and performing "noise-checks" on real hardware. However, classical simulation is a computational nightmare that hits two distinct "walls": the Memory Wall for State Vector (SV) methods and the Complexity Wall for Tensor Network (TN) methods.

Simulation serves as a benchmark for noisy hardware; here, ideal distributions (left) are compared against noisy results (right).

SV simulation tracks every possible state of the system, requiring memory that grows exponentially ($2^N$). Even state-of-the-art GPUs reach their capacity around 30–35 qubits. TN methods, conversely, represent circuits as graphs and "contract" them. While memory-efficient, finding an optimal contraction path is an NP-hard problem, often leading to simulation bottlenecks. This paper provides a rigorous performance map for GPU-accelerated simulation, demonstrating how analyzing a circuit's "topological DNA" allows researchers to choose the optimal strategy.

Methodology and Benchmarking

The researchers utilized CINECA’s Leonardo supercomputer, leveraging NVIDIA Ampere A100 GPUs (64GB) and the cuQuantum library. Three backends were tested: qsim-cusv (SV), qsim-cuda (CuPy-based SV), and cutn (TN).

The simulation pipeline: from quantum circuit (left) to tensor network representation (middle) to state vector amplitude calculation (right).

The study evaluated eight widely used quantum subroutines (QAOA, VQE, QFT, QPE, etc.) scaled from 2 to 32 qubits. Performance was correlated with topological metrics from the SupermarQ and QASMBench suites, including Program Communication (qubit interconnectivity), Entanglement Ratio (two-qubit vs. single-qubit gates), and Critical Depth.

Key Insights: The Cache Cliff and Topological DNA

A primary finding is the "Cache Cliff." SV performance is not a smooth exponential curve; sharp drops occur at 13 qubits (exceeding L1 cache) and 22 qubits (exceeding L2 cache). Furthermore, a circuit's "Program Communication" score proved to be a better predictor of simulation success than simple gate count. High communication scores, typical in algorithms like QFT, cause TN methods to struggle unless they are heavily distributed.

In distributed TN contraction, the authors observed superlinear speedups—such as a 364x speedup on 16 GPUs for QPE. This occurs because "slicing" the network into smaller pieces for different GPUs can drastically reduce the total floating-point operations (FLOPs) required. For "unbounded" problems like QFT, investing more time in CPU-based pathfinding significantly reduces total simulation time, whereas for "contract-bound" problems like VQE, extra pathfinding is inefficient.

Results and Performance Optimization

  • SV Dominance at Small Scale: For circuits under 14 qubits, the qsim-cuda SV simulator is consistently the fastest due to efficient cache usage.
  • TN Advantages in Structure: TN methods (cutn) outperform SV on circuits with low entanglement ratios (< 0.5) and well-distributed entanglement, such as VQE and Hamiltonian simulations.
  • Order-of-Magnitude Speedups: By using preventive circuit analysis to select the optimal backend, the authors demonstrated speedups of over 10x on a single GPU.
  • Distributed Power: Scaling to 256 GPUs allowed the simulation of complex 32-qubit circuits in milliseconds, whereas a single GPU might take seconds or minutes.

Conclusion and Future Directions

While current simulations are capped at 32 qubits due to single-GPU memory limits, this work establishes a clear "playbook" for classical verification. The authors identify pathfinding as a remaining bottleneck, suggesting that GPU-accelerated pathfinding and multi-GPU state vector distribution are the next logical steps for the field.

Summary updated

BibTeX
@article{vallero2026state,
  author = {Marzio Vallero and Flavio Vella and Paolo Rech},
  title = {{State of practice: evaluating GPU performance of state vector and tensor network methods}},
  journal = {Future Generation Computer Systems},
  year = {2026},
  doi = {10.1016/j.future.2025.107927},
}
Figure