Skip to content
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

fix: Matrix encoding roundtrip losing precision. Use f64 instead of f32s. #48

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

aborgna-q
Copy link
Collaborator

Fixes #45. The elements in the encoded matrix where deserialized into f32, which caused a precision loss.

@aborgna-q aborgna-q requested a review from johnchildren July 5, 2024 07:55
@aborgna-q aborgna-q force-pushed the ab/fix-diagonal-box branch from 41b80bc to c97d380 Compare July 5, 2024 08:23
@aborgna-q aborgna-q added this pull request to the merge queue Jul 5, 2024
Merged via the queue into main with commit 35dc198 Jul 5, 2024
6 checks passed
@aborgna-q aborgna-q deleted the ab/fix-diagonal-box branch July 5, 2024 08:55
@github-actions github-actions bot mentioned this pull request Jul 5, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 5, 2024
## 🤖 New release
* `tket-json-rs`: 0.4.1 -> 0.4.2

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## 0.4.2 (2024-07-05)

### Bug Fixes

- Add missing `CnRx` `CnRz` ops
([#49](#49))
- Matrix encoding roundtrip losing precision. Use `f64` instead of
`f32`s. ([#48](#48))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: hugrbot <[email protected]>
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.

Invalid serialization of DiagonalBox?
2 participants