[Paper Review] qHiPSTER: The Quantum High Performance Software Testing Environment
qHiPSTER is a distributed high-performance quantum circuit simulator on classical HPC systems, enabling simulation of up to 40 qubits with single- and two-qubit gates across 1000 nodes on Stampede, and it analyzes memory/network-bound performance, optimizations, and scalability.
We present qHiPSTER, the Quantum High Performance Software Testing Environment. qHiPSTER is a distributed high-performance implementation of a quantum simulator on a classical computer, that can simulate general single-qubit gates and two-qubit controlled gates. We perform a number of single- and multi-node optimizations, including vectorization, multi-threading, cache blocking, as well as overlapping computation with communication. Using the TACC Stampede supercomputer, we simulate quantum circuits ("quantum software") of up to 40 qubits. We carry out a detailed performance analysis to show that our simulator achieves both high performance and high hardware efficiency, limited only by the sustainable memory and network bandwidth of the machine.
Motivation & Objective
- Motivate high-precision quantum circuit simulation on HPC systems to study algorithm performance, error, and noise impacts.
- Develop a distributed simulator capable of general single-qubit and two-qubit controlled gates on up to ~40 qubits.
- Evaluate performance and hardware efficiency on large-scale HPC hardware, focusing on memory bandwidth, network bandwidth, and communication-compute overlap.
- Investigate architectural and algorithmic optimizations to push the limits of distributed quantum state simulation.
Proposed method
- Implement a distributed state-vector simulator that partitions a 2^n amplitude vector across 2^p nodes, with m = n - p local amplitudes per node.
- Apply general single-qubit gates by updating amplitude pairs with a 2x2 unitary Q directly on the state vector (and similarly for two-qubit controlled gates).
- Use a communication scheme where pairs of processors exchange halves of their local state to enable inter-node gate application, with four cases for controlled gates depending on whether control/target qubits lie above or below local memory boundary m.
- Introduce vectorization (AVX2) and complex-SIMD arithmetic to accelerate inner loops, and employ multi-threading to parallelize outer/inner loops.
- Develop cache-blocking and gate-fusion strategies to keep blocks of the state vector in LLC and increase effective memory bandwidth.
- Overcome memory- and network-bound limits by multi-step communication to overlap computation with data exchange and by experimenting with gate fusion and LLC-resident blocks.
Experimental results
Research questions
- RQ1What is the performance (time per gate) of single- and two-qubit operations on a large-scale distributed quantum-state simulator?
- RQ2How close can a high-performance simulator approach memory- and network-bound theoretical limits on HPC hardware?
- RQ3Which architectural/algorithmic optimizations (vectorization, threading, cache-blocking, gate fusion, multi-step communication) yield the largest performance gains for large qubit counts?
- RQ4How does distributed gate application scale across hundreds to thousands of nodes for up to 40 qubits?
- RQ5What is the performance of the Quantum Fourier Transform (QFT) kernel in this framework?
Key findings
- The simulator can handle up to 40 qubits on 1000 Stampede nodes with 32 TB total memory, achieving gate performances that are memory-bound or network-bound depending on qubit placement and communication.
- Single-qubit gates on qubits with k < m are memory bound with times around 0.43 s for m=29 (n=29), while those with k ≥ m become network-bound around 3.12 s under the given hardware.
- Two-qubit gates show similar memory-bound (0.21 s) or network-bound (≈3.12 s) characteristics depending on m, c, and whether inter-node communication is required.
- Gate fusion and LLC-aware cache blocking can boost effective memory bandwidth well above baseline STREAM rates, attaining up to ~100 GB/s in fused IQFT scenarios on certain qubit counts.
- Multi-node strong scaling shows near-linear speedups at moderate node counts when communication is not needed, and substantial slowdowns when inter-node communication becomes a bottleneck; at large scales, LLC residency and network contention shape performance.
- QFT performance scales from ~0.27 s per gate at 29 qubits to ~1.22 s per gate at 40 qubits, highlighting the increasing impact of communication in larger circuits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.