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
754 stars 191 forks source link

Fix for reduced_density_matrix bug #470

Closed co9olguy closed 4 years ago

co9olguy commented 4 years ago

Fixes #467 and adds tests that would have caught it

codecov[bot] commented 4 years ago

Codecov Report

Merging #470 into master will decrease coverage by 0.99%. The diff coverage is 99.40%.

@@            Coverage Diff             @@
##           master     #470      +/-   ##
==========================================
- Coverage   97.84%   96.85%   -1.00%     
==========================================
  Files          58       70      +12     
  Lines        6784     7125     +341     
==========================================
+ Hits         6638     6901     +263     
- Misses        146      224      +78     
Impacted Files Coverage Δ
strawberryfields/apps/clique.py 100.00% <ø> (ø)
strawberryfields/apps/plot.py 100.00% <ø> (ø)
strawberryfields/apps/train/embed.py 100.00% <ø> (ø)
...awberryfields/backends/gaussianbackend/__init__.py 100.00% <ø> (ø)
strawberryfields/backends/gaussianbackend/ops.py 100.00% <ø> (+2.70%) :arrow_up:
strawberryfields/backends/shared_ops.py 96.11% <ø> (-0.98%) :arrow_down:
strawberryfields/compilers/compiler.py 100.00% <ø> (ø)
strawberryfields/compilers/fock.py 100.00% <ø> (ø)
strawberryfields/compilers/gaussian.py 100.00% <ø> (ø)
strawberryfields/compilers/gaussian_unitary.py 100.00% <ø> (ø)
... and 81 more

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 bc529a3...fc97989. Read the comment docs.

co9olguy commented 4 years ago

Closes #467

co9olguy commented 4 years ago

Waiting to merge in #471 before merging this branch into master

co9olguy commented 4 years ago

This PR should be merged in before release