Skip to content

Add async support for Workspace.get_targets - #135

Merged
Guen Prawiroatmodjo (guenp) merged 29 commits into
feature/aiofrom
guenp/aio-get-targets
Oct 19, 2021
Merged

Guen Prawiroatmodjo (guenp) merged 29 commits into
feature/aiofrom
guenp/aio-get-targets

Conversation

@guenp

Copy link
Copy Markdown

No description provided.

XField (vxfield) and others added 8 commits August 25, 2021 09:39
adelebai and others added 21 commits August 26, 2021 21:38
- Use conda-forge channel to install most up to date rdkit version
- Update install instructions and import error messaging
- Remove hard-coded QDK version in notebook
#144)

* make workspace_get_targets UT more robust, update recording
* remove superfluous returns at end of file
* Serialize problem name

* comments

* Move the problem name inside a metadata dict

* Update serialization tests

* Additional tests and ability to pause recordings

* Rerecorded tests

* Update test readme with recording pause instructions

* Update azure-quantum/azure/quantum/optimization/problem.py

Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* Set default problem name

* Default problem name

* Make problem name optional

* Default value for problem name

Co-authored-by: Guen Prawiroatmodjo <[email protected]>
)

* return generic target instance for unknown targets

* make Target not abstract, make _encode_inout_data generic, add line in UT

* make target factory case insensitive

* set provider ID from name

* add UT to test case insensitivity
* Add `azure.quantum.qiskit` and `azure.quantum.cirq` plugins to submit circuits to Azure Quantum

* Add optional dependencies azure-quantum[qiskit,cirq] to enable plugins

Co-authored-by: Andres Paz <[email protected]>
* update README, add logo
* move development to CONTRIBUTING.md
* drop in link to contribution guide in readme, add note on CLA
* refactor pipeline
* test cirq beta release
* clean up reused code
* add package-utils module
* Update README to use logo file from main branch
* Fix small typo
@guenp
Guen Prawiroatmodjo (guenp) merged this pull request into feature/aio Oct 19, 2021
@guenp
Guen Prawiroatmodjo (guenp) deleted the guenp/aio-get-targets branch October 19, 2021 16:26
Guen Prawiroatmodjo (guenp) pushed a commit that referenced this pull request Oct 19, 2021
Add async support for Workspace.get_targets, merge in changes from main:

* Add environment variable to set User-Agent prefix (#133)

* Add deprecation notice to 3rd party QIO namespaces (#132)

* Revert "Support fleet management jobs (#127)" (#134)

* Revert "Support fleet management jobs (#127)"

* Changing schema of grouped terms and separating term types (#131)

* Remove lingering fleet-mgmt (#137)

* Update installation instructions in readme and example notebook (#139)

* added MANIFEST.in file to include requirements.txt (#140)

* Rename env vars to start with AZURE_QUANTUM_ (#141)

* Make UT for Workspace.get_targets more robust against provider changes (#144)

* Serialize problem name (#64)

* Workspace.get_targets() returns generic Target for unknown targets (#148)

* Add Qiskit and Cirq plugins for IonQ and Honeywell targets (#149)

* fix bug in case insensitive provider lookup (#150)

* Update README, add Azure Quantum logo (#154)

* Refactor CI/CD steps, add tests against cirq beta (#151)

* Update README to use logo file from main branch (#155)

Co-authored-by: XField <[email protected]>
Co-authored-by: ashwinmayya <[email protected]>
Co-authored-by: adelebai <[email protected]>
Co-authored-by: Andres Paz <[email protected]>
Co-authored-by: Anudeep Gunukula <[email protected]>
XField (vxfield) added a commit that referenced this pull request Oct 21, 2021
* Add an async workspace API (#95)

* Add an async workspace

* Add an async job, async solver and extend the workspace APIs to use the correct types.

* Get linked storage has to be async

* Add aiohttp requirement

* Update conda env as well

* refactor into submodule

* Add the authentication submodule

* Revert some sync job changes leftover

* Add async storage and problem interfaces

* Refactor the async uses and add an online and streaming problem that removes the need for threading

* await problem uploader.

* Put the clients into async context managers so that the client sessions are closed.

* Workaround for Azure/azure-sdk-for-python#19943

* create client once per workspace

* Add async tests and integrate all the refactorings to the job classes and add aio targets.

* refactoring async tests

* aio streaming problem cant accept terms because that needs to be awaited. Update some of the tests

* update the common aio class

* update recordings

* Add a missing attribute in the recordings and fix a missing await in the job

* regex the response URL in the custom response handler

* await remaining tests

* Fix a bug in the streaming problem causing an infinite loop. Add some test recordings.

* clone the sync recordings

* add the recordings

* refactor the test base to be shared between sync and async

* fix broken import

* fix UTs

* inherit Async classes from Sync classes

* add missing targets, add async workspace.get_targets

Co-authored-by: XField <[email protected]>
Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* Add async support for Workspace.get_targets (#135)

Add async support for Workspace.get_targets, merge in changes from main:

* Add environment variable to set User-Agent prefix (#133)

* Add deprecation notice to 3rd party QIO namespaces (#132)

* Revert "Support fleet management jobs (#127)" (#134)

* Revert "Support fleet management jobs (#127)"

* Changing schema of grouped terms and separating term types (#131)

* Remove lingering fleet-mgmt (#137)

* Update installation instructions in readme and example notebook (#139)

* added MANIFEST.in file to include requirements.txt (#140)

* Rename env vars to start with AZURE_QUANTUM_ (#141)

* Make UT for Workspace.get_targets more robust against provider changes (#144)

* Serialize problem name (#64)

* Workspace.get_targets() returns generic Target for unknown targets (#148)

* Add Qiskit and Cirq plugins for IonQ and Honeywell targets (#149)

* fix bug in case insensitive provider lookup (#150)

* Update README, add Azure Quantum logo (#154)

* Refactor CI/CD steps, add tests against cirq beta (#151)

* Update README to use logo file from main branch (#155)

Co-authored-by: XField <[email protected]>
Co-authored-by: ashwinmayya <[email protected]>
Co-authored-by: adelebai <[email protected]>
Co-authored-by: Andres Paz <[email protected]>
Co-authored-by: Anudeep Gunukula <[email protected]>

* set user agent

* append user agent info rather than replace it

* test if user_agent is set

* append with dash instead of space

* add test

* test long user agent, test from env var

* close client sessions before returning

* close client for download_blob

* close client for download_blob

* Fixes to feature/aio (#166)

* Async fixes on storage

* Fixes on Async workspace

* Fixes on Async Workspace

* Fixes in the async _authentication

* Linting fixes

* Fixes on Async job

* Fixes in the Async Optimization

* Fixes on Async Target

* Update azure-quantum/azure/quantum/job/base_job.py

Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* Revert Async Target changes

Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* Async oneqbit.py File rename (#167)

* Async fixes on storage

* Fixes on Async workspace

* Fixes on Async Workspace

* Fixes in the async _authentication

* Linting fixes

* Fixes on Async job

* Fixes in the Async Optimization

* Fixes on Async Target

* Update azure-quantum/azure/quantum/job/base_job.py

Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* Revert Async Target changes

* Typo while renaming the file

* Typo renaming oneqbit file

Co-authored-by: Guen Prawiroatmodjo <[email protected]>

* fix circular import

* update environment yml files

* update env name

* Async PR fixes (#170)

* Port UserAgent changes from Sync to Async

* Fix async streaming problem

* Fix Async tests

* add async mark

* Async PR fixes (#171)

* Port UserAgent changes from Sync to Async

* Fix async streaming problem

* Fix Async tests

* Minor fixes

* Update recordings

* add missing awaits and methosd to streaming problem

* rerecord tests, update env var name

* copy aio tests

* asyncio mark

* Remove .aio from azure-quantum async conda env

Co-authored-by: Anthony Shaw <[email protected]>
Co-authored-by: XField <[email protected]>
Co-authored-by: ashwinmayya <[email protected]>
Co-authored-by: adelebai <[email protected]>
Co-authored-by: Andres Paz <[email protected]>
Co-authored-by: Anudeep Gunukula <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants