-
Notifications
You must be signed in to change notification settings - Fork 737
Add zero count outcomes #2889
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
Merged
AlbertMitjans
merged 74 commits into
PennyLaneAI:master
from
lillian542:add_zero_count_outcomes
Sep 8, 2022
Merged
Add zero count outcomes #2889
Changes from 68 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
f69b1bd
generate list of possible sampling outcomes
a75c41b
add all outcomes as dict keys
c66b859
update _samples_to_counts docstring
47e04f1
move _samples_to_counts up a layer
77a0756
pre-commit checks
34e7706
pre-commit checks
1801db0
minor doc string edit
363b207
update measurements.rst doc
1fe391e
update measurements.rst doc
ba840e4
fix bug in wire numbering in example code block
200cbdf
update tests accept additional dict keys in outcome
eb880cb
Merge branch 'PennyLaneAI:master' into add_zero_count_outcomes
lillian542 a7a2936
update changelog-dev
7de6b84
Merge branch 'add_zero_count_outcomes' of https://github.com/lillian5…
c3c4999
revert pre-commit config file
355070b
make 0 count int64 data type
9324cc9
update test_measurements.py for new dict format
f67345a
add EigvalsUndefinedError exception to _samples_to_counts
ad45002
add unit tests
d091e4e
add pytest xfail to test_scalar_counts_with_obs
d9f5469
Update doc/introduction/measurements.rst
lillian542 11dd3b5
Update tests/test_new_return_types.py
lillian542 5d2d773
Update tests/test_measurements.py
lillian542 207ecbd
Update docstring _samples_to_counts
lillian542 2c3b88a
Update tests/test_measurements.py
lillian542 9faf6c2
remove ToDo
6cdd3c4
qml.eigvals(obs) instead of obs.compute_eigvals()
lillian542 acee677
add all_outcomes=False kwarg to counts fn
7d62989
update docstrings to reflect new kwarg
6d6ce84
update measurements.rst
52f0750
update changelog
9a11148
revert tests for standard (all_outcomes=False) counts fn to previous …
5e5bb5a
display default (all_outcomes=False) behaviour with warning for Eigva…
3ce246a
tests default (all_outcomes=False) counts behaviour, test passes
f29d3b4
update test for counts(all_outcomes=True)
b493794
fix typo
764fbc3
add missing all_outcomes=True kwarg in test
435d3fc
modify ppre-commit file to circumvent error on pc
0a4e5e3
small formatting changes
41204b0
revert change to pre-commit config
06e0126
Update doc/introduction/measurements.rst
lillian542 db0aec6
Update doc/introduction/measurements.rst
lillian542 c24a0f6
Update doc/introduction/measurements.rst
lillian542 9e5014f
Update doc/introduction/measurements.rst
lillian542 3b03370
Update pennylane/measurements.py
lillian542 fecf125
Update pennylane/measurements.py
lillian542 b30c7b1
Update doc/introduction/measurements.rst
lillian542 6952341
Update doc/introduction/measurements.rst
lillian542 3093020
update counts docstring
5a744ed
Merge branch 'add_zero_count_outcomes' of https://github.com/lillian5…
5b3eb1d
Update doc/releases/changelog-dev.md
lillian542 0ff4690
temp modification to pre-commit yaml
4ff4bbb
Switch to AllCounts implementation
f7f8bdb
Update measurements.rst
703081a
Add test for multiple measurement types with counts(all_outcomes=True)
34ffc31
remove completed todo
e778b1d
Revert "temp modification to pre-commit yaml"
2eaeaf4
Merge branch 'add_zero_count_outcomes' of https://github.com/lillian5…
99325c7
Merge branch 'master' into add_zero_count_outcomes
AlbertMitjans 2c6acaf
indent codeblock in measurements.rst
ae86d4c
Add AllCounts to updates from master
e6f59a5
Remove irrelevant exception handling in _samples_to_counts
cb6df88
Fix too-many-boolean-expressions CodeFactor issue
8f3e9b7
Merge branch 'master' into add_zero_count_outcomes
AlbertMitjans 28b8f02
indent code block
f7b7940
tidy up
ffadf35
Update tests/test_measurements.py
lillian542 4a20847
Merge branch 'add_zero_count_outcomes' of https://github.com/lillian5…
e128d91
Merge branch 'master' into add_zero_count_outcomes
AlbertMitjans 1b6f0ef
indent docstring code-block
a1cc24e
fix indentation
c7d23c8
Merge branch 'master' into add_zero_count_outcomes
antalszava ae9d8e8
black reformatting
d2bd1ef
Merge branch 'master' into add_zero_count_outcomes
AlbertMitjans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.