-
Notifications
You must be signed in to change notification settings - Fork 617
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
Remove more analytic
occurrences
#1261
Conversation
Hello. You may have forgotten to update the changelog!
|
analytic
occurencesanalytic
occurrences
shots = 1000 | ||
analytic = true |
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.
TOML doesn't seem to have the concept of None
(see here), so just leaving shots
out instead of shots=None
.
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.
Good catch!
Codecov Report
@@ Coverage Diff @@
## master #1261 +/- ##
=======================================
Coverage 98.11% 98.11%
=======================================
Files 146 146
Lines 11050 11050
=======================================
Hits 10842 10842
Misses 208 208 Continue to review full report at Codecov.
|
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.
would this be intended because Device.analytic is still valid?
Yep, exactly! While the analytic argument was deprecated, the attribute, as far as I know, was not.
shots = 1000 | ||
analytic = true |
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.
Good catch!
Co-authored-by: Josh Izaac <[email protected]>
Some more places where
analytic
appeared:DeviceError: The analytic argument has been replaced by shots=None. Please use shots=None instead of analytic=True.
There was another which made me wonder:
./pennylane/optimize/shot_adaptive.py: if dev.analytic:
(check_device
method). @josh146 would this be intended becauseDevice.analytic
is still valid?