Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Xanadu Cloud Client (#656)
* Replace SF CLI with XCC CLI (#642) * Remove CLI package, tests, and entry point * Remove CLI Sphinx documentation * Restructure account configuration tutorial * Add CLI removal to changelog * Add migration guide for the CLI * Add Windows Powershell equivalent for last CLI example * Duplicate CLI migrations in changelog * Replace Connection class with xcc.Connection (#645) * Delete strawberryfields.api.Connection class and tests * Add XCC to installation requirements * Remove Connection from strawberryfields.api package exports * Replace Connection with xcc.Connection inside strawberryfields.api * Update RemoteEngine to use xcc.Connection * Remove explicit test dependencies on api.Connection * Run Black formatter * Adjust, refactor, and enable RemoteEngine tests * Specify 'optional' part of type hints * Document breaking changes and migrations * Add help entry for 'docs' target * Update PR number * Fix DeviceSpec unit test and restore API mark * Update RemoteEngine.device_spec docstring * Update RemoteEngine.run() docstring * Avoid setting Blackbird name twice in RemoteEngine.run_async() * Replace Python 3.9 syntax for dictionary union * Update DeviceSpec to work with XCC (#644) * update device spec * update tests * minor updates * update tests * fixes from code review * fix compiler in device specs * remove regex * remove pylints * Update strawberryfields/api/devicespec.py Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * Update Result class to work with XCC (#651) * fix result class * fix tests * fix bosonic backend tests * fix samples_dict * fix tests * make format * some minor fixes * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * fixes from code review * wrap samples in list * update changelog * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * update changelog * add to migration giude * fix docstrings * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * Replace `strawberryfields.api.Job` with `xcc.Job` (#650) * Delete strawberryfields.api.Connection class and tests * Add XCC to installation requirements * Remove Connection from strawberryfields.api package exports * Replace Connection with xcc.Connection inside strawberryfields.api * Update RemoteEngine to use xcc.Connection * Remove explicit test dependencies on api.Connection * Run Black formatter * Adjust, refactor, and enable RemoteEngine tests * Specify 'optional' part of type hints * Document breaking changes and migrations * Add help entry for 'docs' target * Update PR number * Fix DeviceSpec unit test and restore API mark * remove Job class * remove/fix tests * remove invalid job operation example * update raises * use f-strings * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * fix job refresh in run-loop * update changelog * mock out job.clear * add XCC intermapping * attempt to get xcc docs to interconnect * update xcc url * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * move mocked job * doc change * add Job to migration guide * Update doc/development/migration_guides.rst Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * bump xcc in requirements * fix tests * bump xcc in setup Co-authored-by: Mikhail Andrenkov <M.Andrenkov@gmail.com> Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * Replace configuration module with xcc.Settings (#649) * Delete strawberryfields.api.Connection class and tests * Add XCC to installation requirements * Remove Connection from strawberryfields.api package exports * Replace Connection with xcc.Connection inside strawberryfields.api * Update RemoteEngine to use xcc.Connection * Remove explicit test dependencies on api.Connection * Run Black formatter * Adjust, refactor, and enable RemoteEngine tests * Specify 'optional' part of type hints * Document breaking changes and migrations * Add help entry for 'docs' target * Update PR number * Fix DeviceSpec unit test and restore API mark * Update RemoteEngine.device_spec docstring * Update RemoteEngine.run() docstring * Avoid setting Blackbird name twice in RemoteEngine.run_async() * Remove strawberryfields.configuration module and tests * Add XCC to strawberryfields.about() * Rewrite obsolete SF CLI example using the XCC * Add strawberryfields.configuration migration to changelog * Remove extra blank line from changelog * Add 'Configuration' section to migration guide * Update PR number * Use backslashes in Windows path * Add missing space to changelog indentation * Update XCC job submission example output * Remove trailing comma from XCC example output * Extract API subpackage (#652) * remove api folder * remove api from docs * Update tests/api/conftest.py Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> * update devicespec and result (#653) * Merge master into branch (#654) * Bump tensorflow from 2.5.1 to 2.5.2 in /doc (#648) Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.5.1 to 2.5.2. - [Release notes](https://github.com/tensorflow/tensorflow/releases) - [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md) - [Commits](tensorflow/tensorflow@v2.5.1...v2.5.2) --- updated-dependencies: - dependency-name: tensorflow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump tensorflow from 2.6.0 to 2.6.1 (#647) Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.6.0 to 2.6.1. - [Release notes](https://github.com/tensorflow/tensorflow/releases) - [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md) - [Commits](tensorflow/tensorflow@v2.6.0...v2.6.1) --- updated-dependencies: - dependency-name: tensorflow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Izaac <josh146@gmail.com> * Use refactored gaussian gate from The Walrus (#646) * refactor [tfbackend/ops] - gaussian_gate_matrix: use new tw signature * requirement [thewalrus] - point to built wheel from branch * requirement [docs] - use dev version of the walrus * fix [docs/requirements] - use python3.7 for docs * fix [tfbackend/ops] - single_gaussian_gate_matrix: pass new params to tw function * update [worflows/docs] - use sphinx-action at xanadu with python 3.8 * requirements [docs] - use python3.8 wheel Co-authored-by: Theodor <theodor@xanadu.ai> * remove one tf requirement * remove repo-token Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com> * remove fill_template calls (#655) * fix codefactor issues * fix another codefactor issue * make format * Apply suggestions from code review Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com> Co-authored-by: Mikhail Andrenkov <M.Andrenkov@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com>
- Loading branch information