-
Notifications
You must be signed in to change notification settings - Fork 177
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
[Python Kernel] bool
to int
type casting issue
#1620
Labels
bug
Something isn't working
python-lang
Anything related to the Python CUDA Quantum language implementation
Comments
1tnguyen
added
bug
Something isn't working
python-lang
Anything related to the Python CUDA Quantum language implementation
labels
May 7, 2024
@schweitzpgi suggested that we should use |
1tnguyen
added a commit
to 1tnguyen/cuda-quantum
that referenced
this issue
May 10, 2024
1tnguyen
added a commit
that referenced
this issue
May 13, 2024
…n doing integer compare (#1654) * Fixed #1620 * Fix spell check * Use cc.CastOp rather than arith.Ext * Update python/cudaq/kernel/ast_bridge.py Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> * Python code format + apply the recommended change for the second place --------- Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
schweitzpgi
added a commit
to schweitzpgi/cuda-quantum
that referenced
this issue
Jun 3, 2024
…n doing integer compare (NVIDIA#1654) * Fixed NVIDIA#1620 * Fix spell check * Use cc.CastOp rather than arith.Ext * Update python/cudaq/kernel/ast_bridge.py Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> * Python code format + apply the recommended change for the second place --------- Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
schweitzpgi
added a commit
to schweitzpgi/cuda-quantum
that referenced
this issue
Jun 3, 2024
…n doing integer compare (NVIDIA#1654) * Fixed NVIDIA#1620 * Fix spell check * Use cc.CastOp rather than arith.Ext * Update python/cudaq/kernel/ast_bridge.py Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> * Python code format + apply the recommended change for the second place --------- Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
schweitzpgi
added a commit
to schweitzpgi/cuda-quantum
that referenced
this issue
Jun 4, 2024
…n doing integer compare (NVIDIA#1654) * Fixed NVIDIA#1620 * Fix spell check * Use cc.CastOp rather than arith.Ext * Update python/cudaq/kernel/ast_bridge.py Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> * Python code format + apply the recommended change for the second place --------- Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
MarkusPfundstein
pushed a commit
to fermioniq/cuda-quantum
that referenced
this issue
Sep 23, 2024
…n doing integer compare (NVIDIA#1654) * Fixed NVIDIA#1620 * Fix spell check * Use cc.CastOp rather than arith.Ext * Update python/cudaq/kernel/ast_bridge.py Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> * Python code format + apply the recommended change for the second place --------- Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
python-lang
Anything related to the Python CUDA Quantum language implementation
The below kernel
results in the following IR:
If
bit==True
(%7 == true
in the above IR), it looks like theicmp
returnsfalse
. A quick search of LLVM doc indicated thatsext i1 ... i64
may converttrue
to -1.In fact, the below kernel resulted in the correct distribution (may need the fixes from #1619 to get the measurement feedback detection working properly).
The text was updated successfully, but these errors were encountered: