-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept all hierarchical options if given flatly (#764)
* Recognize first level options properly * Cleaned up Sampler code. Copied same to Estimator * Added test. Fixed error in skip_transpilation * Release notes * Cleaning code: Changed '_options' to 'self._options' in primitive constructors. * Black --------- Co-authored-by: Kevin Tian <kevin.tian@ibm.com>
- Loading branch information
1 parent
cadaaa0
commit 5c4cd4d
Showing
4 changed files
with
66 additions
and
39 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/accept_level_1_options-06c09a67a9c23feb.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,6 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Accept all options on given on level 1 and assign them to the appropriate hierarchical option type. | ||
For example, if the user provides ``options = {"shots": 10}`` as input to Sampler/Estimator, this will | ||
be interpreted as ``options = {"execution: {"shots": 10}}``. |
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