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

Fix issue with unknown base on attribute call (throw an error) #1499

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

amccaskey
Copy link
Collaborator

@amccaskey amccaskey commented Apr 11, 2024

Fixes #1496 - issue with unknown attribute call expression

import cudaq
@cudaq.kernel
def test_state(N: int):
    q = cudaq.qvector(N)
    h(q[0])
    kernel.h(q[0]) # user error
test_state.compile()

Copy link

copy-pr-bot bot commented Apr 11, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
@bmhowe23
Copy link
Collaborator

Fixes #1496, right?

@amccaskey
Copy link
Collaborator Author

Fixes #1496, right?

Yes. I added that to the description

@amccaskey
Copy link
Collaborator Author

amccaskey commented Apr 11, 2024

/ok to test

Command Bot: Processing...

Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
Copy link
Collaborator

@schweitzpgi schweitzpgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@bmhowe23 bmhowe23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks, Alex!

@amccaskey
Copy link
Collaborator Author

amccaskey commented Apr 11, 2024

/ok to test

Command Bot: Processing...

@amccaskey amccaskey enabled auto-merge (squash) April 11, 2024 14:48
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Apr 11, 2024
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
@amccaskey
Copy link
Collaborator Author

amccaskey commented Apr 11, 2024

/ok to test

Command Bot: Processing...

@amccaskey amccaskey merged commit 1d13f08 into NVIDIA:main Apr 11, 2024
125 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2024
@bettinaheim bettinaheim added this to the release 0.7.1 milestone Apr 17, 2024
@bettinaheim bettinaheim added the bug fix To be listed under Bug Fixes in the release notes label Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix To be listed under Bug Fixes in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler doesn't raise an error when using kernel.h(q[0])
4 participants