[Paper Review] mpiQulacs: A Distributed Quantum Computer Simulator for A64FX-based Cluster Systems
This paper presents mpiQulacs, a high-performance distributed quantum circuit simulator optimized for A64FX-based cluster systems, leveraging MPI, vectorization, and fused-swap gates to minimize communication. It achieves nearly ideal weak and strong scaling up to 36 qubits on a 64-node Todoroki cluster, outperforming existing simulators and demonstrating superior efficiency via a new quantum B/F ratio metric.
Quantum computer simulators running on classical computers are essential for developing real quantum computers and emerging quantum applications. In particular, state vector simulators, which store a full state vector in memory and update it in every quantum operation, are available to simulate an arbitrary form of quantum circuits, debug quantum applications, and validate future quantum computers. However, the time and space complexity grows exponentially with the number of qubits and easily exceeds the capability of a single machine. Therefore, we develop a distributed state vector simulator, $mpiQulacs$, that is optimized for large-scale simulation on A64FX-based cluster systems. A64FX is an ARM-based CPU that is also equipped in the world's top Fugaku supercomputer. We evaluate weak and strong scaling of mpiQulacs with up to 36 qubits on a new 64-node A64FX-based cluster system named $Todoroki$. By comparing mpiQulacs with existing distributed state vector simulators, we show that mpiQulacs achieves the highest performance for large-scale simulation on tens of nodes while sustaining a nearly ideal scalability. Besides, we define a new metric, $quantum B/F ratio$, and use it to demonstrate that mpiQulacs running on Todoroki fits the requirements of distributed state vector simulation rather than the existing simulators running on general purpose CPU-based or GPU-based cluster systems.
Motivation & Objective
- Address the exponential memory and computational demands of large-scale quantum circuit simulation on classical systems.
- Overcome limitations of single-node simulators and general-purpose CPU/GPU clusters for state vector simulation.
- Optimize a distributed quantum simulator for the high-bandwidth A64FX architecture used in Fugaku and other high-performance systems.
- Enable efficient, scalable simulation of up to 36-qubit circuits on tens of nodes using minimal inter-node communication.
- Introduce and validate a new performance metric, quantum B/F ratio (QBF), to evaluate suitability of cluster systems for distributed state vector simulation.
Proposed method
- Extend the single-node Qulacs simulator with MPI to enable distributed simulation across multiple A64FX-based nodes.
- Implement vectorized kernels specifically tuned for the A64FX CPU’s SIMD units and high-bandwidth HBM2 memory.
- Introduce a fused-swap gate operation to reduce MPI communication volume during distributed state vector updates.
- Construct a 64-node A64FX-based cluster system named Todoroki for evaluation and benchmarking.
- Define and compute the quantum B/F ratio (QBF) as total FLOPS divided by execution time, to assess system efficiency in distributed simulation.
Experimental results
Research questions
- RQ1Can a distributed state vector simulator achieve nearly ideal weak and strong scaling on a modern A64FX-based cluster system?
- RQ2How does mpiQulacs perform in comparison to existing distributed simulators (Intel-QS, QuEST, Qiskit Aer) on equivalent hardware?
- RQ3To what extent does mpiQulacs exploit the high memory bandwidth of the A64FX CPU compared to non-optimized implementations?
- RQ4Does the quantum B/F ratio (QBF) metric effectively distinguish between systems that are well-suited for large-scale state vector simulation?
- RQ5Can mpiQulacs sustain high performance and scalability on larger-scale A64FX clusters, such as a 1024-node system?
Key findings
- mpiQulacs achieves nearly ideal weak and strong scaling for up to 36 qubits on the 64-node Todoroki cluster, outperforming Intel-QS, QuEST, and Qiskit Aer in multi-node scenarios.
- On a single A64FX CPU, mpiQulacs achieves over 80% of the theoretical HBM2 memory bandwidth peak, reducing execution time by 69% compared to Intel-QS on Xeon CPUs.
- The fused-swap gate optimization significantly reduces MPI communication, contributing to high scalability and performance.
- The quantum B/F ratio (QBF) evaluation shows mpiQulacs on Todoroki has a much higher efficiency than GPU-based Qiskit Aer and CPU-based simulators, indicating better suitability for large-scale distributed simulation.
- mpiQulacs demonstrates superior performance on multi-node simulations, especially when inter-node communication is required, outperforming Qiskit Aer beyond 8 GPUs.
- The system is expected to scale to 40-qubit simulations on a planned 1024-node A64FX cluster, with further improvements in scalability and energy efficiency.
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.