amazon-braket / amazon-braket-default-simulator-python

Quantum program simulators that can run locally
https://amazon-braket-default-simulator-python.readthedocs.io/
Apache License 2.0
67 stars 22 forks source link

fix: fix signed integer casting #261

Closed shpface closed 1 week ago

shpface commented 3 weeks ago

Issue #, if available:

Description of changes: Prior to this change, signed integer casting worked based on sign+magnitude. This change will use two's complement.

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (a4d7f98) to head (6a28689).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #261 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 48 48 Lines 3712 3711 -1 Branches 889 890 +1 ========================================= - Hits 3712 3711 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.