Closed thisac closed 2 years ago
Merging #656 (7267f6e) into master (d7a4ec4) will increase coverage by
0.00%
. The diff coverage is91.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.
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
tonpz
(which is handled by the XCC), as well as the switch to using the XCCJob
andConnection
classes instead of their Strawberry Fields counterparts.Description of the Change:
The
sf
CLI has been removed in favour of the Xanadu Cloud Client. (#642)The
sf.api.Connection
class has been replaced with the xcc.Connection class. (#645)The
sf.configuration
module has been replaced with the xcc.Settings class. (#649)This means that Xanadu Cloud credentials are now stored in exactly one location, the path to which depends on your operating system:
Windows:
C:\Users\%USERNAME%\AppData\Local\Xanadu\xanadu-cloud\.env
MacOS:
/home/$USER/Library/Application\ Support/xanadu-cloud/.env
Linux:
/home/$USER/.config/xanadu-cloud/.env
The format of the configuration file has also changed to .env and the names of some fields have been updated. For example,
The
sf.api.Job
class has been replaced with the xcc.Job class. (#650)The
sf.api.Result
class has been updated to support the Xanadu Cloud Client integration. (#651)While
Result.samples
should return the same type and shape as before, theResult.all_samples
property has been renamed toResult.samples_dict
and returns the samples as a dictionary with corresponding measured modes as keys.The
sf.api.DeviceSpec
class has been updated to support the Xanadu Cloud Client integration. (#644)It now works as a container for a device specification dictionary. There are no more API connection usages, and
DeviceSpec.target
is retrieved from the device specification rather than passed at initialization.The
api
subpackage has been removed and the containedDeviceSpec
andResult
classes have been moved to the rootstrawberryfields
folder.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