-
Notifications
You must be signed in to change notification settings - Fork 354
Use collection of measurements #4208
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
Open
khalatepradnya
wants to merge
24
commits into
NVIDIA:main
Choose a base branch
from
khalatepradnya:use-bag-of-measures
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8dec777
* Start replacing vector of measurements with the new type
khalatepradnya d7caf8a
* Add conversion patterns for the new `quake::MeasurementsType` type
khalatepradnya 4ca8fbe
* Update C++ frontend to use the new type
khalatepradnya 0b0e5b3
* Update the add-measurements pass and combine-measurements pass to use
khalatepradnya 2cdb63f
* Update expand-measurements pass
khalatepradnya 3ac6378
* Update all the Quake tests to use the new type
khalatepradnya 81cf07f
* Python side changes
khalatepradnya 48c4a43
Merge branch 'main' into use-bag-of-measures
khalatepradnya 5c59c88
* Missed C++ kernel builder
khalatepradnya 5ec6d9c
Merge branch 'main' into use-bag-of-measures
khalatepradnya b2f3c25
* Addressing review comments - use the type from discriminate (not `i1`
khalatepradnya 9219b26
* Code formatting
khalatepradnya f6581cc
* Addressing review comment (partially) - add a comment on the
khalatepradnya e2aec45
Merge branch 'main' into use-bag-of-measures
khalatepradnya 3db5f99
Merge branch 'main' into use-bag-of-measures
khalatepradnya b8adbaa
* Addressing review comment(s) and offline discussion
khalatepradnya 86c0a4a
* Use the new intrinsic in QIR codegen
khalatepradnya 35c3e9f
Merge branch 'main' into use-bag-of-measures
khalatepradnya d6f52bd
Merge branch 'main' into use-bag-of-measures
khalatepradnya 33ecca8
Revert "* Use the new intrinsic in QIR codegen"
khalatepradnya 7060af5
Apply suggestions from code review
khalatepradnya e60e6f1
* Code formatting
khalatepradnya a1466f0
* Also check individual measurement (not just vector) for getting the
khalatepradnya e1ca898
Merge branch 'main' into use-bag-of-measures
khalatepradnya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,9 @@ struct QuakeTypeConverter : public TypeConverter { | |
| addConversion([](quake::MeasureType ty) { | ||
| return IntegerType::get(ty.getContext(), 64); | ||
| }); | ||
| addConversion([](quake::MeasurementsType ty) { | ||
| return cudaq::cc::PointerType::get(IntegerType::get(ty.getContext(), 8)); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why a pointer?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is a collection of measurements, chose a pointer like we would have for say, |
||
| }); | ||
| } | ||
| }; | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.