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 deprecated function names from TW #472

Closed thisac closed 4 years ago

thisac commented 4 years ago

Context: The The Walrus quantum refactor introduced new function names for a few different functions and deprecated the old names (still supporting them for some time). Strawberry Fields uses some of these functions and should thus be updated to use their new names.

Description of the Change:

No other renamed functions were used directly by Strawberry Fields.

Benefits: There's no deprecation warning when using these function in SF.

Possible Drawbacks: None

Related GitHub Issues: None

codecov[bot] commented 4 years ago

Codecov Report

Merging #472 into master will decrease coverage by 0.97%. The diff coverage is 99.41%.

@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
- Coverage   97.84%   96.86%   -0.98%     
==========================================
  Files          58       70      +12     
  Lines        6784     7154     +370     
==========================================
+ Hits         6638     6930     +292     
- 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/__init__.py 100.00% <ø> (ø)
strawberryfields/compilers/compiler.py 100.00% <ø> (ø)
strawberryfields/compilers/fock.py 100.00% <ø> (ø)
strawberryfields/compilers/gaussian.py 100.00% <ø> (ø)
... and 84 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 96fca95...22e10f1. Read the comment docs.