-
Notifications
You must be signed in to change notification settings - Fork 294
Correctly distinguish measurement result and boolean variable #1952
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
Conversation
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
997ca6c to
5fb5e4e
Compare
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
as regular variable. * Towards fixing issue#1777
* Wrap the kernel in test function
049d8a7 to
0d8027c
Compare
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
| # CHECK: %[[VAL_18:.*]] = cc.alloca !cc.stdvec<i1> | ||
| # CHECK: cc.store %[[VAL_17]], %[[VAL_18]] : !cc.ptr<!cc.stdvec<i1>> |
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.
This code doesn't create a vector, doesn't create any storage to save a vector's data, doesn't copy the vector, does potentially create a memory leak on the stack, and in the end is a dead store to a memory location that will never be read.
Uh oh!
There was an error while loading. Please reload this page.