Google qsim vs TensorCircuit
The same circuits, one host
Google qsim and TensorCircuit both finished 118 of the 175 workloads measured here. Google qsim was faster in 52 of them and TensorCircuit in 66. At the median TensorCircuit was 2.9× faster.
By circuit family
Who was faster where
| Circuit family | Workloads both finished | Google qsim faster in | TensorCircuit faster in | Faster at the median |
|---|---|---|---|---|
| Workloads both finished 12 | Google qsim faster in 5 | TensorCircuit faster in 7 | Faster at the median TensorCircuit 2.8× | |
| Workloads both finished 20 | Google qsim faster in 9 | TensorCircuit faster in 11 | Faster at the median TensorCircuit 5.5× | |
| Workloads both finished 20 | Google qsim faster in 10 | TensorCircuit faster in 10 | Faster at the median TensorCircuit 1.7× | |
| Workloads both finished 0 | Google qsim faster in 0 | TensorCircuit faster in 0 | Faster at the median – | |
| Workloads both finished 20 | Google qsim faster in 10 | TensorCircuit faster in 10 | Faster at the median TensorCircuit 1.7× | |
| Workloads both finished 11 | Google qsim faster in 3 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 1.8× | |
| Workloads both finished 12 | Google qsim faster in 6 | TensorCircuit faster in 6 | Faster at the median TensorCircuit 1.8× | |
| Workloads both finished 12 | Google qsim faster in 6 | TensorCircuit faster in 6 | Faster at the median TensorCircuit 2.3× | |
| Workloads both finished 11 | Google qsim faster in 3 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 3.1× |
Local circuit dynamics
Brickwork nearest-neighbour layers: lattice models, quench dynamics
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 1.19 ms | TensorCircuit 159 µs | Faster TensorCircuit 7.5× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 2.03 ms | TensorCircuit 249 µs | Faster TensorCircuit 8.2× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 2.93 ms | TensorCircuit 378 µs | Faster TensorCircuit 7.8× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 4.20 ms | TensorCircuit 2.17 ms | Faster TensorCircuit 1.9× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 18.9 ms | TensorCircuit 63.5 ms | Faster Google qsim 3.4× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 555 ms | TensorCircuit 1.16 s | Faster Google qsim 2.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 1.28 ms | TensorCircuit 181 µs | Faster TensorCircuit 7.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 2.23 ms | TensorCircuit 285 µs | Faster TensorCircuit 7.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 3.12 ms | TensorCircuit 848 µs | Faster TensorCircuit 3.7× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 5.16 ms | TensorCircuit 33.5 ms | Faster Google qsim 6.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 33.4 ms | TensorCircuit 735 ms | Faster Google qsim 22.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 934 ms | TensorCircuit 16.2 s | Faster Google qsim 17.4× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 253 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 426 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 758 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 5.49 ms | Faster – |
Hamiltonian time evolution
Trotterised spin chain: ZZ + XX couplings with local fields
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 4.11 ms | TensorCircuit 267 µs | Faster TensorCircuit 15.4× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 8.72 ms | TensorCircuit 468 µs | Faster TensorCircuit 18.6× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 13.3 ms | TensorCircuit 749 µs | Faster TensorCircuit 17.8× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 19.2 ms | TensorCircuit 4.46 ms | Faster TensorCircuit 4.3× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 51.8 ms | TensorCircuit 164 ms | Faster Google qsim 3.2× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 1.04 s | TensorCircuit 6.20 s | Faster Google qsim 5.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 4.18 ms | TensorCircuit 275 µs | Faster TensorCircuit 15.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 8.90 ms | TensorCircuit 522 µs | Faster TensorCircuit 17.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 13.6 ms | TensorCircuit 1.42 ms | Faster TensorCircuit 9.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 19.9 ms | TensorCircuit 45.6 ms | Faster Google qsim 2.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 69.5 ms | TensorCircuit 1.43 s | Faster Google qsim 20.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 1.46 s | TensorCircuit 45.3 s | Faster Google qsim 31.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Google qsim 9.13 ms | TensorCircuit 593 µs | Faster TensorCircuit 15.4× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Google qsim 14.1 ms | TensorCircuit 2.12 ms | Faster TensorCircuit 6.6× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Google qsim 23.0 ms | TensorCircuit 78.8 ms | Faster Google qsim 3.4× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Google qsim 158 ms | TensorCircuit 2.65 s | Faster Google qsim 16.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Google qsim 9.07 ms | TensorCircuit 537 µs | Faster TensorCircuit 16.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Google qsim 14.0 ms | TensorCircuit 1.74 ms | Faster TensorCircuit 8.1× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Google qsim 20.7 ms | TensorCircuit 60.3 ms | Faster Google qsim 2.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Google qsim 95.0 ms | TensorCircuit 1.90 s | Faster Google qsim 20.0× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 442 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 962 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 1.61 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 10.7 ms | Faster – |
MaxCut on a ring
QAOA over a cycle graph
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 2.67 ms | TensorCircuit 199 µs | Faster TensorCircuit 13.4× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 5.15 ms | TensorCircuit 387 µs | Faster TensorCircuit 13.3× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 7.52 ms | TensorCircuit 1.43 ms | Faster TensorCircuit 5.3× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 11.0 ms | TensorCircuit 21.2 ms | Faster Google qsim 1.9× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 41.3 ms | TensorCircuit 596 ms | Faster Google qsim 14.4× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 1.07 s | TensorCircuit 12.8 s | Faster Google qsim 11.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 2.74 ms | TensorCircuit 207 µs | Faster TensorCircuit 13.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 5.23 ms | TensorCircuit 428 µs | Faster TensorCircuit 12.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 7.74 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 3.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 12.0 ms | TensorCircuit 58.3 ms | Faster Google qsim 4.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 55.1 ms | TensorCircuit 1.66 s | Faster Google qsim 30.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 1.48 s | TensorCircuit 42.9 s | Faster Google qsim 29.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Google qsim 5.68 ms | TensorCircuit 541 µs | Faster TensorCircuit 10.5× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Google qsim 8.49 ms | TensorCircuit 2.90 ms | Faster TensorCircuit 2.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Google qsim 15.9 ms | TensorCircuit 96.2 ms | Faster Google qsim 6.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Google qsim 151 ms | TensorCircuit 2.50 s | Faster Google qsim 16.6× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Google qsim 5.52 ms | TensorCircuit 502 µs | Faster TensorCircuit 11.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Google qsim 8.38 ms | TensorCircuit 2.53 ms | Faster TensorCircuit 3.3× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Google qsim 13.2 ms | TensorCircuit 77.6 ms | Faster Google qsim 5.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Google qsim 87.2 ms | TensorCircuit 2.25 s | Faster Google qsim 25.8× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 372 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 858 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 4.31 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 104 ms | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | Google qsim 5.15 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | Google qsim 7.61 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | Google qsim 12.0 ms | TensorCircuit unsupported | Faster – |
MaxCut, arbitrary graph
QAOA over a random-edge graph
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 2.89 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 5.89 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 9.80 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 12.7 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 65.3 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 2.04 s | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 2.95 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 6.17 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 10.0 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 13.8 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 79.9 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 2.44 s | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit error | Faster – |
Sampling / IQP
Diagonal phase circuit between Hadamard layers
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 2.70 ms | TensorCircuit 209 µs | Faster TensorCircuit 12.9× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 5.02 ms | TensorCircuit 425 µs | Faster TensorCircuit 11.8× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 7.41 ms | TensorCircuit 1.49 ms | Faster TensorCircuit 5.0× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 10.8 ms | TensorCircuit 21.1 ms | Faster Google qsim 2.0× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 43.8 ms | TensorCircuit 633 ms | Faster Google qsim 14.5× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 1.11 s | TensorCircuit 13.7 s | Faster Google qsim 12.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 2.73 ms | TensorCircuit 229 µs | Faster TensorCircuit 11.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 5.21 ms | TensorCircuit 464 µs | Faster TensorCircuit 11.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 7.69 ms | TensorCircuit 2.04 ms | Faster TensorCircuit 3.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 11.8 ms | TensorCircuit 59.5 ms | Faster Google qsim 5.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 55.6 ms | TensorCircuit 1.53 s | Faster Google qsim 27.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 1.50 s | TensorCircuit 45.0 s | Faster Google qsim 29.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Google qsim 5.64 ms | TensorCircuit 568 µs | Faster TensorCircuit 9.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Google qsim 8.40 ms | TensorCircuit 2.94 ms | Faster TensorCircuit 2.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Google qsim 15.6 ms | TensorCircuit 96.1 ms | Faster Google qsim 6.1× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Google qsim 147 ms | TensorCircuit 2.76 s | Faster Google qsim 18.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Google qsim 5.43 ms | TensorCircuit 525 µs | Faster TensorCircuit 10.4× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Google qsim 8.08 ms | TensorCircuit 2.56 ms | Faster TensorCircuit 3.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Google qsim 13.3 ms | TensorCircuit 79.0 ms | Faster Google qsim 6.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Google qsim 88.2 ms | TensorCircuit 2.22 s | Faster Google qsim 25.1× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 425 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 898 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 4.39 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 104 ms | Faster – |
Quantum kernel feature map
Data-encoding circuit for kernel methods
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | Google qsim 2.02 ms | TensorCircuit 288 µs | Faster TensorCircuit 7.0× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | Google qsim 2.92 ms | TensorCircuit 871 µs | Faster TensorCircuit 3.3× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | Google qsim 5.13 ms | TensorCircuit 30.7 ms | Faster Google qsim 6.0× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | Google qsim 64.6 ms | TensorCircuit 1.28 ms | Faster TensorCircuit 50.5× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | Google qsim 93.4 ms | TensorCircuit 52.5 ms | Faster TensorCircuit 1.8× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | Google qsim 165 ms | TensorCircuit 1.09 s | Faster Google qsim 6.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | Google qsim 521 ms | TensorCircuit 8.45 ms | Faster TensorCircuit 61.7× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | Google qsim 739 ms | TensorCircuit 428 ms | Faster TensorCircuit 1.7× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | Google qsim 1.32 s | TensorCircuit 8.81 s | Faster Google qsim 6.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | Google qsim 2.10 s | TensorCircuit 79.4 ms | Faster TensorCircuit 26.5× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | Google qsim 2.98 s | TensorCircuit 1.79 s | Faster TensorCircuit 1.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | Google qsim 5.29 s | TensorCircuit error | Faster – |
Hardware-efficient VQE
RY/RZ layers with a CNOT ring
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 2.21 ms | TensorCircuit 211 µs | Faster TensorCircuit 10.5× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 4.06 ms | TensorCircuit 386 µs | Faster TensorCircuit 10.5× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 5.87 ms | TensorCircuit 1.50 ms | Faster TensorCircuit 3.9× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 8.94 ms | TensorCircuit 20.7 ms | Faster Google qsim 2.3× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 40.4 ms | TensorCircuit 488 ms | Faster Google qsim 12.1× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 1.09 s | TensorCircuit 13.7 s | Faster Google qsim 12.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 2.28 ms | TensorCircuit 212 µs | Faster TensorCircuit 10.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 4.17 ms | TensorCircuit 454 µs | Faster TensorCircuit 9.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 6.29 ms | TensorCircuit 2.02 ms | Faster TensorCircuit 3.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 10.0 ms | TensorCircuit 53.9 ms | Faster Google qsim 5.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 52.9 ms | TensorCircuit 1.09 s | Faster Google qsim 20.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 1.51 s | TensorCircuit 27.5 s | Faster Google qsim 18.2× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 340 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 830 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 4.05 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 66.6 ms | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | Google qsim 4.13 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | Google qsim 5.93 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | Google qsim 9.69 ms | TensorCircuit unsupported | Faster – |
Strongly-entangling ansatz
RX/RY/RZ layers with a CNOT ring
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Google qsim 2.87 ms | TensorCircuit 224 µs | Faster TensorCircuit 12.8× |
Expectation value, local observable, depth 3 | Qubits 8 | Google qsim 5.35 ms | TensorCircuit 418 µs | Faster TensorCircuit 12.8× |
Expectation value, local observable, depth 3 | Qubits 12 | Google qsim 7.79 ms | TensorCircuit 1.46 ms | Faster TensorCircuit 5.3× |
Expectation value, local observable, depth 3 | Qubits 16 | Google qsim 11.4 ms | TensorCircuit 20.7 ms | Faster Google qsim 1.8× |
Expectation value, local observable, depth 3 | Qubits 20 | Google qsim 41.6 ms | TensorCircuit 467 ms | Faster Google qsim 11.2× |
Expectation value, local observable, depth 3 | Qubits 24 | Google qsim 1.05 s | TensorCircuit 13.0 s | Faster Google qsim 12.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Google qsim 2.98 ms | TensorCircuit 229 µs | Faster TensorCircuit 13.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Google qsim 5.57 ms | TensorCircuit 458 µs | Faster TensorCircuit 12.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Google qsim 8.01 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 4.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Google qsim 12.3 ms | TensorCircuit 50.3 ms | Faster Google qsim 4.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Google qsim 59.3 ms | TensorCircuit 1.13 s | Faster Google qsim 19.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Google qsim 1.44 s | TensorCircuit 26.2 s | Faster Google qsim 18.2× |
Gradient, local observable, depth 3 | Qubits 4 | Google qsim unsupported | TensorCircuit 395 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Google qsim unsupported | TensorCircuit 986 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Google qsim unsupported | TensorCircuit 4.28 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Google qsim unsupported | TensorCircuit 69.9 ms | Faster – |
Data re-uploading QML
Repeated encode-and-rotate classifier
| Workload | Qubits | Google qsim | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | Google qsim 3.99 ms | TensorCircuit 388 µs | Faster TensorCircuit 10.3× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | Google qsim 5.75 ms | TensorCircuit 1.20 ms | Faster TensorCircuit 4.8× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | Google qsim 9.07 ms | TensorCircuit 43.8 ms | Faster Google qsim 4.8× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | Google qsim 128 ms | TensorCircuit 2.00 ms | Faster TensorCircuit 63.8× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | Google qsim 186 ms | TensorCircuit 59.8 ms | Faster TensorCircuit 3.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | Google qsim 289 ms | TensorCircuit 2.02 s | Faster Google qsim 7.0× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | Google qsim 1.02 s | TensorCircuit 14.7 ms | Faster TensorCircuit 69.5× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | Google qsim 1.47 s | TensorCircuit 497 ms | Faster TensorCircuit 2.9× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | Google qsim 2.35 s | TensorCircuit 16.9 s | Faster Google qsim 7.2× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | Google qsim 4.09 s | TensorCircuit 107 ms | Faster TensorCircuit 38.1× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | Google qsim 5.89 s | TensorCircuit 2.17 s | Faster TensorCircuit 2.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | Google qsim 9.24 s | TensorCircuit error | Faster – |
Gradient, local observable, depth 2 | Qubits 8 | Google qsim unsupported | TensorCircuit 596 µs | Faster – |
Gradient, local observable, depth 2 | Qubits 12 | Google qsim unsupported | TensorCircuit 1.16 ms | Faster – |
Gradient, local observable, depth 2 | Qubits 16 | Google qsim unsupported | TensorCircuit 7.10 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 8 | Google qsim unsupported | TensorCircuit 3.46 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 12 | Google qsim unsupported | TensorCircuit 19.9 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 16 | Google qsim unsupported | TensorCircuit 424 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 8 | Google qsim unsupported | TensorCircuit 26.0 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 12 | Google qsim unsupported | TensorCircuit 243 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 16 | Google qsim unsupported | 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.