Open adekusar-drl opened 3 weeks ago
After some benchmarking with @ElePT it seems that two possible culprits could be
Sampler
still has a caching of circuits StatevectorSampler
seems to have some new overhead in type conversionsThat being said, in your example a significant chunk of time is spent in the removal of final measurements which could maybe be sped up (e.g. by porting to Rust).
What should we add?
The implementation of the
Sampler
primitive is significantly slower than the V1 implementation on a small number of qubits.Here is a script:
Here is the result on Mac.
On the larger numbers, e.g. 15 qubits, the results are comparable.