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

Add a function to qchem for coherent state sampling #423

Closed soranjh closed 4 years ago

soranjh commented 4 years ago

This PR adds the function sample_coherent to sf.apps.qchem.dynamics to sample from a coherent input state.

codecov[bot] commented 4 years ago

Codecov Report

Merging #423 into master will increase coverage by 0.07%. The diff coverage is 99.28%.

@@            Coverage Diff             @@
##           master     #423      +/-   ##
==========================================
+ Coverage   97.84%   97.91%   +0.07%     
==========================================
  Files          58       68      +10     
  Lines        6784     7016     +232     
==========================================
+ Hits         6638     6870     +232     
  Misses        146      146              
Impacted Files Coverage Δ
strawberryfields/api/result.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/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 43 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 f60703d...8d7661c. Read the comment docs.