Achieving Energetic Superiority Through System-Level Quantum Circuit Simulation

Rong Fu, Zhongling Su, Han-Sen Zhong, Xiti Zhao, Jianyang Zhang, Feng Pan, Pan Zhang, Xianhe Zhao, Ming-Cheng Chen, Chao-Yang Lu, Jian-Wei Pan, Zhiling Pei, Xingcheng Zhang, Wanli OuyangarXiv 2024 · DOI

TL;DR

This paper presents a novel system-level approach to simulating large-scale quantum circuits using tensor networks on a massive GPU cluster. By optimizing across global, node, and device levels, they achieve unprecedented scalability and significantly outperform Google's Sycamore processor in both speed and energy efficiency for random quantum circuit sampling.

What Problem Does This Paper Address?

The quest for "quantum supremacy" or "quantum advantage" hinges on demonstrating that quantum computers can solve problems intractable for even the most powerful classical supercomputers. Google's 2019 claim with its Sycamore processor, which sampled random quantum circuits, was a landmark. However, subsequent research has focused on classical simulation techniques to challenge this claim, particularly by addressing issues like sample correlations. The core challenge for classical simulation is the exponential growth in computational cost (both time and memory) with the number of qubits. While tensor networks offer a promising avenue, scaling them to handle the massive memory requirements of simulating large quantum circuits (tens of terabytes) and efficiently distributing these computations across thousands of GPUs, while minimizing inter-node communication overhead and energy consumption, remains a significant hurdle.

Methods

The authors introduce a multi-faceted system-level approach to tackle these challenges:

  • Three-Level Parallelization Scheme: This is the cornerstone of their system. It breaks down the computational task into three hierarchical levels:
  • Global Level: The overall tensor network is partitioned into independent sub-networks.
  • Multi-Node Level: Each sub-network is distributed across multiple interconnected nodes (each containing multiple GPUs) via InfiniBand.
  • Device Level: Within each node, data is further segmented to fit individual GPUs, connected by high-bandwidth NVLink.
  • Hybrid Communication Algorithm: This algorithm intelligently balances intra-node (NVLink) and inter-node (InfiniBand) communication. It leverages the higher bandwidth of NVLink and minimizes the impact of slower InfiniBand by strategically determining how to partition and transfer data based on storage levels.
  • Customized Low-Precision Communication: To drastically reduce data volume for inter-node communication (a major bottleneck), they employ low-precision quantization (specifically int4 with group-wise quantization) for communication. This significantly cuts down data size with minimal fidelity loss.
  • Expanding Einsum Paradigm for Complex-Half Precision: They extend the einsum paradigm to support complex-half precision calculations. This reduces memory requirements by half and leverages specialized FP16 tensor cores on GPUs.
  • Optimization for Special Cases:
    • Recomputation: For specific tensor network structures (like the 4T network), they use recomputation to reduce the number of nodes required for sub-tasks.
  • Tensor Contraction during Sparse State: They handle sparse states by dividing large tensors into smaller chunks that fit into GPU memory, processing them iteratively.

Datasets

The paper evaluates its methods on simulating random quantum circuits (RQCs), specifically targeting the scale and complexity of Google's Sycamore experiment. They simulate two large-scale tensor networks: a 4T (terabyte) and a 32T (terabyte) network. The goal is to generate uncorrelated samples with a target Cross-Entropy Benchmark (XEB) fidelity of 0.002.

Key Insights and Ideas

  • System-Level Optimization is Crucial: The paper strongly emphasizes that achieving superior performance in large-scale simulations requires a holistic approach, optimizing not just algorithms but also communication strategies and hardware utilization across multiple levels.
  • Inter-Node Communication is the Bottleneck: The research clearly identifies inter-node communication as the primary performance and energy bottleneck in distributed tensor network simulations.
  • Low-Precision Quantization for Communication Pays Off: While intra-node quantization can be detrimental, applying low-precision quantization (specifically int4) to inter-node communication offers substantial gains in speed and energy efficiency with acceptable fidelity loss.
  • Complex-Half Precision is a Game Changer: Extending einsum to complex-half precision unlocks significant memory savings and allows for better utilization of modern GPU hardware.
  • Post-Selection is Key for Efficiency: Using post-selection (or post-processing) dramatically reduces the computational effort required to achieve a target XEB value, making simulations much faster and more energy-efficient.

Key Results

The authors report remarkable achievements:

  • Time-to-Solution:
    • Without post-processing: 14.22 seconds (2.39 kWh, 0.002 fidelity) for a 32T tensor network.
  • With post-processing: 17.18 seconds (0.29 kWh, 0.002 XEB) for a 32T tensor network.
  • Energy Efficiency: Their best result (17.18 seconds, 0.29 kWh) represents a one-order-of-magnitude reduction in both time and energy consumption compared to Google's Sycamore processor (600 seconds, 4.3 kWh).
  • Scalability: They demonstrate strong scalability using up to 2304 A100 GPUs.
  • Peak Performance: Achieved a peak computing power of 561 PFLOPS (half-precision).

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while fidelity is maintained at a high level, there is a slight loss in fidelity when using low-precision quantization (e.g., int4(128) results in a 6.55% loss in relative fidelity for inter-node communication).
  • The focus is on random quantum circuit sampling.
  • Future Work: The authors suggest that their techniques for large-scale tensor network simulations can be extended beyond RQC sampling to diverse fields like quantum computing simulators, condensed matter physics, and combinatorial optimization. They aim to empower the scalability of problem models and facilitate the resolution of realistic challenges in these areas.

Summary updated

BibTeX
@misc{fu2024achieving,
  author = {Rong Fu and Zhongling Su and Han-Sen Zhong and Xiti Zhao and Jianyang Zhang and Feng Pan and Pan Zhang and Xianhe Zhao and Ming-Cheng Chen and Chao-Yang Lu and Jian-Wei Pan and Zhiling Pei and Xingcheng Zhang and Wanli Ouyang},
  title = {{Achieving Energetic Superiority Through System-Level Quantum Circuit Simulation}},
  year = {2024},
  eprint = {2407.00769},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.00769},
}
Figure