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

Update analytic expression in variance test #436

Closed antalszava closed 4 years ago

antalszava commented 4 years ago

Context: A test case for a displaced squeezed circuit was added for calculating variances. However, the analytic expression provided was incorrect.

Description of the Change: Updates the analytic expression used for the displaced squeezed variance test.

Benefits: The tolerance value used can be decreased.

Possible Drawbacks: N/A

Related GitHub Issues: N/A

codecov[bot] commented 4 years ago

Codecov Report

Merging #436 into master will increase coverage by 0.09%. The diff coverage is 99.35%.

@@            Coverage Diff             @@
##           master     #436      +/-   ##
==========================================
+ Coverage   97.84%   97.94%   +0.09%     
==========================================
  Files          58       69      +11     
  Lines        6784     7096     +312     
==========================================
+ Hits         6638     6950     +312     
  Misses        146      146              
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/circuitspecs/circuit_specs.py 100.00% <ø> (ø)
strawberryfields/circuitspecs/gaussian_unitary.py 100.00% <ø> (ø)
strawberryfields/circuitspecs/tensorflow.py 100.00% <ø> (ø)
strawberryfields/backends/fockbackend/ops.py 94.04% <94.11%> (+2.04%) :arrow_up:
strawberryfields/ops.py 98.84% <96.29%> (-0.19%) :arrow_down:
strawberryfields/backends/tfbackend/ops.py 96.69% <97.88%> (-0.17%) :arrow_down:
... and 49 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 e980b02...5d89f0a. Read the comment docs.

antalszava commented 4 years ago