Skip to content
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

Input argument to a kernel throws an error #2560

Open
4 tasks done
zohimchandani opened this issue Jan 30, 2025 · 0 comments
Open
4 tasks done

Input argument to a kernel throws an error #2560

zohimchandani opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working python bridge Involves the python bridge to quake

Comments

@zohimchandani
Copy link
Collaborator

zohimchandani commented Jan 30, 2025

Required prerequisites

  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!

Describe the bug

Kernel cant take a list of tuples as an input.

import cudaq 

@cudaq.kernel
def kernel(a: list[tuple]): 
    q = cudaq.qvector(2)

a =[(1,2)]

cudaq.sample(kernel, a)
Offending code:
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,

	 (offending source -> list[tuple])

Steps to reproduce the bug

NA

Expected behavior

NA

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment

NA

Suggestions

NA

@schweitzpgi schweitzpgi added bug Something isn't working python bridge Involves the python bridge to quake labels Jan 30, 2025
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 bridge Involves the python bridge to quake
Projects
None yet
Development

No branches or pull requests

2 participants