XanaduAI / MrMustard

A differentiable bridge between phase space and Fock space
https://mrmustard.readthedocs.io/
Apache License 2.0
78 stars 27 forks source link

adds new vanilla_average strategy #458

Closed ziofil closed 2 months ago

ziofil commented 3 months ago

New stable Fock strategy! Credit: Eli Turn on by setting settings.USE_VANILLA_AVERAGE = True

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 97.77778% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.28%. Comparing base (5ffa1bb) to head (99d0104). Report is 1 commits behind head on develop.

Files Patch % Lines
mrmustard/math/lattice/pivots.py 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #458 +/- ## =========================================== + Coverage 89.25% 89.28% +0.02% =========================================== Files 102 102 Lines 7214 7242 +28 =========================================== + Hits 6439 6466 +27 - Misses 775 776 +1 ``` | [Files](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [mrmustard/math/backend\_numpy.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Fbackend_numpy.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvYmFja2VuZF9udW1weS5weQ==) | `100.00% <100.00%> (ø)` | | | [mrmustard/math/backend\_tensorflow.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Fbackend_tensorflow.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvYmFja2VuZF90ZW5zb3JmbG93LnB5) | `100.00% <ø> (ø)` | | | [mrmustard/math/lattice/steps.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Flattice%2Fsteps.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvbGF0dGljZS9zdGVwcy5weQ==) | `36.06% <100.00%> (+1.06%)` | :arrow_up: | | [mrmustard/math/lattice/strategies/beamsplitter.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Flattice%2Fstrategies%2Fbeamsplitter.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvbGF0dGljZS9zdHJhdGVnaWVzL2JlYW1zcGxpdHRlci5weQ==) | `100.00% <100.00%> (ø)` | | | [mrmustard/math/lattice/strategies/vanilla.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Flattice%2Fstrategies%2Fvanilla.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvbGF0dGljZS9zdHJhdGVnaWVzL3ZhbmlsbGEucHk=) | `100.00% <100.00%> (ø)` | | | [mrmustard/physics/ansatze.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fphysics%2Fansatze.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL3BoeXNpY3MvYW5zYXR6ZS5weQ==) | `97.15% <100.00%> (+0.06%)` | :arrow_up: | | [mrmustard/utils/settings.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Futils%2Fsettings.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL3V0aWxzL3NldHRpbmdzLnB5) | `100.00% <100.00%> (ø)` | | | [mrmustard/math/lattice/pivots.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?src=pr&el=tree&filepath=mrmustard%2Fmath%2Flattice%2Fpivots.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL21hdGgvbGF0dGljZS9waXZvdHMucHk=) | `42.10% <66.66%> (+4.60%)` | :arrow_up: | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?dropdown=coverage&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://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [5ffa1bb...99d0104](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/458?dropdown=coverage&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).