qsim icon indicating copy to clipboard operation
qsim copied to clipboard

qsimcirq performance overhead

Open sergeisakov opened this issue 3 years ago • 1 comments

qsimcirq Python performance overhead is very high for small circuits. Say, for a 10-qubit circuit, it can be two orders of magnitude larger than the actual simulation time.

sergeisakov avatar Sep 21 '21 15:09 sergeisakov

This profile graph is generated from a benchmark against 1000 circuits, each with 2 qubits and 4 gates. A notable culprit is the getattr method, which consumes ~10% of the runtime (compared to ~0.56% for the actual simulation)

95-martin-orion avatar Apr 08 '22 19:04 95-martin-orion