PennyLane vs Qiskit
The same circuits, one host
PennyLane and Qiskit both finished 119 of the 175 workloads measured here. PennyLane was faster in 50 of them and Qiskit in 69. At the median Qiskit was 1.7× faster.
By circuit family
Who was faster where
| Circuit family | Workloads both finished | PennyLane faster in | Qiskit faster in | Faster at the median |
|---|---|---|---|---|
| Workloads both finished 10 | PennyLane faster in 3 | Qiskit faster in 7 | Faster at the median Qiskit 1.8× | |
| Workloads both finished 18 | PennyLane faster in 8 | Qiskit faster in 10 | Faster at the median Qiskit 1.8× | |
| Workloads both finished 21 | PennyLane faster in 9 | Qiskit faster in 12 | Faster at the median Qiskit 1.7× | |
| Workloads both finished 10 | PennyLane faster in 4 | Qiskit faster in 6 | Faster at the median Qiskit 1.9× | |
| Workloads both finished 18 | PennyLane faster in 8 | Qiskit faster in 10 | Faster at the median Qiskit 1.7× | |
| Workloads both finished 8 | PennyLane faster in 5 | Qiskit faster in 3 | Faster at the median PennyLane 1.7× | |
| Workloads both finished 13 | PennyLane faster in 5 | Qiskit faster in 8 | Faster at the median Qiskit 1.5× | |
| Workloads both finished 10 | PennyLane faster in 3 | Qiskit faster in 7 | Faster at the median Qiskit 1.6× | |
| Workloads both finished 11 | PennyLane faster in 5 | Qiskit faster in 6 | Faster at the median Qiskit 1.1× |
Local circuit dynamics
Brickwork nearest-neighbour layers: lattice models, quench dynamics
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 2.07 ms | Qiskit 865 µs | Faster Qiskit 2.4× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 3.73 ms | Qiskit 1.80 ms | Faster Qiskit 2.1× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 6.19 ms | Qiskit 3.75 ms | Faster Qiskit 1.7× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 30.3 ms | Qiskit 35.7 ms | Faster PennyLane 1.2× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 697 ms | Qiskit 936 ms | Faster PennyLane 1.3× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 2.48 ms | Qiskit 996 µs | Faster Qiskit 2.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 4.76 ms | Qiskit 2.11 ms | Faster Qiskit 2.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 8.07 ms | Qiskit 4.26 ms | Faster Qiskit 1.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 43.5 ms | Qiskit 39.7 ms | Faster Qiskit 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 891 ms | Qiskit 947 ms | Faster PennyLane 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 10.7 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 22.3 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 43.4 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 268 ms | Qiskit unsupported | Faster – |
Hamiltonian time evolution
Trotterised spin chain: ZZ + XX couplings with local fields
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 9.46 ms | Qiskit 3.80 ms | Faster Qiskit 2.5× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 23.2 ms | Qiskit 10.1 ms | Faster Qiskit 2.3× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 43.8 ms | Qiskit 24.5 ms | Faster Qiskit 1.8× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 208 ms | Qiskit 259 ms | Faster PennyLane 1.2× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 4.57 s | Qiskit 6.72 s | Faster PennyLane 1.5× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 9.82 ms | Qiskit 3.88 ms | Faster Qiskit 2.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 24.4 ms | Qiskit 10.6 ms | Faster Qiskit 2.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 46.3 ms | Qiskit 25.7 ms | Faster Qiskit 1.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 223 ms | Qiskit 262 ms | Faster PennyLane 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 4.86 s | Qiskit 7.22 s | Faster PennyLane 1.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 25.0 ms | Qiskit 10.7 ms | Faster Qiskit 2.3× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 46.9 ms | Qiskit 26.0 ms | Faster Qiskit 1.8× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 236 ms | Qiskit 271 ms | Faster PennyLane 1.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 5.11 s | Qiskit 6.93 s | Faster PennyLane 1.4× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 23.7 ms | Qiskit 10.4 ms | Faster Qiskit 2.3× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 44.4 ms | Qiskit 24.9 ms | Faster Qiskit 1.8× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 211 ms | Qiskit 261 ms | Faster PennyLane 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 4.76 s | Qiskit 6.65 s | Faster PennyLane 1.4× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 29.5 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 72.7 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 212 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 1.64 s | Qiskit unsupported | Faster – |
MaxCut on a ring
QAOA over a cycle graph
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 5.17 ms | Qiskit 2.01 ms | Faster Qiskit 2.6× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 10.6 ms | Qiskit 4.71 ms | Faster Qiskit 2.2× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 17.8 ms | Qiskit 9.95 ms | Faster Qiskit 1.8× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 82.9 ms | Qiskit 105 ms | Faster PennyLane 1.3× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.82 s | Qiskit 2.86 s | Faster PennyLane 1.6× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 5.56 ms | Qiskit 2.13 ms | Faster Qiskit 2.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 11.3 ms | Qiskit 4.72 ms | Faster Qiskit 2.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 19.9 ms | Qiskit 10.5 ms | Faster Qiskit 1.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 95.7 ms | Qiskit 107 ms | Faster PennyLane 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.05 s | Qiskit 2.81 s | Faster PennyLane 1.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 12.7 ms | Qiskit 5.70 ms | Faster Qiskit 2.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 22.7 ms | Qiskit 12.4 ms | Faster Qiskit 1.8× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 116 ms | Qiskit 121 ms | Faster PennyLane 1.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 2.39 s | Qiskit 2.83 s | Faster PennyLane 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 11.7 ms | Qiskit 5.27 ms | Faster Qiskit 2.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 20.2 ms | Qiskit 11.8 ms | Faster Qiskit 1.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 93.4 ms | Qiskit 113 ms | Faster PennyLane 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 1.88 s | Qiskit 2.84 s | Faster PennyLane 1.5× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 23.6 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 48.6 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 113 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 764 ms | Qiskit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | PennyLane 10.9 ms | Qiskit 4.86 ms | Faster Qiskit 2.2× |
Statevector, global observable (all_z), depth 3 | Qubits 12 | PennyLane 19.1 ms | Qiskit 11.1 ms | Faster Qiskit 1.7× |
Statevector, global observable (all_z), depth 3 | Qubits 16 | PennyLane 88.1 ms | Qiskit 113 ms | Faster PennyLane 1.3× |
MaxCut, arbitrary graph
QAOA over a random-edge graph
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 6.19 ms | Qiskit 2.23 ms | Faster Qiskit 2.8× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 14.4 ms | Qiskit 5.90 ms | Faster Qiskit 2.4× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 28.0 ms | Qiskit 15.3 ms | Faster Qiskit 1.8× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 115 ms | Qiskit 150 ms | Faster PennyLane 1.3× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 2.79 s | Qiskit 4.43 s | Faster PennyLane 1.6× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 6.57 ms | Qiskit 2.40 ms | Faster Qiskit 2.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 15.4 ms | Qiskit 6.21 ms | Faster Qiskit 2.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 30.3 ms | Qiskit 15.9 ms | Faster Qiskit 1.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 126 ms | Qiskit 150 ms | Faster PennyLane 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 3.07 s | Qiskit 4.30 s | Faster PennyLane 1.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 26.9 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 63.3 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 170 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 1.08 s | Qiskit unsupported | Faster – |
Sampling / IQP
Diagonal phase circuit between Hadamard layers
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 5.68 ms | Qiskit 2.20 ms | Faster Qiskit 2.6× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 11.3 ms | Qiskit 4.96 ms | Faster Qiskit 2.3× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 19.7 ms | Qiskit 11.3 ms | Faster Qiskit 1.7× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 95.5 ms | Qiskit 119 ms | Faster PennyLane 1.2× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 2.15 s | Qiskit 3.26 s | Faster PennyLane 1.5× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 6.14 ms | Qiskit 2.33 ms | Faster Qiskit 2.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 12.6 ms | Qiskit 5.29 ms | Faster Qiskit 2.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 21.6 ms | Qiskit 11.7 ms | Faster Qiskit 1.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 105 ms | Qiskit 121 ms | Faster PennyLane 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.48 s | Qiskit 3.09 s | Faster PennyLane 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 13.7 ms | Qiskit 6.21 ms | Faster Qiskit 2.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 24.5 ms | Qiskit 13.8 ms | Faster Qiskit 1.8× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 127 ms | Qiskit 138 ms | Faster PennyLane 1.1× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 2.74 s | Qiskit 3.26 s | Faster PennyLane 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 12.8 ms | Qiskit 6.01 ms | Faster Qiskit 2.1× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 22.2 ms | Qiskit 13.0 ms | Faster Qiskit 1.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 108 ms | Qiskit 134 ms | Faster PennyLane 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 2.21 s | Qiskit 3.18 s | Faster PennyLane 1.4× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 20.1 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 43.1 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 112 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 742 ms | Qiskit unsupported | Faster – |
Quantum kernel feature map
Data-encoding circuit for kernel methods
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | PennyLane 8.00 ms | Qiskit 2.04 ms | Faster Qiskit 3.9× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | PennyLane 12.7 ms | Qiskit 4.12 ms | Faster Qiskit 3.1× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | PennyLane 10.6 ms | Qiskit 64.7 ms | Faster PennyLane 6.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | PennyLane 76.1 ms | Qiskit 132 ms | Faster PennyLane 1.7× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | PennyLane 30.3 ms | Qiskit 521 ms | Faster PennyLane 17.2× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | PennyLane 652 ms | Qiskit 1.04 s | Faster PennyLane 1.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | PennyLane 110 ms | Qiskit 2.12 s | Faster PennyLane 19.3× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | PennyLane 7.92 s | Qiskit 4.16 s | Faster Qiskit 1.9× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | PennyLane skip | Qiskit skip | Faster – |
Hardware-efficient VQE
RY/RZ layers with a CNOT ring
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 3.43 ms | Qiskit 1.61 ms | Faster Qiskit 2.1× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 6.83 ms | Qiskit 3.51 ms | Faster Qiskit 1.9× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 12.0 ms | Qiskit 7.81 ms | Faster Qiskit 1.5× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 61.6 ms | Qiskit 74.9 ms | Faster PennyLane 1.2× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.41 s | Qiskit 1.90 s | Faster PennyLane 1.3× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 3.91 ms | Qiskit 1.80 ms | Faster Qiskit 2.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 7.93 ms | Qiskit 3.83 ms | Faster Qiskit 2.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 14.0 ms | Qiskit 8.17 ms | Faster Qiskit 1.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 72.0 ms | Qiskit 79.1 ms | Faster PennyLane 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 1.54 s | Qiskit 2.04 s | Faster PennyLane 1.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit 134 s | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 19.4 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 38.7 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 82.6 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 462 ms | Qiskit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | PennyLane 6.89 ms | Qiskit 3.68 ms | Faster Qiskit 1.9× |
Statevector, global observable (all_z), depth 3 | Qubits 12 | PennyLane 12.1 ms | Qiskit 7.98 ms | Faster Qiskit 1.5× |
Statevector, global observable (all_z), depth 3 | Qubits 16 | PennyLane 62.8 ms | Qiskit 77.5 ms | Faster PennyLane 1.2× |
Strongly-entangling ansatz
RX/RY/RZ layers with a CNOT ring
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 4.02 ms | Qiskit 1.96 ms | Faster Qiskit 2.0× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 7.98 ms | Qiskit 4.37 ms | Faster Qiskit 1.8× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 14.3 ms | Qiskit 9.48 ms | Faster Qiskit 1.5× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 70.1 ms | Qiskit 101 ms | Faster PennyLane 1.4× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.67 s | Qiskit 2.61 s | Faster PennyLane 1.6× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 4.44 ms | Qiskit 2.09 ms | Faster Qiskit 2.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 8.95 ms | Qiskit 4.65 ms | Faster Qiskit 1.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 16.0 ms | Qiskit 9.75 ms | Faster Qiskit 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 78.2 ms | Qiskit 96.2 ms | Faster PennyLane 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.73 s | Qiskit 2.62 s | Faster Qiskit 1.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | Qiskit skip | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 29.0 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 58.9 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 125 ms | Qiskit unsupported | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 538 ms | Qiskit unsupported | Faster – |
Data re-uploading QML
Repeated encode-and-rotate classifier
| Workload | Qubits | PennyLane | Qiskit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | PennyLane 10.4 ms | Qiskit 3.65 ms | Faster Qiskit 2.8× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | PennyLane 18.2 ms | Qiskit 7.61 ms | Faster Qiskit 2.4× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | PennyLane 81.9 ms | Qiskit 72.6 ms | Faster Qiskit 1.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | PennyLane 14.7 ms | Qiskit 116 ms | Faster PennyLane 7.9× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | PennyLane 121 ms | Qiskit 246 ms | Faster PennyLane 2.0× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | PennyLane 8.25 s | Qiskit 2.26 s | Faster Qiskit 3.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | PennyLane 53.8 ms | Qiskit 941 ms | Faster PennyLane 17.5× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | PennyLane 1.08 s | Qiskit 1.94 s | Faster PennyLane 1.8× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | PennyLane 71.1 s | Qiskit 17.9 s | Faster Qiskit 4.0× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | PennyLane 200 ms | Qiskit 3.74 s | Faster PennyLane 18.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | PennyLane 13.7 s | Qiskit 7.93 s | Faster Qiskit 1.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | PennyLane skip | Qiskit 72.3 s | Faster – |
Gradient, local observable, depth 2 | Qubits 8 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2 | Qubits 12 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2 | Qubits 16 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 8 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 12 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 16 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 8 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 12 | PennyLane unsupported | Qiskit unsupported | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 16 | PennyLane skip | Qiskit unsupported | 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.