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
737 stars 187 forks source link

Integrate Xanadu Cloud Client #656

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: The Xanadu Cloud Client (XCC) has replaced the internal Strawberry Fields API client. Due to this, quite a few (breaking) changes are introduced. Part of this is due to the job format change from npy to npz (which is handled by the XCC), as well as the switch to using the XCC Job and Connection classes instead of their Strawberry Fields counterparts.

Description of the Change:

Benefits: The API is contained in a separate package and is no longer part of Strawberry Fields, making it easier to maintain.

Possible Drawbacks: A lot of breaking changes are introduced (see changelog), which will necessitate that users upgrade to v0.20.0 to be able to continue to submit jobs to the Xanadu Cloud.

Related GitHub Issues: None

codecov[bot] commented 2 years ago

Codecov Report

Merging #656 (7267f6e) into master (d7a4ec4) will increase coverage by 0.00%. The diff coverage is 91.22%.

@@           Coverage Diff            @@
##           master     #656    +/-   ##
========================================
  Coverage   98.27%   98.28%            
========================================
  Files          77       72     -5     
  Lines        9178     8810   -368     
========================================
- Hits         9020     8659   -361     
+ Misses        158      151     -7     
Impacted Files Coverage Δ
strawberryfields/engine.py 95.93% <88.05%> (-0.56%) :arrow_down:
strawberryfields/result.py 92.85% <88.88%> (ø)
strawberryfields/__init__.py 95.83% <100.00%> (+0.18%) :arrow_up:
...trawberryfields/backends/bosonicbackend/backend.py 100.00% <100.00%> (ø)
strawberryfields/devicespec.py 96.15% <100.00%> (ø)
strawberryfields/program.py 100.00% <100.00%> (ø)
strawberryfields/tdm/tdmprogram.py 98.26% <100.00%> (ø)

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 d7a4ec4...7267f6e. Read the comment docs.