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
747 stars 186 forks source link

Clean shared ops #558

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

Most of the functionality of shared_ops.py is now obtained from the walrus. This PR is checking how much of shared_ops can be eliminated.

codecov[bot] commented 3 years ago

Codecov Report

Merging #558 (e38afd7) into master (5947864) will increase coverage by 0.12%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #558      +/-   ##
==========================================
+ Coverage   98.24%   98.36%   +0.12%     
==========================================
  Files          76       76              
  Lines        8429     8330      -99     
==========================================
- Hits         8281     8194      -87     
+ Misses        148      136      -12     
Impacted Files Coverage Δ
strawberryfields/backends/shared_ops.py 100.00% <ø> (+3.88%) :arrow_up:
strawberryfields/backends/tfbackend/ops.py 98.06% <ø> (+1.34%) :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 5947864...e38afd7. Read the comment docs.