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

CFT gate #448

Closed ziofil closed 2 months ago

ziofil commented 3 months ago

Complex Fourier Transform gate (e.g. to go between Wigner and Characteristic function)

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 95.27559% with 18 lines in your changes missing coverage. Please review.

Project coverage is 86.86%. Comparing base (4acf7bd) to head (9bcf17b). Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
mrmustard/lab_dev/circuits.py 92.96% 9 Missing :warning:
mrmustard/lab_dev/states/base.py 95.34% 6 Missing :warning:
mrmustard/lab_dev/simulator.py 87.50% 2 Missing :warning:
mrmustard/physics/ansatze.py 94.44% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #448 +/- ## =========================================== - Coverage 89.55% 86.86% -2.70% =========================================== Files 101 104 +3 Lines 7384 7437 +53 =========================================== - Hits 6613 6460 -153 - Misses 771 977 +206 ``` | [Files with missing lines](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [mrmustard/lab\_dev/\_\_init\_\_.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2F__init__.py&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/circuit\_components.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Fcircuit_components.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvY2lyY3VpdF9jb21wb25lbnRzLnB5) | `98.42% <100.00%> (-0.66%)` | :arrow_down: | | [...mustard/lab\_dev/states/two\_mode\_squeezed\_vacuum.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Fstates%2Ftwo_mode_squeezed_vacuum.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvc3RhdGVzL3R3b19tb2RlX3NxdWVlemVkX3ZhY3V1bS5weQ==) | `100.00% <ø> (ø)` | | | [mrmustard/lab\_dev/transformations/\_\_init\_\_.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [mrmustard/lab\_dev/transformations/amplifier.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2Famplifier.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL2FtcGxpZmllci5weQ==) | `100.00% <ø> (ø)` | | | [mrmustard/lab\_dev/transformations/base.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?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.19% <100.00%> (-1.91%)` | :arrow_down: | | [mrmustard/lab\_dev/transformations/bsgate.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2Fbsgate.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL2JzZ2F0ZS5weQ==) | `100.00% <ø> (ø)` | | | [mrmustard/lab\_dev/transformations/cft.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2Fcft.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL2NmdC5weQ==) | `100.00% <100.00%> (ø)` | | | [mrmustard/lab\_dev/transformations/s2gate.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Ftransformations%2Fs2gate.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvdHJhbnNmb3JtYXRpb25zL3MyZ2F0ZS5weQ==) | `100.00% <ø> (ø)` | | | [mrmustard/lab\_dev/wires.py](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree&filepath=mrmustard%2Flab_dev%2Fwires.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-bXJtdXN0YXJkL2xhYl9kZXYvd2lyZXMucHk=) | `99.21% <ø> (-0.06%)` | :arrow_down: | | ... and [17 more](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448/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/448?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/448?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [4acf7bd...9bcf17b](https://app.codecov.io/gh/XanaduAI/MrMustard/pull/448?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).
apchytr commented 2 months ago

Replaced with New cft