-
Notifications
You must be signed in to change notification settings - Fork 989
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
Fix for issue #2777: it makes no sense to call simulator.run when ignore_measurement_results has been set to True #3618
Conversation
…n when ignore_measurement_results has been set to True
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What doesn't make sense about it? When ignore_measurement_results=true
the measurement is treated as a dephase instead of a collapse of the wavefunction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh i'm just seeing this: #2777 (comment)
Please add a test for this. Also, you can fix formatting by running |
@balopat could you please check this one? |
Raises a ValueError for DensityMatrixSimulator.run when ignore_measurement_results=True.
Fixes #2777.