-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add mode param and deprecate warning to session. * replaced session by mode * fix tests * fix tests * update method * update mode value * replaced backend and session params with mode * Added mode param. Deprecated backend and session. * Updated V2 tests using mode param. * Updated _backend * updated tests * improve docstrings * style fixes * back backend param * pylint fixes * mypy fixes * updated the backend for cm session * ignore type * added release notes * update deprecation message * Apply suggestions from code review Co-authored-by: Jessie Yu <[email protected]> * improve docstrings * revert V1 changes * Update from PR comments * back to backend arg * update release notes * Update qiskit_ibm_runtime/sampler.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/estimator.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/sampler.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/base_primitive.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/base_primitive.py Co-authored-by: Jessie Yu <[email protected]> * updated from PR comments * updated from PR comments * update docstring * Update qiskit_ibm_runtime/estimator.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/sampler.py Co-authored-by: Jessie Yu <[email protected]> * Update qiskit_ibm_runtime/base_primitive.py Co-authored-by: Jessie Yu <[email protected]> * linter fixes * split mode param tests * merged manually * add missing import --------- Co-authored-by: Jessie Yu <[email protected]> Co-authored-by: Kevin Tian <[email protected]>
- Loading branch information
1 parent
0e47fbe
commit bc4d01c
Showing
8 changed files
with
190 additions
and
67 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
`backend` argument in `Sampler <https://docs.quantum.ibm.com/run/primitives-get-started#3-initialize-the-qiskit-runtime-sampler>`__ and `Estimator <https://docs.quantum.ibm.com/run/primitives-get-started#3-initialize-qiskit-runtime-estimator>`__ has been deprecated . Please use the new `mode` argument instead. | ||
`session` argument in `Sampler <https://docs.quantum.ibm.com/run/primitives-get-started#3-initialize-the-qiskit-runtime-sampler>`__ and `Estimator <https://docs.quantum.ibm.com/run/primitives-get-started#3-initialize-qiskit-runtime-estimator>`__ has been deprecated . Please use the new `mode` argument instead. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Related to the execution modes, Sampler and Estimator now include a `mode` argument. The `mode` param | ||
can be a Backend, Session, Batch, or None. Due to this, the backend name has been deprecated, and will | ||
no longer be supported as a valid execution mode. |
Oops, something went wrong.