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

Make spin_op.distribute_terms batch more efficiently #1437

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

bmhowe23
Copy link
Collaborator

Resolves #1434

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 Mar 24, 2024
The new test_spin_op_random() test shows that sometimes
cudaq.SpinOperator.random() isn't generating enough terms in the return
value. This was traced down to duplicates being created, but since the
final spin op stores everything in an unordered_map, the duplicates were
being silently eliminated.
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 Mar 25, 2024
Copy link
Collaborator

@amccaskey amccaskey left a comment

Choose a reason for hiding this comment

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

+1

@bmhowe23 bmhowe23 enabled auto-merge (squash) March 25, 2024 20:18
@bmhowe23 bmhowe23 merged commit db855fa into NVIDIA:main Mar 25, 2024
133 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2024
@bmhowe23 bmhowe23 deleted the pr-fix-i1434 branch March 25, 2024 21:23
@bettinaheim bettinaheim added enhancement New feature or request performance labels Apr 17, 2024
@bettinaheim bettinaheim added this to the release 0.7.1 milestone Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

distribute_terms does not batch efficiently
3 participants