XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
745 stars 187 forks source link

Measure threshold for displaced Gaussian states #615

Closed jakeffbulmer closed 3 years ago

jakeffbulmer commented 3 years ago

use new functionality of thewalrus from (248) to allow for simulation of threshold measurement on displaced Gaussian states.

codecov[bot] commented 3 years ago

Codecov Report

Merging #615 (0eb020c) into master (45309dc) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #615   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files          77       77           
  Lines        8904     8905    +1     
=======================================
+ Hits         8776     8777    +1     
  Misses        128      128           
Impacted Files Coverage Δ
...rawberryfields/backends/gaussianbackend/backend.py 98.44% <100.00%> (+0.01%) :arrow_up:

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 45309dc...0eb020c. Read the comment docs.

nquesada commented 3 years ago

This PR should only be merged after a new release of The Walrus is made.