Abstract
Simulating large-scale quantum systems on classical hardware is a fundamental challenge in quantum computing research. Matrix Product States (MPS) provide a powerful framework for this task, but sampling from these states becomes computationally prohibitive as system size and entanglement grow. We present FastMPS, a multi-level parallel framework designed to accelerate large-scale MPS sampling. By integrating data and tensor parallelism with adaptive mixed-precision techniques, FastMPS achieves a 10x speedup over existing state-of-the-art simulators, enabling the simulation of systems with over 8,000 sites.
Introduction
Matrix Product States (MPS) are a cornerstone of tensor network methods, allowing for the efficient representation of quantum states by decomposing high-dimensional tensors into a chain of lower-rank tensors. A critical task in quantum simulation is sampling—generating outcomes that mirror physical experiments. However, as quantum systems scale in both the number of sites ($M$) and bond dimension ($\chi$), the sequential nature of MPS sampling creates a significant bottleneck.
Traditional parallelization strategies often struggle with either memory constraints (data parallelism) or excessive communication overhead (model parallelism). FastMPS addresses these limitations by revisiting data parallelism within a multi-level framework optimized for high-performance computing (HPC) environments.
Methodology: The FastMPS Framework
FastMPS introduces three primary innovations to overcome the scaling wall in MPS sampling.
1. Multi-level Parallelism
FastMPS combines data parallelism with tensor parallelism. Samples are distributed across different process groups (data parallel), while within each group, the large tensors are split along the bond dimension $\chi$ (tensor parallel). This hybrid approach maximizes memory locality and balances the computational load against communication costs.
2. Adaptive Mixed Precision and Local Scaling
To mitigate the I/O and memory pressure of multi-gigabyte tensors, FastMPS utilizes FP16 (half-precision) for storage and data transfer. Calculations are performed in TF32 to maintain numerical stability. A key insight is the implementation of a sample-wise scaling factor. Because different samples can vary in magnitude by hundreds of orders of magnitude, a global scaling factor is insufficient. Scaling each sample independently prevents underflow and ensures accuracy across large-scale simulations.
3. GBS-Specific Optimizations
For Gaussian Boson Sampling (GBS), FastMPS exploits structured sparsity in the displacement operator and employs dynamic bond dimensions. By recognizing that entanglement typically peaks in the center of a system and tapers at the edges (the "Area Law"), the framework uses smaller tensors at the boundaries, reducing computational complexity by up to 80%.
Results and Discussion
The framework was evaluated against prominent photonic quantum computing datasets, including Jiuzhang and Borealis. FastMPS demonstrated a 10x speedup compared to previous leading simulators. For the Jiuzhang2 experiment, FastMPS generated 10 million samples in approximately 38.57 minutes using only 8 GPUs, whereas previous methods required 144 GPUs to achieve similar results in 62 minutes.
Furthermore, FastMPS pushed the boundaries of classical simulation by successfully handling a synthetic dataset of 8,176 sites with a bond dimension of $\chi = 10^4$. The framework maintained over 95% scaling efficiency on supercomputing architectures like Tianhe-3 and Sunway.
Conclusion
FastMPS represents a significant leap in the capability of classical computers to simulate large-scale quantum systems. By optimizing I/O through mixed precision and balancing parallel workloads, it provides a scalable path for verifying the results of increasingly complex quantum processors. Future work will explore the adaptation of AI-centric hardware, such as specialized tensor cores, to further enhance scientific tensor network applications.
Summary updated