Open caryan opened 5 years ago
That is surprising and curious. (You're not secretly decoding some 4K video in the background are you? :))
Results for me, in same order
# NUM_SHOTS = 973
4.5 ms ± 17.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
# NUM_SHOTS = 974
4.62 ms ± 11.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
@caryan you still seeing this behaviour?
It is not super clear which part is to blame (it could just be the serialization/deserialization) but there is a surprising performance hit at a specific number of shots for a simple 1Q program
The QVM shows that "Finished in" goes from 2-3 ms to 9-10ms so a surprising jump but not largely responsible.