XanaduAI / thewalrus

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

Cumulants #264

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

This PR add functionality to calculate expectation values of products of photon numbers to any power in any number of modes and also allows for the calculation of cumulants of the photon number distribution.

codecov[bot] commented 3 years ago

Codecov Report

Merging #264 (030241c) into master (d89c570) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #264   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1337      1385   +48     
=========================================
+ Hits          1337      1385   +48     
Impacted Files Coverage Δ
thewalrus/quantum/__init__.py 100.00% <ø> (ø)
thewalrus/quantum/means_and_variances.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d89c570...030241c. Read the comment docs.