XanaduAI / thewalrus

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

Adds functions for calculating the total photon distribution of k lossy squeezed states #230

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

This PR implements the results in Appendix 5 and Eqs. 8 and 9 of https://arxiv.org/pdf/2102.12474.pdf

thisac commented 3 years ago

🚨

complexcode
nquesada commented 3 years ago

yeah, not sure about the complex code in test_quantum it is probably code cov saying it is time to split this file....

codecov[bot] commented 3 years ago

Codecov Report

Merging #230 (959d492) into master (655e089) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #230   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1200      1228   +28     
=========================================
+ Hits          1200      1228   +28     
Impacted Files Coverage Δ
thewalrus/quantum/__init__.py 100.00% <ø> (ø)
thewalrus/quantum/fock_tensors.py 100.00% <ø> (ø)
thewalrus/quantum/photon_number_distributions.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 655e089...959d492. Read the comment docs.