PennyLane Lightning vs Qulacs

The same circuits, one host

PennyLane Lightning and Qulacs both finished 166 of the 175 workloads measured here. PennyLane Lightning was faster in 71 of them and Qulacs in 95. At the median Qulacs was 2.6× faster.

By circuit family

Who was faster where

Circuit familyWorkloads both finishedPennyLane Lightning faster inQulacs faster inFaster at the median
Workloads both finished
16
PennyLane Lightning faster in
7
Qulacs faster in
9
Faster at the median
Qulacs 2.4×
Workloads both finished
24
PennyLane Lightning faster in
11
Qulacs faster in
13
Faster at the median
Qulacs 3.8×
Workloads both finished
27
PennyLane Lightning faster in
12
Qulacs faster in
15
Faster at the median
Qulacs 3.2×
Workloads both finished
16
PennyLane Lightning faster in
7
Qulacs faster in
9
Faster at the median
Qulacs 3.7×
Workloads both finished
24
PennyLane Lightning faster in
11
Qulacs faster in
13
Faster at the median
Qulacs 3.1×
Workloads both finished
12
PennyLane Lightning faster in
4
Qulacs faster in
8
Faster at the median
Qulacs 2.4×
Workloads both finished
19
PennyLane Lightning faster in
8
Qulacs faster in
11
Faster at the median
Qulacs 2.8×
Workloads both finished
16
PennyLane Lightning faster in
7
Qulacs faster in
9
Faster at the median
Qulacs 2.2×
Workloads both finished
12
PennyLane Lightning faster in
4
Qulacs faster in
8
Faster at the median
Qulacs 1.3×

Local circuit dynamics

Brickwork nearest-neighbour layers: lattice models, quench dynamics

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
1.48 ms
Qulacs
32.1 µs
Faster
Qulacs 46.0×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
2.18 ms
Qulacs
73.1 µs
Faster
Qulacs 29.8×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
2.88 ms
Qulacs
585 µs
Faster
Qulacs 4.9×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
5.58 ms
Qulacs
10.7 ms
Faster
PennyLane Lightning 1.9×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
66.6 ms
Qulacs
206 ms
Faster
PennyLane Lightning 3.1×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
2.46 s
Qulacs
4.76 s
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
1.70 ms
Qulacs
42.5 µs
Faster
Qulacs 40.0×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
2.50 ms
Qulacs
119 µs
Faster
Qulacs 21.0×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
3.49 ms
Qulacs
1.38 ms
Faster
Qulacs 2.5×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
9.80 ms
Qulacs
26.2 ms
Faster
PennyLane Lightning 2.7×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
177 ms
Qulacs
535 ms
Faster
PennyLane Lightning 3.0×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
8.20 s
Qulacs
10.7 s
Faster
PennyLane Lightning 1.3×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
3.25 ms
Qulacs
117 µs
Faster
Qulacs 27.7×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
4.77 ms
Qulacs
307 µs
Faster
Qulacs 15.5×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
6.94 ms
Qulacs
3.00 ms
Faster
Qulacs 2.3×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
27.7 ms
Qulacs
59.6 ms
Faster
PennyLane Lightning 2.2×

Hamiltonian time evolution

Trotterised spin chain: ZZ + XX couplings with local fields

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
4.43 ms
Qulacs
104 µs
Faster
Qulacs 42.5×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
9.09 ms
Qulacs
276 µs
Faster
Qulacs 33.0×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
14.5 ms
Qulacs
1.85 ms
Faster
Qulacs 7.8×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
32.9 ms
Qulacs
34.0 ms
Faster
PennyLane Lightning 1.0×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
444 ms
Qulacs
711 ms
Faster
PennyLane Lightning 1.6×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
16.1 s
Qulacs
21.1 s
Faster
PennyLane Lightning 1.3×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
4.63 ms
Qulacs
113 µs
Faster
Qulacs 41.1×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
9.47 ms
Qulacs
321 µs
Faster
Qulacs 29.6×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
14.9 ms
Qulacs
2.51 ms
Faster
Qulacs 5.9×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
37.6 ms
Qulacs
48.2 ms
Faster
PennyLane Lightning 1.3×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
563 ms
Qulacs
1.02 s
Faster
PennyLane Lightning 1.8×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
21.9 s
Qulacs
26.9 s
Faster
PennyLane Lightning 1.2×
Expectation value, global observable (pauli_mix), depth 3
Qubits
8
PennyLane Lightning
9.63 ms
Qulacs
349 µs
Faster
Qulacs 27.6×
Expectation value, global observable (pauli_mix), depth 3
Qubits
12
PennyLane Lightning
15.2 ms
Qulacs
3.17 ms
Faster
Qulacs 4.8×
Expectation value, global observable (pauli_mix), depth 3
Qubits
16
PennyLane Lightning
45.6 ms
Qulacs
61.5 ms
Faster
PennyLane Lightning 1.3×
Expectation value, global observable (pauli_mix), depth 3
Qubits
20
PennyLane Lightning
795 ms
Qulacs
1.28 s
Faster
PennyLane Lightning 1.6×
Expectation value, global observable (zz_sum), depth 3
Qubits
8
PennyLane Lightning
9.40 ms
Qulacs
305 µs
Faster
Qulacs 30.8×
Expectation value, global observable (zz_sum), depth 3
Qubits
12
PennyLane Lightning
14.8 ms
Qulacs
2.50 ms
Faster
Qulacs 5.9×
Expectation value, global observable (zz_sum), depth 3
Qubits
16
PennyLane Lightning
38.4 ms
Qulacs
48.1 ms
Faster
PennyLane Lightning 1.3×
Expectation value, global observable (zz_sum), depth 3
Qubits
20
PennyLane Lightning
588 ms
Qulacs
1.01 s
Faster
PennyLane Lightning 1.7×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
8.08 ms
Qulacs
424 µs
Faster
Qulacs 19.1×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
15.9 ms
Qulacs
1.17 ms
Faster
Qulacs 13.5×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
26.4 ms
Qulacs
9.19 ms
Faster
Qulacs 2.9×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
116 ms
Qulacs
181 ms
Faster
PennyLane Lightning 1.6×

MaxCut on a ring

QAOA over a cycle graph

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
2.84 ms
Qulacs
63.1 µs
Faster
Qulacs 44.9×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
4.94 ms
Qulacs
154 µs
Faster
Qulacs 32.1×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
6.97 ms
Qulacs
1.14 ms
Faster
Qulacs 6.1×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
14.2 ms
Qulacs
20.9 ms
Faster
PennyLane Lightning 1.5×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
176 ms
Qulacs
433 ms
Faster
PennyLane Lightning 2.5×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
6.43 s
Qulacs
10.6 s
Faster
PennyLane Lightning 1.7×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
3.02 ms
Qulacs
72.0 µs
Faster
Qulacs 41.9×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
5.23 ms
Qulacs
197 µs
Faster
Qulacs 26.6×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
7.65 ms
Qulacs
1.91 ms
Faster
Qulacs 4.0×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
18.2 ms
Qulacs
36.9 ms
Faster
PennyLane Lightning 2.0×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
285 ms
Qulacs
740 ms
Faster
PennyLane Lightning 2.6×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
12.2 s
Qulacs
16.6 s
Faster
PennyLane Lightning 1.4×
Expectation value, global observable (pauli_mix), depth 3
Qubits
8
PennyLane Lightning
5.59 ms
Qulacs
234 µs
Faster
Qulacs 23.9×
Expectation value, global observable (pauli_mix), depth 3
Qubits
12
PennyLane Lightning
8.47 ms
Qulacs
2.61 ms
Faster
Qulacs 3.2×
Expectation value, global observable (pauli_mix), depth 3
Qubits
16
PennyLane Lightning
27.1 ms
Qulacs
52.1 ms
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (pauli_mix), depth 3
Qubits
20
PennyLane Lightning
543 ms
Qulacs
1.03 s
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (zz_sum), depth 3
Qubits
8
PennyLane Lightning
5.43 ms
Qulacs
191 µs
Faster
Qulacs 28.5×
Expectation value, global observable (zz_sum), depth 3
Qubits
12
PennyLane Lightning
7.92 ms
Qulacs
1.95 ms
Faster
Qulacs 4.1×
Expectation value, global observable (zz_sum), depth 3
Qubits
16
PennyLane Lightning
20.6 ms
Qulacs
38.6 ms
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (zz_sum), depth 3
Qubits
20
PennyLane Lightning
332 ms
Qulacs
762 ms
Faster
PennyLane Lightning 2.3×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
5.73 ms
Qulacs
255 µs
Faster
Qulacs 22.5×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
9.69 ms
Qulacs
681 µs
Faster
Qulacs 14.2×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
14.9 ms
Qulacs
6.05 ms
Faster
Qulacs 2.5×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
61.5 ms
Qulacs
120 ms
Faster
PennyLane Lightning 2.0×
Statevector, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
7.03 ms
Qulacs
155 µs
Faster
Qulacs 45.3×
Statevector, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
9.39 ms
Qulacs
1.13 ms
Faster
Qulacs 8.3×
Statevector, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
17.3 ms
Qulacs
21.0 ms
Faster
PennyLane Lightning 1.2×

MaxCut, arbitrary graph

QAOA over a random-edge graph

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
3.28 ms
Qulacs
71.4 µs
Faster
Qulacs 45.9×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
6.53 ms
Qulacs
188 µs
Faster
Qulacs 34.8×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
10.8 ms
Qulacs
1.51 ms
Faster
Qulacs 7.1×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
18.6 ms
Qulacs
25.8 ms
Faster
PennyLane Lightning 1.4×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
258 ms
Qulacs
588 ms
Faster
PennyLane Lightning 2.3×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
9.47 s
Qulacs
16.1 s
Faster
PennyLane Lightning 1.7×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
3.46 ms
Qulacs
81.0 µs
Faster
Qulacs 42.7×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
6.83 ms
Qulacs
239 µs
Faster
Qulacs 28.5×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
11.4 ms
Qulacs
2.39 ms
Faster
Qulacs 4.8×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
23.0 ms
Qulacs
46.3 ms
Faster
PennyLane Lightning 2.0×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
366 ms
Qulacs
1.00 s
Faster
PennyLane Lightning 2.7×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
15.3 s
Qulacs
24.2 s
Faster
PennyLane Lightning 1.6×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
6.49 ms
Qulacs
287 µs
Faster
Qulacs 22.6×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
12.6 ms
Qulacs
873 µs
Faster
Qulacs 14.5×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
21.5 ms
Qulacs
8.07 ms
Faster
Qulacs 2.7×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
77.4 ms
Qulacs
148 ms
Faster
PennyLane Lightning 1.9×

Sampling / IQP

Diagonal phase circuit between Hadamard layers

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
2.97 ms
Qulacs
68.8 µs
Faster
Qulacs 43.2×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
5.19 ms
Qulacs
156 µs
Faster
Qulacs 33.3×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
7.50 ms
Qulacs
1.04 ms
Faster
Qulacs 7.2×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
15.5 ms
Qulacs
18.5 ms
Faster
PennyLane Lightning 1.2×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
206 ms
Qulacs
392 ms
Faster
PennyLane Lightning 1.9×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
7.66 s
Qulacs
10.7 s
Faster
PennyLane Lightning 1.4×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
3.18 ms
Qulacs
78.2 µs
Faster
Qulacs 40.6×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
5.57 ms
Qulacs
203 µs
Faster
Qulacs 27.5×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
8.14 ms
Qulacs
1.97 ms
Faster
Qulacs 4.1×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
20.3 ms
Qulacs
38.7 ms
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
317 ms
Qulacs
797 ms
Faster
PennyLane Lightning 2.5×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
13.6 s
Qulacs
19.1 s
Faster
PennyLane Lightning 1.4×
Expectation value, global observable (pauli_mix), depth 3
Qubits
8
PennyLane Lightning
5.87 ms
Qulacs
239 µs
Faster
Qulacs 24.5×
Expectation value, global observable (pauli_mix), depth 3
Qubits
12
PennyLane Lightning
8.96 ms
Qulacs
2.67 ms
Faster
Qulacs 3.4×
Expectation value, global observable (pauli_mix), depth 3
Qubits
16
PennyLane Lightning
28.1 ms
Qulacs
53.4 ms
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (pauli_mix), depth 3
Qubits
20
PennyLane Lightning
566 ms
Qulacs
1.09 s
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (zz_sum), depth 3
Qubits
8
PennyLane Lightning
5.76 ms
Qulacs
196 µs
Faster
Qulacs 29.3×
Expectation value, global observable (zz_sum), depth 3
Qubits
12
PennyLane Lightning
8.48 ms
Qulacs
2.04 ms
Faster
Qulacs 4.2×
Expectation value, global observable (zz_sum), depth 3
Qubits
16
PennyLane Lightning
22.2 ms
Qulacs
39.9 ms
Faster
PennyLane Lightning 1.8×
Expectation value, global observable (zz_sum), depth 3
Qubits
20
PennyLane Lightning
363 ms
Qulacs
856 ms
Faster
PennyLane Lightning 2.4×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
5.95 ms
Qulacs
272 µs
Faster
Qulacs 21.8×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
10.1 ms
Qulacs
701 µs
Faster
Qulacs 14.3×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
15.4 ms
Qulacs
5.38 ms
Faster
Qulacs 2.9×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
65.3 ms
Qulacs
105 ms
Faster
PennyLane Lightning 1.6×

Quantum kernel feature map

Data-encoding circuit for kernel methods

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, global observable (all_z), depth 2
Qubits
8
PennyLane Lightning
4.26 ms
Qulacs
107 µs
Faster
Qulacs 40.0×
Expectation value, global observable (all_z), depth 2
Qubits
12
PennyLane Lightning
5.92 ms
Qulacs
895 µs
Faster
Qulacs 6.6×
Expectation value, global observable (all_z), depth 2
Qubits
16
PennyLane Lightning
12.9 ms
Qulacs
16.9 ms
Faster
PennyLane Lightning 1.3×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
8
PennyLane Lightning
40.2 ms
Qulacs
3.36 ms
Faster
Qulacs 12.0×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
12
PennyLane Lightning
66.1 ms
Qulacs
28.3 ms
Faster
Qulacs 2.3×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
16
PennyLane Lightning
262 ms
Qulacs
539 ms
Faster
PennyLane Lightning 2.1×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
8
PennyLane Lightning
301 ms
Qulacs
26.9 ms
Faster
Qulacs 11.2×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
12
PennyLane Lightning
501 ms
Qulacs
226 ms
Faster
Qulacs 2.2×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
16
PennyLane Lightning
2.19 s
Qulacs
4.31 s
Faster
PennyLane Lightning 2.0×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
8
PennyLane Lightning
1.41 s
Qulacs
109 ms
Faster
Qulacs 12.9×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
12
PennyLane Lightning
2.25 s
Qulacs
915 ms
Faster
Qulacs 2.5×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
16
PennyLane Lightning
8.28 s
Qulacs
17.3 s
Faster
PennyLane Lightning 2.1×

Hardware-efficient VQE

RY/RZ layers with a CNOT ring

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
2.18 ms
Qulacs
52.5 µs
Faster
Qulacs 41.4×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
3.48 ms
Qulacs
126 µs
Faster
Qulacs 27.5×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
4.96 ms
Qulacs
1.03 ms
Faster
Qulacs 4.8×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
10.3 ms
Qulacs
19.2 ms
Faster
PennyLane Lightning 1.9×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
136 ms
Qulacs
386 ms
Faster
PennyLane Lightning 2.8×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
4.80 s
Qulacs
8.90 s
Faster
PennyLane Lightning 1.9×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
2.41 ms
Qulacs
63.7 µs
Faster
Qulacs 37.8×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
3.81 ms
Qulacs
172 µs
Faster
Qulacs 22.2×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
5.56 ms
Qulacs
1.97 ms
Faster
Qulacs 2.8×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
14.5 ms
Qulacs
40.2 ms
Faster
PennyLane Lightning 2.8×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
248 ms
Qulacs
808 ms
Faster
PennyLane Lightning 3.3×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
10.6 s
Qulacs
17.1 s
Faster
PennyLane Lightning 1.6×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
4.69 ms
Qulacs
206 µs
Faster
Qulacs 22.7×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
7.64 ms
Qulacs
577 µs
Faster
Qulacs 13.2×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
11.5 ms
Qulacs
5.51 ms
Faster
Qulacs 2.1×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
54.3 ms
Qulacs
110 ms
Faster
PennyLane Lightning 2.0×
Statevector, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
5.38 ms
Qulacs
129 µs
Faster
Qulacs 41.7×
Statevector, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
6.94 ms
Qulacs
1.00 ms
Faster
Qulacs 6.9×
Statevector, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
12.4 ms
Qulacs
18.9 ms
Faster
PennyLane Lightning 1.5×

Strongly-entangling ansatz

RX/RY/RZ layers with a CNOT ring

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, local observable, depth 3
Qubits
4
PennyLane Lightning
2.43 ms
Qulacs
68.2 µs
Faster
Qulacs 35.6×
Expectation value, local observable, depth 3
Qubits
8
PennyLane Lightning
4.09 ms
Qulacs
177 µs
Faster
Qulacs 23.1×
Expectation value, local observable, depth 3
Qubits
12
PennyLane Lightning
5.88 ms
Qulacs
1.56 ms
Faster
Qulacs 3.8×
Expectation value, local observable, depth 3
Qubits
16
PennyLane Lightning
13.1 ms
Qulacs
30.0 ms
Faster
PennyLane Lightning 2.3×
Expectation value, local observable, depth 3
Qubits
20
PennyLane Lightning
177 ms
Qulacs
595 ms
Faster
PennyLane Lightning 3.4×
Expectation value, local observable, depth 3
Qubits
24
PennyLane Lightning
6.45 s
Qulacs
13.2 s
Faster
PennyLane Lightning 2.1×
Expectation value, global observable (all_z), depth 3
Qubits
4
PennyLane Lightning
2.65 ms
Qulacs
77.7 µs
Faster
Qulacs 34.1×
Expectation value, global observable (all_z), depth 3
Qubits
8
PennyLane Lightning
4.38 ms
Qulacs
222 µs
Faster
Qulacs 19.7×
Expectation value, global observable (all_z), depth 3
Qubits
12
PennyLane Lightning
6.44 ms
Qulacs
2.50 ms
Faster
Qulacs 2.6×
Expectation value, global observable (all_z), depth 3
Qubits
16
PennyLane Lightning
17.1 ms
Qulacs
50.6 ms
Faster
PennyLane Lightning 3.0×
Expectation value, global observable (all_z), depth 3
Qubits
20
PennyLane Lightning
290 ms
Qulacs
1.02 s
Faster
PennyLane Lightning 3.5×
Expectation value, global observable (all_z), depth 3
Qubits
24
PennyLane Lightning
12.3 s
Qulacs
21.4 s
Faster
PennyLane Lightning 1.7×
Gradient, local observable, depth 3
Qubits
4
PennyLane Lightning
5.82 ms
Qulacs
278 µs
Faster
Qulacs 20.9×
Gradient, local observable, depth 3
Qubits
8
PennyLane Lightning
9.62 ms
Qulacs
822 µs
Faster
Qulacs 11.7×
Gradient, local observable, depth 3
Qubits
12
PennyLane Lightning
15.2 ms
Qulacs
8.63 ms
Faster
Qulacs 1.8×
Gradient, local observable, depth 3
Qubits
16
PennyLane Lightning
77.4 ms
Qulacs
180 ms
Faster
PennyLane Lightning 2.3×

Data re-uploading QML

Repeated encode-and-rotate classifier

WorkloadQubitsPennyLane LightningQulacsFaster
Expectation value, global observable (all_z), depth 2
Qubits
8
PennyLane Lightning
5.31 ms
Qulacs
185 µs
Faster
Qulacs 28.7×
Expectation value, global observable (all_z), depth 2
Qubits
12
PennyLane Lightning
7.58 ms
Qulacs
2.06 ms
Faster
Qulacs 3.7×
Expectation value, global observable (all_z), depth 2
Qubits
16
PennyLane Lightning
17.0 ms
Qulacs
41.8 ms
Faster
PennyLane Lightning 2.5×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
8
PennyLane Lightning
53.2 ms
Qulacs
6.97 ms
Faster
Qulacs 7.6×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
12
PennyLane Lightning
88.0 ms
Qulacs
67.1 ms
Faster
Qulacs 1.3×
Expectation value, global observable (all_z), depth 2, batch of 32
Qubits
16
PennyLane Lightning
354 ms
Qulacs
1.33 s
Faster
PennyLane Lightning 3.8×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
8
PennyLane Lightning
398 ms
Qulacs
48.4 ms
Faster
Qulacs 8.2×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
12
PennyLane Lightning
670 ms
Qulacs
529 ms
Faster
Qulacs 1.3×
Expectation value, global observable (all_z), depth 2, batch of 256
Qubits
16
PennyLane Lightning
2.81 s
Qulacs
10.6 s
Faster
PennyLane Lightning 3.8×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
8
PennyLane Lightning
1.80 s
Qulacs
193 ms
Faster
Qulacs 9.3×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
12
PennyLane Lightning
2.91 s
Qulacs
2.13 s
Faster
Qulacs 1.4×
Expectation value, global observable (all_z), depth 2, batch of 1024
Qubits
16
PennyLane Lightning
11.3 s
Qulacs
42.7 s
Faster
PennyLane Lightning 3.8×
Gradient, local observable, depth 2
Qubits
8
PennyLane Lightning
unsupported
Qulacs
606 µs
Faster
–
Gradient, local observable, depth 2
Qubits
12
PennyLane Lightning
unsupported
Qulacs
5.81 ms
Faster
–
Gradient, local observable, depth 2
Qubits
16
PennyLane Lightning
unsupported
Qulacs
117 ms
Faster
–
Gradient, local observable, depth 2, batch of 32
Qubits
8
PennyLane Lightning
unsupported
Qulacs
19.3 ms
Faster
–
Gradient, local observable, depth 2, batch of 32
Qubits
12
PennyLane Lightning
unsupported
Qulacs
189 ms
Faster
–
Gradient, local observable, depth 2, batch of 32
Qubits
16
PennyLane Lightning
unsupported
Qulacs
3.76 s
Faster
–
Gradient, local observable, depth 2, batch of 256
Qubits
8
PennyLane Lightning
unsupported
Qulacs
153 ms
Faster
–
Gradient, local observable, depth 2, batch of 256
Qubits
12
PennyLane Lightning
unsupported
Qulacs
1.47 s
Faster
–
Gradient, local observable, depth 2, batch of 256
Qubits
16
PennyLane Lightning
unsupported
Qulacs
30.0 s
Faster
–

How this was measured

One host, one harness

Every simulator ran the same circuits on one host, single-threaded and core-pinned, driven through one common harness, so any overhead the harness adds is charged to the simulator. Each result was checked against a reference implementation: a simulator that ran fast but returned the wrong answer is left out of the ranking. Nothing is interpolated or rescaled. A time was measured, or it is not shown.

Run 2026-08-10, 8 cores, threads=1. numpy 2.4.6, scipy 1.18.0, torch 2.13.0, numba 0.66.0, pennylane 0.45.1, pennylane_lightning 0.45.0, qiskit 2.5.1, qulacs 0.6.14, tensorcircuit 1.8.0, cudaq 0.15.1. One host and one thread make the comparison reproducible. It is not a prediction for your laptop.

The interactive tool shows the same measurements for any workload you pick, with the quantum hardware that could run it and what a run would cost.

Hardware figures each carry the source they came from and the date they were measured. The oldest in this set is 626 days old. Costs are bands, not quotes.

Host: Linux-6.8.0-1051-aws-x86_64-with-glibc2.35, 8 cores, threads=1, core-pinned. numpy 2.4.6, scipy 1.18.0, torch 2.13.0, numba 0.66.0, pennylane 0.45.1, pennylane_lightning 0.45.0. Every simulator was driven through one common harness, so any harness binding overhead is charged to the simulator rather than hidden.

© 2026 EigenOrbit. All rights reserved.