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

Compiling bug #444

Closed nquesada closed 4 years ago

nquesada commented 4 years ago

Addresses https://github.com/XanaduAI/strawberryfields/issues/443. The issue arises because the gaussian_unitary compiler returns an empty list if the commands of your program amounts to doing nothing, but in the xcov compiler it is always assumed that something is returned.

codecov[bot] commented 4 years ago

Codecov Report

Merging #444 into master will decrease coverage by 0.56%. The diff coverage is 97.56%.

@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
- Coverage   97.84%   97.28%   -0.57%     
==========================================
  Files          58       68      +10     
  Lines        6784     6951     +167     
==========================================
+ Hits         6638     6762     +124     
- Misses        146      189      +43     
Impacted Files Coverage Δ
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/program.py 100.00% <ø> (+1.15%) :arrow_up:
strawberryfields/utils/__init__.py 100.00% <ø> (ø)
strawberryfields/utils/decorators.py 100.00% <ø> (ø)
strawberryfields/utils/post_processing.py 100.00% <ø> (ø)
strawberryfields/utils/program_functions.py 97.77% <ø> (ø)
strawberryfields/utils/random_numbers_matrices.py 100.00% <ø> (ø)
... and 67 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 1c01896...4b8819b. Read the comment docs.