-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite XQC API version to 0.2.0 and add User-Agent (#540)
**Context:** The current version of StrawberryFields sends an incorrect version header to the Xanadu Quantum Cloud API. **Description of the Change:** - Update the `Accept-Version` header of requests sent from the `strawberryfields.api.connection` module to `0.2.0` instead of `1.0.0` - Add a custom User-Agent string which sends a header in the standard format `StrawberryFields/0.17.0` where `0.17.0` is the current version of StrawberryFields **Benefits:** - Allows compability with the XQC platform in future iterations where API versioning will be more strict - The `User-Agent` string gives important contextual information to the XQC API which can be used to provide custom behaviour in the future (for example, rewriting behaviour in the case of problematic requests, or providing deprecation notices in the event of lifecycle changes in the API) **Possible Drawbacks:** N/A **Related GitHub Issues:** N/A ---- * Rewrite XQC API version to 0.2.0 * more * fmt * typo * test fix * update changelog * more
- Loading branch information
Jeremy Swinarton
committed
Feb 16, 2021
1 parent
079191a
commit 31cc0d5
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters