-
Notifications
You must be signed in to change notification settings - Fork 4
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
64 bit signed arithmetic support #57
Conversation
Also, clamp only for unsigned integer types
73200a8
to
02ed007
Compare
python/pecos/classical_interpreters/phir_classical_interpreter.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable. Not 100% sure on the issue around masking width. Seems that it may be best to integrate this to get some broader testing. I believe it should only impact QIR.
python/pecos/classical_interpreters/phir_classical_interpreter.py
Outdated
Show resolved
Hide resolved
also make size optional for signed integer type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried some examples myself. Everything worked and the code makes sense.
So LGTM except I think we should keep to 0.6.0.dev* and I will try to work on getting to a release sooner than later.
Co-authored-by: Ciarán Ryan-Anderson <70174051+qciaran@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Finish
BinArray2
with 64-bit signed as the default type and migrate to it fromBinArray
.Also, add a unit test file to expose interesting edge cases.