You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A circuit with reset operation(s) is not guaranteed to be deterministic when shots=None, a setting which is supposed to cause probabilities to be calculated exactly.
Informations
What is the current behavior?
A circuit with reset operation(s) is not guaranteed to be deterministic when
shots=None
, a setting which is supposed to cause probabilities to be calculated exactly.Steps to reproduce the problem
is not deterministic. The last line evaluates to (on successive runs):
[{0: 0.5166015625, 2: 0.4833984375}]
[{0: 0.4833984375, 2: 0.5166015625}]
[{0: 0.505859375, 2: 0.494140625}]
What is the expected behavior?
Should evaluate to
[{0: 0.5, 2: 0.5}]
Suggested solutions
[none]
Similar to #1810, I have created my own Sampler implementation based on Qiskit Terra's Statevector that supports resets exactly: https://github.com/Qiskit-Extensions/circuit-knitting-toolbox/blob/main/circuit_knitting_toolbox/utils/simulation.py
The text was updated successfully, but these errors were encountered: