Skip to main content

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 figure

Original figure · MindSpore Quantum white paper

Log-scale line chart comparing CPU simulation time of a random circuit for MindQuantum (FP64 and FP32), Qulacs, PyQpanda, ProjectQ, PennyLane, Intel-QS, and TensorFlow Quantum, from 4 to 27 qubits. Enlarge figure

Fig. 1a — CPU backend

Original figure · MindSpore Quantum white paper · CPU · 16 threads, SIMD

Log-scale line chart comparing CPU simulation time of a random circuit for MindQuantum (FP64 and FP32), Qulacs, PyQpanda, ProjectQ, PennyLane, Intel-QS, and TensorFlow Quantum, from 4 to 27 qubits.

When zoomed, scroll or swipe to inspect the figure. Keyboard: focus the figure and use the arrow keys.

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 figure

Original figure · MindSpore Quantum white paper

Log-scale line chart comparing GPU simulation time of a random circuit for MindQuantum (FP64 and FP32), Qulacs, PennyLane, and TensorFlow Quantum, from 4 to 27 qubits on a single NVIDIA V100. Enlarge figure

Fig. 1b — GPU backend

Original figure · MindSpore Quantum white paper · GPU · NVIDIA V100

Log-scale line chart comparing GPU simulation time of a random circuit for MindQuantum (FP64 and FP32), Qulacs, PennyLane, and TensorFlow Quantum, from 4 to 27 qubits on a single NVIDIA V100.

When zoomed, scroll or swipe to inspect the figure. Keyboard: focus the figure and use the arrow keys.

MindQuantum and Qulacs have been optimized to near the limit of the low-level implementation.

MindSpore Quantum white paper · arXiv:2406.17248

02 / 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 figure

Original figure · MindSpore Quantum white paper

Log-scale line chart comparing CPU end-to-end QAOA time for MindQuantum (FP64 and FP32), Qulacs, TensorCircuit (FP64 and FP32), TensorFlow Quantum, PennyLane, and PyQpanda, from 5 to 23 qubits. Enlarge figure

Fig. 2a — CPU backend

Original figure · MindSpore Quantum white paper · CPU · 16 threads, SIMD

Log-scale line chart comparing CPU end-to-end QAOA time for MindQuantum (FP64 and FP32), Qulacs, TensorCircuit (FP64 and FP32), TensorFlow Quantum, PennyLane, and PyQpanda, from 5 to 23 qubits.

When zoomed, scroll or swipe to inspect the figure. Keyboard: focus the figure and use the arrow keys.

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 figure

Original figure · MindSpore Quantum white paper

Log-scale line chart comparing GPU end-to-end QAOA time for MindQuantum (FP64 and FP32), TensorFlow Quantum, and PennyLane, from 5 to 23 qubits on a single NVIDIA V100. Enlarge figure

Fig. 2b — GPU backend

Original figure · MindSpore Quantum white paper · GPU · NVIDIA V100

Log-scale line chart comparing GPU end-to-end QAOA time for MindQuantum (FP64 and FP32), TensorFlow Quantum, and PennyLane, from 5 to 23 qubits on a single NVIDIA V100.

When zoomed, scroll or swipe to inspect the figure. Keyboard: focus the figure and use the arrow keys.

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.17248

Reproduce 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.