-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs on 'qsim_simulator' with repetitions option #662
Comments
Thanks for filing an issue @mchan90! From what I can gather, this error implies that 4000 repetitions were requested but @sergeisakov, at first glance I would guess this is related to this section of Lines 217 to 225 in e581751
I could imagine cumulative floating-point errors combined with an extremal random value could cause a single sample to be skipped in this loop. |
@mchan90, thank you for filling an issue. Could you share a minimal code that reproduces this error? |
@sergeisakov. Thank you for reply. Here's a simple code that reproduce error.
If this does not give an error, increase n_run or run script few times, because the error comes with a rare probability. |
Thank you. #663 should fix that. |
With very rare probability (less than 1% in my experience), qsim_simulator with repetitions fails.
For example,
run_out = qsim_simulator.run(program=circuit, repetitions=n_shot)
with n_shot=4000 fails with following error message
Usually, I avoid this error by following fix near the line 335 of "qsim_simulator.py" file.
But, this is just a workaround. Please, find the origin of this problem and resolve the problem.
The text was updated successfully, but these errors were encountered: