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

[core] Add quantum reference product type #2254

Merged
merged 13 commits into from
Oct 8, 2024

Conversation

schweitzpgi
Copy link
Collaborator

@schweitzpgi schweitzpgi commented Oct 4, 2024

Replaces #2199

Description

amccaskey and others added 9 commits October 4, 2024 15:48
Signed-off-by: Alex McCaskey <[email protected]>
operations: quake.make_struq and quake.get_member.  These add the
utility of having a product quantum reference type (to logically group
together sets of qubits) but keep the classical and quantum dialects
distinct.

Update the tests, python ast bridge, C++ bridge, add codegen patterns,
etc.
Add roundtrip test on new type and ops.

Update the python tests. Also change test to eliminate deprecation
warnings.

Add invlid IR checks for new operations.

Add sanity checks. We do not want to allow a quantum struct that holds
anything but non-owning references to qubits or qubit collections.

Remove unused folder pattern.

Workaround for overly assertive compiler warning.

Reenable the hash-and-cache of extract_ref ops in the C++ bridge. This
is a dubious optimization that we may actually want to take out at some
point, but that should be part of a distinct/different PR.

Update test to work around that pytest output can be shuffled.

Add case to python for quake.struq type.  Another python fix.

Add explicit checks to utils.py.

Stab in the dark.
Copy link

github-actions bot commented Oct 5, 2024

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 5, 2024
@schweitzpgi schweitzpgi enabled auto-merge (squash) October 5, 2024 17:35
Copy link

github-actions bot commented Oct 5, 2024

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 5, 2024
@amccaskey
Copy link
Collaborator

might be good to add a test for lowering to QIR and execution

Copy link

github-actions bot commented Oct 7, 2024

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 7, 2024
@schweitzpgi
Copy link
Collaborator Author

might be good to add a test for lowering to QIR and execution

Done in d3ecc98

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

@schweitzpgi schweitzpgi merged commit e21a32b into NVIDIA:main Oct 8, 2024
129 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2024
@schweitzpgi schweitzpgi deleted the ch-qstruct.3 branch October 8, 2024 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants