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

Symoplectic to Bargmann related code for unitaries #435

Closed arsalan-motamedi closed 3 months ago

arsalan-motamedi commented 4 months ago

Context: Added a method ".symplectic" for the Unitary class that returns the symplectic representation of a Bargmann. Also, we can go back. Description of the Change: Described above. Benefits: Clear

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.08%. Comparing base (a07bfc1) to head (80a3e9d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #435 +/- ## =========================================== + Coverage 88.05% 88.08% +0.03% =========================================== Files 80 80 Lines 6473 6507 +34 =========================================== + Hits 5700 5732 +32 - Misses 773 775 +2 ``` | [Files](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/435?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [mrmustard/physics/bargmann.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/435?src=pr&el=tree&filepath=mrmustard%2Fphysics%2Fbargmann.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL3BoeXNpY3MvYmFyZ21hbm4ucHk=) | `100.00% <100.00%> (ø)` | | | [mrmustard/lab\_dev/transformations/base.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/435?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2Fbase.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL2Jhc2UucHk=) | `97.22% <87.50%> (-2.78%)` | :arrow_down: | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/435?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/435?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [a07bfc1...80a3e9d](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/435?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).