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

Porting circuit to `develop` #360

Closed SamFerracin closed 8 months ago

SamFerracin commented 8 months ago

Context: Porting the base functionalities of Circuit to the develop branch. Everything related to path is left out (will be added when the Simulator is ready)

Benefits: I took the chance to rewrite the circuit drawer (now simply "repr"). It solves many of the problems of the drawer in lab, including issue #344 open by @aplund

codecov[bot] commented 8 months ago

Codecov Report

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

Project coverage is 86.18%. Comparing base (6fcc3dc) to head (b71cd47).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #360 +/- ## =========================================== + Coverage 86.07% 86.18% +0.11% =========================================== Files 77 78 +1 Lines 5435 5457 +22 =========================================== + Hits 4678 4703 +25 + Misses 757 754 -3 ``` | [Files](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [mrmustard/\_\_init\_\_.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL19faW5pdF9fLnB5) | `100.00% <ø> (ø)` | | | [mrmustard/lab\_dev/\_\_init\_\_.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [mrmustard/lab\_dev/circuits.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvY2lyY3VpdHMucHk=) | `95.23% <95.23%> (ø)` | | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?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/360?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [6fcc3dc...b71cd47](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/360?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).