Skip to content

Better support for QuakeValue in Python - #809

Merged
1tnguyen merged 5 commits into
NVIDIA:mainfrom
1tnguyen:tnguyen/py-quake-val
Oct 24, 2023
Merged

1tnguyen merged 5 commits into
NVIDIA:mainfrom
1tnguyen:tnguyen/py-quake-val

Conversation

@1tnguyen

@1tnguyen 1tnguyen commented Oct 23, 2023 •

Copy link
Copy Markdown
Collaborator

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 a QuakeValue.

  • 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).

- Support division

- Fix bug in Quake for_loop: we missed a cast to index type when the start index is a QuakeValue.
@1tnguyen
1tnguyen requested a review from schweitzpgi October 23, 2023 06:37
@github-actions

Copy link
Copy Markdown

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

github-actions Bot pushed a commit that referenced this pull request Oct 23, 2023
@github-actions

Copy link
Copy Markdown

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

github-actions Bot pushed a commit that referenced this pull request Oct 23, 2023

@amccaskey amccaskey left a comment

Copy link
Copy Markdown
Collaborator

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?

@1tnguyen

Copy link
Copy Markdown
Collaborator Author

Thanks! I've added equivalent checks for C++ kernel_builder.

@github-actions

Copy link
Copy Markdown

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

github-actions Bot pushed a commit that referenced this pull request Oct 24, 2023
@1tnguyen
1tnguyen merged commit 9c027b9 into NVIDIA:main Oct 24, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 24, 2023
@bettinaheim bettinaheim added the release notes Changes need to be captured in the release notes label Oct 26, 2023
@bettinaheim bettinaheim added this to the release 0.5.0 milestone Oct 26, 2023
@bettinaheim bettinaheim changed the title Add more supports for QuakeValue in Python Better support for QuakeValue in Python Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release notes Changes need to be captured in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional support for Quake values in Python

3 participants