This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset backend options to default in get_backend (#705)
* Reset backend.options to default values in IBMProvider.get_backend() * Reset backend.options to default values in IBMProvider.get_backend() * Minor changes * Update releasenotes/notes/reset_backend_options-f7e02c9bfff58213.yaml Co-authored-by: Kevin Tian <[email protected]> * Update releasenotes/notes/reset_backend_options-f7e02c9bfff58213.yaml Co-authored-by: Kevin Tian <[email protected]> --------- Co-authored-by: Kevin Tian <[email protected]>
- Loading branch information
1 parent
4c4baa1
commit d724b5d
Showing
3 changed files
with
30 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/reset_backend_options-f7e02c9bfff58213.yaml
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,12 @@ | ||
--- | ||
fixes: | ||
- | | ||
``IBMProvider.get_backend()`` returns the backend with its default options. At the end of this | ||
.. code-block:: | ||
backend1 = provider.get_backend("xxx") | ||
backend1.options.shots = 100 | ||
backend2 = provider.get_backend("xxx") | ||
``backend2.options.shots`` has the default value (4000). ``backend1.options.shots`` | ||
also has the default value, because backend1 and backend2 are the same instance. |
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