XanaduAI / thewalrus

A library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.
https://the-walrus.readthedocs.io
Apache License 2.0
99 stars 54 forks source link

Implements the Montrealer #374

Closed nquesada closed 7 months ago

nquesada commented 9 months ago

Implements new function to calculation photon-number cumulants reducing the complexity of the problem from combinatorial to exponential

codecov[bot] commented 9 months ago

Codecov Report

Merging #374 (e764235) into master (0e163bf) will not change coverage. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #374 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 27 28 +1 Lines 1907 1972 +65 ========================================= + Hits 1907 1972 +65 ``` | [Files](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI) | Coverage Δ | | |---|---|---| | [thewalrus/\_\_init\_\_.py](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-dGhld2FscnVzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [thewalrus/\_montrealer.py](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-dGhld2FscnVzL19tb250cmVhbGVyLnB5) | `100.00% <100.00%> (ø)` | | | [thewalrus/\_torontonian.py](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-dGhld2FscnVzL190b3JvbnRvbmlhbi5weQ==) | `100.00% <100.00%> (ø)` | | | [thewalrus/reference.py](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI#diff-dGhld2FscnVzL3JlZmVyZW5jZS5weQ==) | `100.00% <100.00%> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?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/thewalrus/pull/374?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XanaduAI). Last update [0e163bf...e764235](https://app.codecov.io/gh/XanaduAI/thewalrus/pull/374?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).