XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
737 stars 188 forks source link

Uses scipy's Haar measure functions #731

Open nquesada opened 1 year ago

nquesada commented 1 year ago

Scipy implements the generation of Haar random unitary and orthogonal matrices, thus there is no need to implement them internally.

codecov[bot] commented 1 year ago

Codecov Report

Merging #731 (fb11e28) into master (9a9a352) will decrease coverage by 0.00%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #731 +/- ## ========================================== - Coverage 98.33% 98.33% -0.01% ========================================== Files 78 78 Lines 9603 9602 -1 ========================================== - Hits 9443 9442 -1 Misses 160 160 ``` | [Impacted Files](https://codecov.io/gh/XanaduAI/strawberryfields/pull/731?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [strawberryfields/utils/random\_numbers\_matrices.py](https://codecov.io/gh/XanaduAI/strawberryfields/pull/731/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-c3RyYXdiZXJyeWZpZWxkcy91dGlscy9yYW5kb21fbnVtYmVyc19tYXRyaWNlcy5weQ==) | `100.00% <100.00%> (ø)` | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/XanaduAI/strawberryfields/pull/731?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/XanaduAI/strawberryfields/pull/731?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [9a9a352...fb11e28](https://codecov.io/gh/XanaduAI/strawberryfields/pull/731?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI).