Skip to content

qdt.QIntSignMag#1836

Merged
mpharrigan merged 3 commits intoquantumlib:mainfrom
mpharrigan:2024-06/qintsignmag
Apr 3, 2026
Merged

qdt.QIntSignMag#1836
mpharrigan merged 3 commits intoquantumlib:mainfrom
mpharrigan:2024-06/qintsignmag

Conversation

@mpharrigan
Copy link
Copy Markdown
Collaborator

"Sign magnitude" signed integers.

@ncrubin wrote this

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces sign-magnitude integer data types, QIntSignMag and CIntSignMag, along with their underlying bit encoding logic. The implementation includes support for converting to and from bit representations, domain calculation, and value validation. Unit tests have been added to verify the correctness of these new types, including handling of the dual representation of zero. I have no feedback to provide.

@mpharrigan mpharrigan merged commit 8e493cf into quantumlib:main Apr 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant