Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Shots refactor I of III #1075
Shots refactor I of III #1075
Changes from 14 commits
c33c289
2470142
64f8e92
152bd58
1e5a4f9
0c53d41
b7768e8
a3d5223
f8a3e35
080bce7
f0ec3d7
e7d4166
5823945
4068500
6a5f34a
90c4f28
b2386e4
1e60866
38b01c3
4e4578c
7d41ade
a2cacec
538cb35
4f659b6
0f018f7
1d19a79
dd8e332
ba9dd12
d1581d0
23f1e09
d6dd9b7
4e85796
4f780f0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I would make this a warning rather than an exception. I can't quite explain, but it 'feels' more like a warning.
Like, we shouldn't stop the user from creating the qnode, but we should warn them that the shots argument won't act as they expect?
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.
The reason why I changed to the error is that I played around and all sorts of strange things happened until I realised that I used a shots argument in my code and I had just overlooked the warning...
I think a warning is more appropriate but an exception safer? Happy to change though!
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.
@josh146 is this the test you had in mind?
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.
Yep looks good!