-
Notifications
You must be signed in to change notification settings - Fork 184
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
Better support for QuakeValue
in Python
#809
Conversation
- Support division - Fix bug in Quake for_loop: we missed a cast to index type when the start index is a QuakeValue.
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
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. Do you need to add a test for the C++ in builder_tester.cpp?
Thanks! I've added equivalent checks for C++ |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
QuakeValue
in PythonQuakeValue
in Python
Description
Support division (resolved Additional support for Quake values in Python #754)
Fix bug in Quake
for_loop
: we missed a cast to index type when the start index is aQuakeValue
.Also, fix first tutorial, showing the use of
expectation()
to retrieve the expectation result (dumping the result will show empty counts distribution since we don't do shots-based sampling).