KEMBAR78
Fix synthesis of vectors with small integers. by schweitzpgi · Pull Request #1395 · NVIDIA/cuda-quantum · GitHub
Skip to content

Conversation

@schweitzpgi
Copy link
Collaborator

@schweitzpgi schweitzpgi commented Mar 14, 2024

The constant array op is using at ArrayAttr, which does not naturally support integral sizes less than i32. This patch upcasts the short values to i32 to get around the issue. Another approach would be to have the constant array op take a DenseArrayAttr, which does support the shorter integral types. Might need a custom parser/pretty printer if we go that route?

Fix #1384

The constant array op is using at ArrayAttr, which does not naturally
support integral sizes less than i32. This patch upcasts the short
values to i32 to get around the issue. Another approach would be to
have the constant array op take a DenseArrayAttr, which does support
the shorter integral types. Might need a custom parser/pretty printer
if we go that route?
@schweitzpgi schweitzpgi changed the title Fix #1348 - synthesis of vectors with small integers. Fix #1384 - synthesis of vectors with small integers. Mar 14, 2024
@schweitzpgi schweitzpgi requested a review from 1tnguyen March 14, 2024 00:54
Copy link
Collaborator

@1tnguyen 1tnguyen left a comment

Choose a reason for hiding this comment

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

LGTM.

@schweitzpgi schweitzpgi enabled auto-merge (squash) March 14, 2024 02:03
@schweitzpgi
Copy link
Collaborator Author

schweitzpgi commented Mar 14, 2024

/ok to test

Command Bot: Processing...

@schweitzpgi schweitzpgi merged commit 30e1d3b into NVIDIA:main Mar 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
@bettinaheim bettinaheim changed the title Fix #1384 - synthesis of vectors with small integers. Fix synthesis of vectors with small integers. Apr 17, 2024
@bettinaheim bettinaheim added the bug fix To be listed under Bug Fixes in the release notes label 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

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.

QuakeSynthesizer cannot handle std::vector<char> argument type

3 participants