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

Rewrites the fidelity function for clarity #226

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

The fidelity function in quantum/gaussian_checks.py is rewritten to add clarity and also a reference and test are added. This should clarify the (non-) bug posited in https://github.com/XanaduAI/thewalrus/pull/223

codecov[bot] commented 3 years ago

Codecov Report

Merging #226 (bf6d6c4) into master (49de978) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #226   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         1191      1188    -3     
=========================================
- Hits          1191      1188    -3     
Impacted Files Coverage Δ
thewalrus/quantum/gaussian_checks.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 49de978...bf6d6c4. Read the comment docs.