-
Notifications
You must be signed in to change notification settings - Fork 377
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 QuantumError sometimes casting probabilities to complex #640
Conversation
Thanks for starting this, the other thing which would probably be good here is to add a test case that runs something like:
to ensure we don't regress here moving forward. |
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.
LGTM, just one stray comment in there then I think we're good to merge this.
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.
LGTM, thanks for updating
(cherry picked from commit d3ed41e)
Summary
This PR is currently blocked by bugs in Aer. This PR will hopefully fix some of those bugs.
Details and comments
Currently, Noise Models are being received on the C++ side with probability attributes having (what appears to be) complex types -
we have yet to identify whybut the existing changes will at least raise a reasonable exception when it does happen.Bug was caused by a missing cast from complex type to float type in a QuantumError factory. Thanks @chriseclectic