Qiskit Aer vs TensorCircuit
The same circuits, one host
Qiskit Aer and TensorCircuit both finished 118 of the 175 workloads measured here. Qiskit Aer was faster in 40 of them and TensorCircuit in 78. At the median TensorCircuit was 2.8× faster.
By circuit family
Who was faster where
| Circuit family | Workloads both finished | Qiskit Aer faster in | TensorCircuit faster in | Faster at the median |
|---|---|---|---|---|
| Workloads both finished 12 | Qiskit Aer faster in 3 | TensorCircuit faster in 9 | Faster at the median TensorCircuit 4.7× | |
| Workloads both finished 20 | Qiskit Aer faster in 6 | TensorCircuit faster in 14 | Faster at the median TensorCircuit 7.6× | |
| Workloads both finished 20 | Qiskit Aer faster in 9 | TensorCircuit faster in 11 | Faster at the median TensorCircuit 2.0× | |
| Workloads both finished 0 | Qiskit Aer faster in 0 | TensorCircuit faster in 0 | Faster at the median – | |
| Workloads both finished 20 | Qiskit Aer faster in 9 | TensorCircuit faster in 11 | Faster at the median TensorCircuit 2.1× | |
| Workloads both finished 11 | Qiskit Aer faster in 3 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 1.9× | |
| Workloads both finished 12 | Qiskit Aer faster in 3 | TensorCircuit faster in 9 | Faster at the median TensorCircuit 2.3× | |
| Workloads both finished 12 | Qiskit Aer faster in 4 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 2.4× | |
| Workloads both finished 11 | Qiskit Aer faster in 3 | TensorCircuit faster in 8 | Faster at the median TensorCircuit 2.7× |
Local circuit dynamics
Brickwork nearest-neighbour layers: lattice models, quench dynamics
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 901 µs | TensorCircuit 159 µs | Faster TensorCircuit 5.7× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 1.40 ms | TensorCircuit 249 µs | Faster TensorCircuit 5.6× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 2.58 ms | TensorCircuit 378 µs | Faster TensorCircuit 6.8× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 12.9 ms | TensorCircuit 2.17 ms | Faster TensorCircuit 5.9× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 216 ms | TensorCircuit 63.5 ms | Faster TensorCircuit 3.4× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 4.49 s | TensorCircuit 1.16 s | Faster TensorCircuit 3.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1000 µs | TensorCircuit 181 µs | Faster TensorCircuit 5.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 1.57 ms | TensorCircuit 285 µs | Faster TensorCircuit 5.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 3.20 ms | TensorCircuit 848 µs | Faster TensorCircuit 3.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 20.9 ms | TensorCircuit 33.5 ms | Faster Qiskit Aer 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 368 ms | TensorCircuit 735 ms | Faster Qiskit Aer 2.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 7.41 s | TensorCircuit 16.2 s | Faster Qiskit Aer 2.2× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 253 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 426 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 758 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 5.49 ms | Faster – |
Hamiltonian time evolution
Trotterised spin chain: ZZ + XX couplings with local fields
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 2.49 ms | TensorCircuit 267 µs | Faster TensorCircuit 9.3× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 5.23 ms | TensorCircuit 468 µs | Faster TensorCircuit 11.2× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 13.8 ms | TensorCircuit 749 µs | Faster TensorCircuit 18.5× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 43.3 ms | TensorCircuit 4.46 ms | Faster TensorCircuit 9.7× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 666 ms | TensorCircuit 164 ms | Faster TensorCircuit 4.1× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 12.9 s | TensorCircuit 6.20 s | Faster TensorCircuit 2.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 2.62 ms | TensorCircuit 275 µs | Faster TensorCircuit 9.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 5.52 ms | TensorCircuit 522 µs | Faster TensorCircuit 10.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 14.4 ms | TensorCircuit 1.42 ms | Faster TensorCircuit 10.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 51.4 ms | TensorCircuit 45.6 ms | Faster TensorCircuit 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 806 ms | TensorCircuit 1.43 s | Faster Qiskit Aer 1.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 15.9 s | TensorCircuit 45.3 s | Faster Qiskit Aer 2.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Qiskit Aer 5.39 ms | TensorCircuit 593 µs | Faster TensorCircuit 9.1× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Qiskit Aer 14.7 ms | TensorCircuit 2.12 ms | Faster TensorCircuit 6.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Qiskit Aer 60.2 ms | TensorCircuit 78.8 ms | Faster Qiskit Aer 1.3× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Qiskit Aer 981 ms | TensorCircuit 2.65 s | Faster Qiskit Aer 2.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Qiskit Aer 5.31 ms | TensorCircuit 537 µs | Faster TensorCircuit 9.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Qiskit Aer 14.3 ms | TensorCircuit 1.74 ms | Faster TensorCircuit 8.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Qiskit Aer 51.3 ms | TensorCircuit 60.3 ms | Faster Qiskit Aer 1.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Qiskit Aer 808 ms | TensorCircuit 1.90 s | Faster Qiskit Aer 2.3× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 442 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 962 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 1.61 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 10.7 ms | Faster – |
MaxCut on a ring
QAOA over a cycle graph
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 1.56 ms | TensorCircuit 199 µs | Faster TensorCircuit 7.8× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 2.71 ms | TensorCircuit 387 µs | Faster TensorCircuit 7.0× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 5.99 ms | TensorCircuit 1.43 ms | Faster TensorCircuit 4.2× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 30.4 ms | TensorCircuit 21.2 ms | Faster TensorCircuit 1.4× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 517 ms | TensorCircuit 596 ms | Faster Qiskit Aer 1.2× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 9.94 s | TensorCircuit 12.8 s | Faster Qiskit Aer 1.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1.62 ms | TensorCircuit 207 µs | Faster TensorCircuit 7.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 2.99 ms | TensorCircuit 428 µs | Faster TensorCircuit 7.0× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 6.66 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 3.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 38.1 ms | TensorCircuit 58.3 ms | Faster Qiskit Aer 1.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 672 ms | TensorCircuit 1.66 s | Faster Qiskit Aer 2.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 12.8 s | TensorCircuit 42.9 s | Faster Qiskit Aer 3.3× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Qiskit Aer 3.01 ms | TensorCircuit 541 µs | Faster TensorCircuit 5.6× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Qiskit Aer 7.21 ms | TensorCircuit 2.90 ms | Faster TensorCircuit 2.5× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Qiskit Aer 47.7 ms | TensorCircuit 96.2 ms | Faster Qiskit Aer 2.0× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Qiskit Aer 858 ms | TensorCircuit 2.50 s | Faster Qiskit Aer 2.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Qiskit Aer 2.92 ms | TensorCircuit 502 µs | Faster TensorCircuit 5.8× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Qiskit Aer 6.85 ms | TensorCircuit 2.53 ms | Faster TensorCircuit 2.7× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Qiskit Aer 39.4 ms | TensorCircuit 77.6 ms | Faster Qiskit Aer 2.0× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Qiskit Aer 685 ms | TensorCircuit 2.25 s | Faster Qiskit Aer 3.3× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 372 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 858 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 4.31 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 104 ms | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 2.93 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 6.43 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 31.0 ms | TensorCircuit unsupported | Faster – |
MaxCut, arbitrary graph
QAOA over a random-edge graph
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 1.76 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 3.41 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 8.53 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 36.5 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 678 ms | TensorCircuit error | Faster – |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 13.8 s | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1.83 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 3.68 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 9.34 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 45.3 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 820 ms | TensorCircuit error | Faster – |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 16.7 s | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit error | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit error | Faster – |
Sampling / IQP
Diagonal phase circuit between Hadamard layers
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 1.69 ms | TensorCircuit 209 µs | Faster TensorCircuit 8.1× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 2.99 ms | TensorCircuit 425 µs | Faster TensorCircuit 7.0× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 6.66 ms | TensorCircuit 1.49 ms | Faster TensorCircuit 4.5× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 31.8 ms | TensorCircuit 21.1 ms | Faster TensorCircuit 1.5× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 540 ms | TensorCircuit 633 ms | Faster Qiskit Aer 1.2× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 10.6 s | TensorCircuit 13.7 s | Faster Qiskit Aer 1.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1.79 ms | TensorCircuit 229 µs | Faster TensorCircuit 7.8× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 3.21 ms | TensorCircuit 464 µs | Faster TensorCircuit 6.9× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 7.28 ms | TensorCircuit 2.04 ms | Faster TensorCircuit 3.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 39.6 ms | TensorCircuit 59.5 ms | Faster Qiskit Aer 1.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 681 ms | TensorCircuit 1.53 s | Faster Qiskit Aer 2.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 13.5 s | TensorCircuit 45.0 s | Faster Qiskit Aer 3.3× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 8 | Qiskit Aer 3.22 ms | TensorCircuit 568 µs | Faster TensorCircuit 5.7× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 12 | Qiskit Aer 7.83 ms | TensorCircuit 2.94 ms | Faster TensorCircuit 2.7× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 16 | Qiskit Aer 49.3 ms | TensorCircuit 96.1 ms | Faster Qiskit Aer 1.9× |
Expectation value, global observable (pauli_mix), depth 3 | Qubits 20 | Qiskit Aer 873 ms | TensorCircuit 2.76 s | Faster Qiskit Aer 3.2× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 8 | Qiskit Aer 3.20 ms | TensorCircuit 525 µs | Faster TensorCircuit 6.1× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 12 | Qiskit Aer 7.36 ms | TensorCircuit 2.56 ms | Faster TensorCircuit 2.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 16 | Qiskit Aer 40.6 ms | TensorCircuit 79.0 ms | Faster Qiskit Aer 1.9× |
Expectation value, global observable (zz_sum), depth 3 | Qubits 20 | Qiskit Aer 703 ms | TensorCircuit 2.22 s | Faster Qiskit Aer 3.2× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 425 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 898 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 4.39 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 104 ms | Faster – |
Quantum kernel feature map
Data-encoding circuit for kernel methods
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | Qiskit Aer 1.51 ms | TensorCircuit 288 µs | Faster TensorCircuit 5.3× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | Qiskit Aer 3.10 ms | TensorCircuit 871 µs | Faster TensorCircuit 3.6× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | Qiskit Aer 27.6 ms | TensorCircuit 30.7 ms | Faster Qiskit Aer 1.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | Qiskit Aer 47.6 ms | TensorCircuit 1.28 ms | Faster TensorCircuit 37.3× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | Qiskit Aer 98.4 ms | TensorCircuit 52.5 ms | Faster TensorCircuit 1.9× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | Qiskit Aer 869 ms | TensorCircuit 1.09 s | Faster Qiskit Aer 1.3× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | Qiskit Aer 383 ms | TensorCircuit 8.45 ms | Faster TensorCircuit 45.3× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | Qiskit Aer 781 ms | TensorCircuit 428 ms | Faster TensorCircuit 1.8× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | Qiskit Aer 6.98 s | TensorCircuit 8.81 s | Faster Qiskit Aer 1.3× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | Qiskit Aer 1.51 s | TensorCircuit 79.4 ms | Faster TensorCircuit 19.1× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | Qiskit Aer 3.14 s | TensorCircuit 1.79 s | Faster TensorCircuit 1.8× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | Qiskit Aer 27.9 s | TensorCircuit error | Faster – |
Hardware-efficient VQE
RY/RZ layers with a CNOT ring
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 1.31 ms | TensorCircuit 211 µs | Faster TensorCircuit 6.2× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 2.20 ms | TensorCircuit 386 µs | Faster TensorCircuit 5.7× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 4.69 ms | TensorCircuit 1.50 ms | Faster TensorCircuit 3.1× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 40.5 ms | TensorCircuit 20.7 ms | Faster TensorCircuit 2.0× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 738 ms | TensorCircuit 488 ms | Faster TensorCircuit 1.5× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 14.6 s | TensorCircuit 13.7 s | Faster TensorCircuit 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1.39 ms | TensorCircuit 212 µs | Faster TensorCircuit 6.5× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 2.41 ms | TensorCircuit 454 µs | Faster TensorCircuit 5.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 5.23 ms | TensorCircuit 2.02 ms | Faster TensorCircuit 2.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 48.2 ms | TensorCircuit 53.9 ms | Faster Qiskit Aer 1.1× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 899 ms | TensorCircuit 1.09 s | Faster Qiskit Aer 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 17.6 s | TensorCircuit 27.5 s | Faster Qiskit Aer 1.6× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 340 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 830 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 4.05 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 66.6 ms | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 2.31 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 4.81 ms | TensorCircuit unsupported | Faster – |
Statevector, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 42.0 ms | TensorCircuit unsupported | Faster – |
Strongly-entangling ansatz
RX/RY/RZ layers with a CNOT ring
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, local observable, depth 3 | Qubits 4 | Qiskit Aer 1.60 ms | TensorCircuit 224 µs | Faster TensorCircuit 7.2× |
Expectation value, local observable, depth 3 | Qubits 8 | Qiskit Aer 2.79 ms | TensorCircuit 418 µs | Faster TensorCircuit 6.7× |
Expectation value, local observable, depth 3 | Qubits 12 | Qiskit Aer 6.03 ms | TensorCircuit 1.46 ms | Faster TensorCircuit 4.1× |
Expectation value, local observable, depth 3 | Qubits 16 | Qiskit Aer 32.4 ms | TensorCircuit 20.7 ms | Faster TensorCircuit 1.6× |
Expectation value, local observable, depth 3 | Qubits 20 | Qiskit Aer 551 ms | TensorCircuit 467 ms | Faster TensorCircuit 1.2× |
Expectation value, local observable, depth 3 | Qubits 24 | Qiskit Aer 10.8 s | TensorCircuit 13.0 s | Faster Qiskit Aer 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 4 | Qiskit Aer 1.66 ms | TensorCircuit 229 µs | Faster TensorCircuit 7.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 8 | Qiskit Aer 2.94 ms | TensorCircuit 458 µs | Faster TensorCircuit 6.4× |
Expectation value, global observable (all_z), depth 3 | Qubits 12 | Qiskit Aer 6.63 ms | TensorCircuit 2.01 ms | Faster TensorCircuit 3.3× |
Expectation value, global observable (all_z), depth 3 | Qubits 16 | Qiskit Aer 40.6 ms | TensorCircuit 50.3 ms | Faster Qiskit Aer 1.2× |
Expectation value, global observable (all_z), depth 3 | Qubits 20 | Qiskit Aer 697 ms | TensorCircuit 1.13 s | Faster Qiskit Aer 1.6× |
Expectation value, global observable (all_z), depth 3 | Qubits 24 | Qiskit Aer 13.7 s | TensorCircuit 26.2 s | Faster Qiskit Aer 1.9× |
Gradient, local observable, depth 3 | Qubits 4 | Qiskit Aer unsupported | TensorCircuit 395 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 986 µs | Faster – |
Gradient, local observable, depth 3 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 4.28 ms | Faster – |
Gradient, local observable, depth 3 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 69.9 ms | Faster – |
Data re-uploading QML
Repeated encode-and-rotate classifier
| Workload | Qubits | Qiskit Aer | TensorCircuit | Faster |
|---|---|---|---|---|
Expectation value, global observable (all_z), depth 2 | Qubits 8 | Qiskit Aer 2.33 ms | TensorCircuit 388 µs | Faster TensorCircuit 6.0× |
Expectation value, global observable (all_z), depth 2 | Qubits 12 | Qiskit Aer 5.07 ms | TensorCircuit 1.20 ms | Faster TensorCircuit 4.2× |
Expectation value, global observable (all_z), depth 2 | Qubits 16 | Qiskit Aer 38.8 ms | TensorCircuit 43.8 ms | Faster Qiskit Aer 1.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 8 | Qiskit Aer 74.3 ms | TensorCircuit 2.00 ms | Faster TensorCircuit 37.1× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 12 | Qiskit Aer 162 ms | TensorCircuit 59.8 ms | Faster TensorCircuit 2.7× |
Expectation value, global observable (all_z), depth 2, batch of 32 | Qubits 16 | Qiskit Aer 1.24 s | TensorCircuit 2.02 s | Faster Qiskit Aer 1.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 8 | Qiskit Aer 591 ms | TensorCircuit 14.7 ms | Faster TensorCircuit 40.2× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 12 | Qiskit Aer 1.30 s | TensorCircuit 497 ms | Faster TensorCircuit 2.6× |
Expectation value, global observable (all_z), depth 2, batch of 256 | Qubits 16 | Qiskit Aer 9.89 s | TensorCircuit 16.9 s | Faster Qiskit Aer 1.7× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 8 | Qiskit Aer 2.37 s | TensorCircuit 107 ms | Faster TensorCircuit 22.0× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 12 | Qiskit Aer 5.23 s | TensorCircuit 2.17 s | Faster TensorCircuit 2.4× |
Expectation value, global observable (all_z), depth 2, batch of 1024 | Qubits 16 | Qiskit Aer 39.6 s | TensorCircuit error | Faster – |
Gradient, local observable, depth 2 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 596 µs | Faster – |
Gradient, local observable, depth 2 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 1.16 ms | Faster – |
Gradient, local observable, depth 2 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 7.10 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 3.46 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 19.9 ms | Faster – |
Gradient, local observable, depth 2, batch of 32 | Qubits 16 | Qiskit Aer unsupported | TensorCircuit 424 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 8 | Qiskit Aer unsupported | TensorCircuit 26.0 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 12 | Qiskit Aer unsupported | TensorCircuit 243 ms | Faster – |
Gradient, local observable, depth 2, batch of 256 | Qubits 16 | Qiskit Aer 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.