Repository navigation
Add Qiskit and Cirq plugins for IonQ and Honeywell targets - #149
Merged
Guen Prawiroatmodjo (guenp) merged 123 commits intoSep 23, 2021
Merged
Conversation
added 30 commits
July 6, 2021 22:49
* Refactor Job and split into abstract mixin classes * unused import * add from_uri, create container if it does not yet exist * add docstring clarification * refactor Problem.upload() to use Job.upload_blob() * fix circular imports, remove unused imports fix UTs * refactor Solver.submit to use Job * pass container URI to problem.upload * default encoding to empty string * make download_blob public, not staticmethod * remove unused import * rename blob to input_data * rename blob to input_data * address code review comments * use problem.name * fix undefined var name
added 13 commits
September 7, 2021 20:11
… code Convert IonQ labels to bit strings Support passing Qobj to backend.run Add FINISHING to AzureJobStatusMap Alpha release build is here: https://ms-quantum.visualstudio.com/Quantum%20Program/_build/results?buildId=161176&view=results Related work items: #32180
Refactor existing usage of Cirq for IonQ
Add support for Honeywell
Using proposed design:
```python
from azure.quantum.cirq import AzureQuantumService
service= AzureQuantumService(resource_id=RESOURCE_ID, location=LOCATION)
target = service.get_target("ionq.simulator")
result = target.run(circuit, shots=100)
```
and for running on the qpu:
```python
target = service.get_target("ionq.qpu")
result = target.run(circuit, shots=100)
```
Related work items: #31745
Related work items: #29663, #31096, #31469, #31470, #31619, #31745, #32180
Related work items: #32519
- Add get_job method to be consistent with cirq_ionq API. - Add missing YAML recording for get_targets. Related work items: #32519
Guen Prawiroatmodjo (guenp)
requested review from
Andres Paz (anpaz) and
XField (vxfield)
September 22, 2021 17:53
Andres Paz (anpaz)
suggested changes
Sep 22, 2021
Andres Paz (anpaz)
approved these changes
Sep 22, 2021
Co-authored-by: Andres Paz <[email protected]>
Guen Prawiroatmodjo (guenp)
force-pushed
the
feature/azure-quantum-plugins
branch
from
September 22, 2021 23:51
53a4d35 to
e310cdb
Compare
added 3 commits
September 22, 2021 17:08
…neywell jobs, update recordings
add missing docstring
Guen Prawiroatmodjo (guenp)
enabled auto-merge (squash)
September 23, 2021 03:27
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]>
Xinyi Joffre (xinyi-joffre)
deleted the
feature/azure-quantum-plugins
branch
November 17, 2023 23:59
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This feature branch adds support for submitting Qiskit and Cirq circuits to IonQ and Honeywell.
Example usage for Qiskit:
Example usage for Cirq: