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

Remove warnings from state plotter #343

Closed SamFerracin closed 9 months ago

SamFerracin commented 9 months ago

Context:

from mrmustard.lab import *
Vacuum(1)

Executing the code above triggers a long list of annoying warnings, displayed between the recap of the state and the phase-space plot.

Description of the Change: This PR removes the cause of the warnings, without changing the way that the plot looks

sylviemonet commented 9 months ago

Tbh, I can not reproduce the same warnings on my dev container in the branch develop.

codecov[bot] commented 9 months ago

Codecov Report

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

Comparison is base (429b16c) 84.14% compared to head (7a76be4) 84.14%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #343 +/- ## ======================================== Coverage 84.14% 84.14% ======================================== Files 65 65 Lines 4775 4775 ======================================== Hits 4018 4018 Misses 757 757 ``` | [Files](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/343?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [mrmustard/lab/abstract/state.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/343?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYi9hYnN0cmFjdC9zdGF0ZS5weQ==) | `92.37% <100.00%> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/343?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/343?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [429b16c...7a76be4](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/343?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).