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

Adds threshold measurement for the bosonic backend #618

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

Adds the ability to perform threshold measurements in the bosonic backend.

codecov[bot] commented 3 years ago

Codecov Report

Merging #618 (829f0e3) into master (8168612) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #618   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files          77       77           
  Lines        8905     8938   +33     
=======================================
+ Hits         8777     8810   +33     
  Misses        128      128           
Impacted Files Coverage Δ
strawberryfields/compilers/bosonic.py 100.00% <ø> (ø)
...trawberryfields/backends/bosonicbackend/backend.py 100.00% <100.00%> (ø)
...ryfields/backends/bosonicbackend/bosoniccircuit.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 8168612...829f0e3. Read the comment docs.