Performance benchmark · v0.9.0
MindQuantum against eight other quantum frameworks.
Published results for random circuit simulation and end-to-end QAOA on CPU and a single NVIDIA V100. Compare the original figures from the MindSpore Quantum white paper, with hardware and precision noted below.
Method
Hardware
Intel Xeon E5-2620 v3 @ 2.40 GHz
16 threads, SIMD enabled. NVIDIA V100 for the GPU runs.
Test harness
pytest-benchmark
End-to-end wall-clock time over repeated iterations, as reported in the white paper.
Numerical precision
FP64 and FP32
MindQuantum is shown at both precisions. TensorFlow Quantum is single precision (FP32); compare like-for-like where available.
Nine frameworks, one rig.
Versions used in the published benchmark, not current releases. CPU runs use the same thread configuration and circuit definitions.
- MindQuantum 0.9.0
- Qiskit 0.45.0
- ProjectQ 0.8.0
- PennyLane 0.33.0
- PyQpanda 3.8.0
- Qulacs 0.6.2
- TensorFlow Quantum 0.7.2
- Intel-QS 2.0.0-beta
- cuQuantum 23.10.0
01 / Raw simulation speed
Random circuit evolution, 4 to 27 qubits.
Each framework simulates the same random circuit built from X, Y, Z, H, CNOT, S, T, RX, RY, RZ, Rxx, Ryy, Rzz, SWAP, and their controlled variants. Qubit count scales from 4 to 27, timed with pytest-benchmark.
Reading the figures: time in seconds, logarithmic scale. Lower is faster; each major step is ×10.
MindQuantum: solid red = FP64; dashed red = FP32. Original legends and all comparison curves are preserved.
Fig. 1a — CPU backend
CPU · 16 threads, SIMD
MindQuantum and Qulacs lead at every qubit count. The dip at 13 qubits is the threshold where MindQuantum switches on OpenMP multi-threading; below it the single-threaded path is faster.
Enlarge figureOriginal figure · MindSpore Quantum white paper
Enlarge figure Fig. 1b — GPU backend
GPU · NVIDIA V100
On a single V100, MindQuantum keeps its lead through 27 qubits. TensorFlow Quantum scales more aggressively at the high end, but the comparison is single precision against double.
Enlarge figureOriginal figure · MindSpore Quantum white paper
Enlarge figure MindQuantum and Qulacs have been optimized to near the limit of the low-level implementation.
MindSpore Quantum white paper · arXiv:2406.1724802 / End-to-end optimization
QAOA solving max-cut on 4-regular graphs.
End-to-end timing of a real variational workload: build the QAOA ansatz from a one-step Trotter decomposition, then drive it through scipy.optimize.minimize with BFGS until convergence. Problem size ranges from 5 to 23 nodes. Each framework runs until its own time budget is exhausted, which is why the curves end at different qubit counts.
Reading the figures: time in seconds, logarithmic scale. Lower is faster; each major step is ×10.
MindQuantum: solid red = FP64; dashed red = FP32. Original legends and all comparison curves are preserved.
Fig. 2a — CPU backend
CPU · 16 threads, SIMD
MindQuantum stays at least an order of magnitude ahead through the entire qubit range. Frameworks without an efficient adjoint method fall behind early.
Enlarge figureOriginal figure · MindSpore Quantum white paper
Enlarge figure Fig. 2b — GPU backend
GPU · NVIDIA V100
On the V100, the gap widens further. PennyLane drops out at 14 qubits, TensorFlow Quantum at 19; MindQuantum reaches 23.
Enlarge figureOriginal figure · MindSpore Quantum white paper
Enlarge figure MindQuantum is at least one order of magnitude faster than other frameworks, mainly due to its optimized adjoint method for gradient computation and efficient circuit evolution.
MindSpore Quantum white paper · arXiv:2406.17248Reproduce these benchmarks.
Every framework, circuit, and harness used here is open source. The text and figures on this page are drawn from the MindSpore Quantum white paper; the runner scripts live next to the paper in the public repository.