Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add Workspace param to AzureQuantumProvider and AzureQuantumService + Q# upgrade #539

Conversation

kikomiss
Copy link
Contributor

@kikomiss kikomiss commented Dec 15, 2023

Changes:

  • Add warning message when user initializes AzureQuantumProvider and AzureQuantumService with resouce_id and location parameters.
  • Upgrade to qsharp v1.0.33
  • Output histogram object as a map for microsoft.quantum-results.v1 job output format
  • Add shots parameter to Qiskit's backend.run(), Passthrough's target.submit() and to estimate_cost() to unify user-experience across backends
  • Deprecate azure.quantum.aio module

@@ -182,6 +185,10 @@
input_data_format = kwargs.pop("input_data_format", "qir.v1")
output_data_format = kwargs.pop("output_data_format", self._qir_output_data_format())
content_type = kwargs.pop("content_type", "qir.v1")
# setting UserAgent header to indicate Q# submission
# TODO: this is a temporary solution. We should be setting the User-Agent header

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment

# Also add all possible shots options into input_params to make sure
# that all backends covered.
# TODO: Double check all backends for shots options in order to remove this extra check.

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
kikomiss and others added 9 commits January 10, 2024 10:00
…object (#542)

* Introduce the "shots" parameter to 'sumbit' function of the 'Target' object
* Remove num_shots from kwargs.
* Add warning on passing shots for estimator
* Add 'shots' option for qiskit backends.
* Refactor target shots option
* The num_shots option for a target class now is checked by a helper function.
* New warning is printed on passing shots and num_shots together.
* Allow provider-specific shots options.
* Fix pascal target
* add tests.
* Add back all possible shots params

---------

Co-authored-by: ArturKamalov <v-akamalov@microsoft.com>
Co-authored-by: kikomiss <144282031+kikomiss@users.noreply.github.com>
* Remove aio modules.

---------

Co-authored-by: ArturKamalov <v-akamalov@microsoft.com>
Co-authored-by: kikomiss <144282031+kikomiss@users.noreply.github.com>
Co-authored-by: Kirill Komissarov <kikomiss@microsoft.com>
* Add warning when not using shots parameter.

* chore: changed warning verbiage + added missing test recordings

---------

Co-authored-by: ArturKamalov <v-akamalov@microsoft.com>
Co-authored-by: Kirill Komissarov <kikomiss@microsoft.com>
@kikomiss kikomiss force-pushed the users/kikomiss/features/qiskit-cirq-init-with-workspace-and-qsharp-lang branch from 620120f to 1bb1d96 Compare January 10, 2024 18:00
@kikomiss kikomiss marked this pull request as ready for review January 12, 2024 00:07
@kikomiss kikomiss requested a review from a team as a code owner January 12, 2024 00:07
@kikomiss kikomiss changed the title feature: add Workspace param to AzureQuantumProvider and AzureQuantumService + Q# lang feature: add Workspace param to AzureQuantumProvider and AzureQuantumService + Q# upgrade Jan 12, 2024
@kikomiss kikomiss merged commit 977cee9 into main Jan 12, 2024
5 checks passed
@kikomiss kikomiss deleted the users/kikomiss/features/qiskit-cirq-init-with-workspace-and-qsharp-lang branch January 12, 2024 00:39
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.

None yet

3 participants