[BUG] dynamic_one_shot
sample probability not always bounded by 1.
#5922
Labels
bug 🐛
Something isn't working
Expected behavior
dynamic_one_shot
always computes valid MCM circuits successfully.Actual behavior
For (very rare) configurations, the computed postselection probability can lie outside of$[0, 1]$ due to numerical rounding issues. This raises an error in the used binomial sampler.
Additional information
It was quite hard to find a point where this issue occurs. Deleting a few last digits from the
weights
array below already is enough to get to a successful evaluation.Source code
Tracebacks
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: