-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add BaseEstimatorV2 #11527
Add BaseEstimatorV2 #11527
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7560304464Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This review is a string of docstring touch-ups.
32de2ce
to
048150e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @chriseclectic. Just one comment (question).
One of the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about estimator job results? The PubResult
container doesn't really tell me what exactly data is returned.
Why was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we'll need some tests for EstimatorPub
too.
13b8689
to
a5d1e55
Compare
Taken from 11227, but modified to - remove options from BaseEstimatorV2 - add precision attribute to BaseEstimatorV2 and EstimatorPub - remove BasePrimitiveV2 and BasePub Co-Authored-By: Ikko Hamamura <[email protected]> Co-Authored-By: Ian Hincks <[email protected]>
Co-authored-by: Ian Hincks <[email protected]>
Co-authored-by: Ian Hincks <[email protected]>
3d694ac
to
9a60b52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks all.
Summary
Depends on #11524
Adds BaseEstimatorV2 class
Details and comments
BaseEstimatorV2 is taken from #11227 with the following modifications:
precision
attribute to BaseEstimatorV2and EstimatorPubThe
precision
attribute is intended to be the API element for controlling estimator precision in algorithms or applications (eg VQE). Previously this intended to be done via shots in Options, however as pointed out in review Options do not define an actual interface API since subclasses can implement them however they like. Subclasses can still implement options (and the runtime estimator will), but they are no longer part of the base API, but rather specific to how an individual estimator can be configured. This means the only API elements of an initialized EstimatorV2 for use in applications are arun
method, and aprecision
getter/setter.