PennyLane vs TensorCircuit
The same circuits, one host
PennyLane and TensorCircuit both finished 127 of the 175 workloads measured here. PennyLane was faster in 4 of them and TensorCircuit in 123. At the median TensorCircuit was 12.4× faster.
By circuit family
Who was faster where
| Circuit family | Workloads both finished | PennyLane faster in | TensorCircuit faster in | Faster at the median |
|---|---|---|---|---|
| Workloads both finished 14 | PennyLane faster in 0 | TensorCircuit faster in 14 | Faster at the median TensorCircuit 14.5× | |
| Workloads both finished 22 | PennyLane faster in 0 | TensorCircuit faster in 22 | Faster at the median TensorCircuit 35.6× | |
| Workloads both finished 22 | PennyLane faster in 2 | TensorCircuit faster in 20 | Faster at the median TensorCircuit 8.9× | |
| Workloads both finished 0 | PennyLane faster in 0 | TensorCircuit faster in 0 | Faster at the median – | |
| Workloads both finished 22 | PennyLane faster in 2 | TensorCircuit faster in 20 | Faster at the median TensorCircuit 9.6× | |
| Workloads both finished 8 | PennyLane faster in 0 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 4.0× | |
| Workloads both finished 14 | PennyLane faster in 0 | TensorCircuit faster in 14 | Faster at the median TensorCircuit 12.1× | |
| Workloads both finished 14 | PennyLane faster in 0 | TensorCircuit faster in 14 | Faster at the median TensorCircuit 13.9× | |
| Workloads both finished 11 | PennyLane faster in 0 | TensorCircuit faster in 11 | Faster at the median TensorCircuit 4.1× |
Local circuit dynamics
Brickwork nearest-neighbour layers: lattice models, quench dynamics
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 2.07 ms | TensorCircuit 159 µs | Faster TensorCircuit 13.0× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 3.73 ms | TensorCircuit 249 µs | Faster TensorCircuit 15.0× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 6.19 ms | TensorCircuit 378 µs | Faster TensorCircuit 16.4× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 30.3 ms | TensorCircuit 2.17 ms | Faster TensorCircuit 13.9× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 697 ms | TensorCircuit 63.5 ms | Faster TensorCircuit 11.0× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 1.16 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 2.48 ms | TensorCircuit 181 µs | Faster TensorCircuit 13.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 4.76 ms | TensorCircuit 285 µs | Faster TensorCircuit 16.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 8.07 ms | TensorCircuit 848 µs | Faster TensorCircuit 9.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 43.5 ms | TensorCircuit 33.5 ms | Faster TensorCircuit 1.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 891 ms | TensorCircuit 735 ms | Faster TensorCircuit 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 16.2 s | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 10.7 ms | TensorCircuit 253 µs | Faster TensorCircuit 42.5× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 22.3 ms | TensorCircuit 426 µs | Faster TensorCircuit 52.3× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 43.4 ms | TensorCircuit 758 µs | Faster TensorCircuit 57.2× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 268 ms | TensorCircuit 5.49 ms | Faster TensorCircuit 48.8× |
Hamiltonian time evolution
Trotterised spin chain: ZZ + XX couplings with local fields
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 9.46 ms | TensorCircuit 267 µs | Faster TensorCircuit 35.4× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 23.2 ms | TensorCircuit 468 µs | Faster TensorCircuit 49.7× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 43.8 ms | TensorCircuit 749 µs | Faster TensorCircuit 58.6× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 208 ms | TensorCircuit 4.46 ms | Faster TensorCircuit 46.6× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 4.57 s | TensorCircuit 164 ms | Faster TensorCircuit 27.9× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 6.20 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 9.82 ms | TensorCircuit 275 µs | Faster TensorCircuit 35.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 24.4 ms | TensorCircuit 522 µs | Faster TensorCircuit 46.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 46.3 ms | TensorCircuit 1.42 ms | Faster TensorCircuit 32.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 223 ms | TensorCircuit 45.6 ms | Faster TensorCircuit 4.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 4.86 s | TensorCircuit 1.43 s | Faster TensorCircuit 3.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 45.3 s | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 25.0 ms | TensorCircuit 593 µs | Faster TensorCircuit 42.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 46.9 ms | TensorCircuit 2.12 ms | Faster TensorCircuit 22.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 236 ms | TensorCircuit 78.8 ms | Faster TensorCircuit 3.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 5.11 s | TensorCircuit 2.65 s | Faster TensorCircuit 1.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 23.7 ms | TensorCircuit 537 µs | Faster TensorCircuit 44.1× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 44.4 ms | TensorCircuit 1.74 ms | Faster TensorCircuit 25.6× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 211 ms | TensorCircuit 60.3 ms | Faster TensorCircuit 3.5× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 4.76 s | TensorCircuit 1.90 s | Faster TensorCircuit 2.5× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 29.5 ms | TensorCircuit 442 µs | Faster TensorCircuit 66.7× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 72.7 ms | TensorCircuit 962 µs | Faster TensorCircuit 75.6× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 212 ms | TensorCircuit 1.61 ms | Faster TensorCircuit 132× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 1.64 s | TensorCircuit 10.7 ms | Faster TensorCircuit 153× |
MaxCut on a ring
QAOA over a cycle graph
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 5.17 ms | TensorCircuit 199 µs | Faster TensorCircuit 26.0× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 10.6 ms | TensorCircuit 387 µs | Faster TensorCircuit 27.3× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 17.8 ms | TensorCircuit 1.43 ms | Faster TensorCircuit 12.4× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 82.9 ms | TensorCircuit 21.2 ms | Faster TensorCircuit 3.9× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.82 s | TensorCircuit 596 ms | Faster TensorCircuit 3.1× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 12.8 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 5.56 ms | TensorCircuit 207 µs | Faster TensorCircuit 26.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 11.3 ms | TensorCircuit 428 µs | Faster TensorCircuit 26.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 19.9 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 9.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 95.7 ms | TensorCircuit 58.3 ms | Faster TensorCircuit 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.05 s | TensorCircuit 1.66 s | Faster TensorCircuit 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 42.9 s | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 12.7 ms | TensorCircuit 541 µs | Faster TensorCircuit 23.4× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 22.7 ms | TensorCircuit 2.90 ms | Faster TensorCircuit 7.8× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 116 ms | TensorCircuit 96.2 ms | Faster TensorCircuit 1.2× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 2.39 s | TensorCircuit 2.50 s | Faster PennyLane 1.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 11.7 ms | TensorCircuit 502 µs | Faster TensorCircuit 23.4× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 20.2 ms | TensorCircuit 2.53 ms | Faster TensorCircuit 8.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 93.4 ms | TensorCircuit 77.6 ms | Faster TensorCircuit 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 1.88 s | TensorCircuit 2.25 s | Faster PennyLane 1.2× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 23.6 ms | TensorCircuit 372 µs | Faster TensorCircuit 63.3× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 48.6 ms | TensorCircuit 858 µs | Faster TensorCircuit 56.7× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 113 ms | TensorCircuit 4.31 ms | Faster TensorCircuit 26.3× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 764 ms | TensorCircuit 104 ms | Faster TensorCircuit 7.4× |
Statevector, global observable (all_z), depth 3 | Qubits 8 | PennyLane 10.9 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | PennyLane 19.1 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | PennyLane 88.1 ms | TensorCircuit unsupported | Faster – |
MaxCut, arbitrary graph
QAOA over a random-edge graph
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 6.19 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 14.4 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 28.0 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 115 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 2.79 s | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 6.57 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 15.4 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 30.3 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 126 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 3.07 s | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 26.9 ms | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 63.3 ms | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 170 ms | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 1.08 s | TensorCircuit error | Faster – |
Sampling / IQP
Diagonal phase circuit between Hadamard layers
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 5.68 ms | TensorCircuit 209 µs | Faster TensorCircuit 27.2× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 11.3 ms | TensorCircuit 425 µs | Faster TensorCircuit 26.6× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 19.7 ms | TensorCircuit 1.49 ms | Faster TensorCircuit 13.2× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 95.5 ms | TensorCircuit 21.1 ms | Faster TensorCircuit 4.5× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 2.15 s | TensorCircuit 633 ms | Faster TensorCircuit 3.4× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 13.7 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 6.14 ms | TensorCircuit 229 µs | Faster TensorCircuit 26.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 12.6 ms | TensorCircuit 464 µs | Faster TensorCircuit 27.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 21.6 ms | TensorCircuit 2.04 ms | Faster TensorCircuit 10.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 105 ms | TensorCircuit 59.5 ms | Faster TensorCircuit 1.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.48 s | TensorCircuit 1.53 s | Faster TensorCircuit 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 45.0 s | Faster – |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | PennyLane 13.7 ms | TensorCircuit 568 µs | Faster TensorCircuit 24.1× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | PennyLane 24.5 ms | TensorCircuit 2.94 ms | Faster TensorCircuit 8.4× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | PennyLane 127 ms | TensorCircuit 96.1 ms | Faster TensorCircuit 1.3× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | PennyLane 2.74 s | TensorCircuit 2.76 s | Faster PennyLane 1.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | PennyLane 12.8 ms | TensorCircuit 525 µs | Faster TensorCircuit 24.3× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | PennyLane 22.2 ms | TensorCircuit 2.56 ms | Faster TensorCircuit 8.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | PennyLane 108 ms | TensorCircuit 79.0 ms | Faster TensorCircuit 1.4× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | PennyLane 2.21 s | TensorCircuit 2.22 s | Faster PennyLane 1.0× |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 20.1 ms | TensorCircuit 425 µs | Faster TensorCircuit 47.4× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 43.1 ms | TensorCircuit 898 µs | Faster TensorCircuit 48.0× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 112 ms | TensorCircuit 4.39 ms | Faster TensorCircuit 25.6× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 742 ms | TensorCircuit 104 ms | Faster TensorCircuit 7.2× |
Quantum kernel feature map
Data-encoding circuit for kernel methods
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | PennyLane 8.00 ms | TensorCircuit 288 µs | Faster TensorCircuit 27.8× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | PennyLane 12.7 ms | TensorCircuit 871 µs | Faster TensorCircuit 14.5× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | PennyLane skip | TensorCircuit 30.7 ms | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | PennyLane 10.6 ms | TensorCircuit 1.28 ms | Faster TensorCircuit 8.3× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | PennyLane 76.1 ms | TensorCircuit 52.5 ms | Faster TensorCircuit 1.4× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | PennyLane skip | TensorCircuit 1.09 s | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | PennyLane 30.3 ms | TensorCircuit 8.45 ms | Faster TensorCircuit 3.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | PennyLane 652 ms | TensorCircuit 428 ms | Faster TensorCircuit 1.5× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | PennyLane skip | TensorCircuit 8.81 s | Faster – |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | PennyLane 110 ms | TensorCircuit 79.4 ms | Faster TensorCircuit 1.4× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | PennyLane 7.92 s | TensorCircuit 1.79 s | Faster TensorCircuit 4.4× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | PennyLane skip | TensorCircuit error | Faster – |
Hardware-efficient VQE
RY/RZ layers with a CNOT ring
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 3.43 ms | TensorCircuit 211 µs | Faster TensorCircuit 16.2× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 6.83 ms | TensorCircuit 386 µs | Faster TensorCircuit 17.7× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 12.0 ms | TensorCircuit 1.50 ms | Faster TensorCircuit 8.0× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 61.6 ms | TensorCircuit 20.7 ms | Faster TensorCircuit 3.0× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.41 s | TensorCircuit 488 ms | Faster TensorCircuit 2.9× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 13.7 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 3.91 ms | TensorCircuit 212 µs | Faster TensorCircuit 18.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 7.93 ms | TensorCircuit 454 µs | Faster TensorCircuit 17.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 14.0 ms | TensorCircuit 2.02 ms | Faster TensorCircuit 6.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 72.0 ms | TensorCircuit 53.9 ms | Faster TensorCircuit 1.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 1.54 s | TensorCircuit 1.09 s | Faster TensorCircuit 1.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 27.5 s | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 19.4 ms | TensorCircuit 340 µs | Faster TensorCircuit 56.9× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 38.7 ms | TensorCircuit 830 µs | Faster TensorCircuit 46.7× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 82.6 ms | TensorCircuit 4.05 ms | Faster TensorCircuit 20.4× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 462 ms | TensorCircuit 66.6 ms | Faster TensorCircuit 6.9× |
Statevector, global observable (all_z), depth 3 | Qubits 8 | PennyLane 6.89 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | PennyLane 12.1 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | PennyLane 62.8 ms | TensorCircuit unsupported | Faster – |
Strongly-entangling ansatz
RX/RY/RZ layers with a CNOT ring
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | PennyLane 4.02 ms | TensorCircuit 224 µs | Faster TensorCircuit 18.0× |
Expectation value, local observable, depth 3 | Qubits 8 | PennyLane 7.98 ms | TensorCircuit 418 µs | Faster TensorCircuit 19.1× |
Expectation value, local observable, depth 3 | Qubits 12 | PennyLane 14.3 ms | TensorCircuit 1.46 ms | Faster TensorCircuit 9.8× |
Expectation value, local observable, depth 3 | Qubits 16 | PennyLane 70.1 ms | TensorCircuit 20.7 ms | Faster TensorCircuit 3.4× |
Expectation value, local observable, depth 3 | Qubits 20 | PennyLane 1.67 s | TensorCircuit 467 ms | Faster TensorCircuit 3.6× |
Expectation value, local observable, depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 13.0 s | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | PennyLane 4.44 ms | TensorCircuit 229 µs | Faster TensorCircuit 19.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | PennyLane 8.95 ms | TensorCircuit 458 µs | Faster TensorCircuit 19.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | PennyLane 16.0 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 8.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | PennyLane 78.2 ms | TensorCircuit 50.3 ms | Faster TensorCircuit 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | PennyLane 2.73 s | TensorCircuit 1.13 s | Faster TensorCircuit 2.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | PennyLane skip | TensorCircuit 26.2 s | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | PennyLane 29.0 ms | TensorCircuit 395 µs | Faster TensorCircuit 73.5× |
Gradient, local observable, depth 3 | Qubits 8 | PennyLane 58.9 ms | TensorCircuit 986 µs | Faster TensorCircuit 59.7× |
Gradient, local observable, depth 3 | Qubits 12 | PennyLane 125 ms | TensorCircuit 4.28 ms | Faster TensorCircuit 29.3× |
Gradient, local observable, depth 3 | Qubits 16 | PennyLane 538 ms | TensorCircuit 69.9 ms | Faster TensorCircuit 7.7× |
Data re-uploading QML
Repeated encode-and-rotate classifier
| Workload | Qubits | PennyLane | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | PennyLane 10.4 ms | TensorCircuit 388 µs | Faster TensorCircuit 26.7× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | PennyLane 18.2 ms | TensorCircuit 1.20 ms | Faster TensorCircuit 15.2× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | PennyLane 81.9 ms | TensorCircuit 43.8 ms | Faster TensorCircuit 1.9× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | PennyLane 14.7 ms | TensorCircuit 2.00 ms | Faster TensorCircuit 7.4× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | PennyLane 121 ms | TensorCircuit 59.8 ms | Faster TensorCircuit 2.0× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | PennyLane 8.25 s | TensorCircuit 2.02 s | Faster TensorCircuit 4.1× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | PennyLane 53.8 ms | TensorCircuit 14.7 ms | Faster TensorCircuit 3.7× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | PennyLane 1.08 s | TensorCircuit 497 ms | Faster TensorCircuit 2.2× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | PennyLane 71.1 s | TensorCircuit 16.9 s | Faster TensorCircuit 4.2× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | PennyLane 200 ms | TensorCircuit 107 ms | Faster TensorCircuit 1.9× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | PennyLane 13.7 s | TensorCircuit 2.17 s | Faster TensorCircuit 6.3× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | PennyLane skip | TensorCircuit error | Faster – |
Gradient, local observable, depth 2 | Qubits 8 | PennyLane unsupported | TensorCircuit 596 µs | Faster – |
Gradient, local observable, depth 2 | Qubits 12 | PennyLane unsupported | TensorCircuit 1.16 ms | Faster – |
Gradient, local observable, depth 2 | Qubits 16 | PennyLane unsupported | TensorCircuit 7.10 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 8 | PennyLane unsupported | TensorCircuit 3.46 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 12 | PennyLane unsupported | TensorCircuit 19.9 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 16 | PennyLane unsupported | TensorCircuit 424 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 8 | PennyLane unsupported | TensorCircuit 26.0 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 12 | PennyLane unsupported | TensorCircuit 243 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 16 | PennyLane skip | TensorCircuit 3.51 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.