-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supporting counts from raw samples (#2686)
* counts of raw samples * polish * polish * polish * polishing and adapting to pep8 * unit test for Counts measurement type * added the counts into the documentation * added changelog * black formatting done * docs corrected * add my name to contributors * test: black formatting * Update doc/introduction/measurements.rst Delete trailing while space Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> * Update pennylane/measurements.py simplify if-else condition Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> * added example to changelog * del trailing white space * changelog: better formulation Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> * changelog: another better formulation * Update doc/introduction/measurements.rst Co-authored-by: antalszava <antalszava@gmail.com> * doc/introduction/measurements.rst: sample counts Co-authored-by: antalszava <antalszava@gmail.com> * doc/introduction/measurements.rst: sample counts Co-authored-by: antalszava <antalszava@gmail.com> * doc/releases/changelog-dev.md: sample counts description improved Co-authored-by: antalszava <antalszava@gmail.com> * doc/releases/changelog-dev.md: sample counts desc improved Co-authored-by: antalszava <antalszava@gmail.com> * pennylane/measurements.py: sample counts docstring rephrased Co-authored-by: antalszava <antalszava@gmail.com> * doc/releases/changelog-dev.md: sample counts desc improved Co-authored-by: antalszava <antalszava@gmail.com> * doc/releases/changelog-dev.md: sample counts desc improved Co-authored-by: antalszava <antalszava@gmail.com> * pennylane/_qubit_device.py: sample counts docstring formatting Co-authored-by: antalszava <antalszava@gmail.com> * pennylane/_qubit_device.py: sample counts docstring formatting Co-authored-by: antalszava <antalszava@gmail.com> * measurements.py sample counts docstring * no shape for sample measurement type * formatting * break long assertion * adapt tests to new return types * upd docs: sample counts return objects * sample counts by bins * Update doc/introduction/measurements.rst: sample counts Co-authored-by: antalszava <antalszava@gmail.com> * Update pennylane/measurements.py: docstring Co-authored-by: antalszava <antalszava@gmail.com> * test binned counts and more general implementation * doc/introduction/measurements.rst: sample counts Co-authored-by: antalszava <antalszava@gmail.com> * formatting * shot vector support improved for sample counts * add unit test for sample shot vector * pennylane/_qubit_device.py: add comment Co-authored-by: antalszava <antalszava@gmail.com> * adapt to jax * satisfying pylint * pennylane/_qubit_device.py sample counts comment expanded * sample counts test interfaces * polishing * sample counts test interfaces shot vec * docstrings; test case names Co-authored-by: breznychenko <bogdan.reznychenko@probayes.com> Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> Co-authored-by: antalszava <antalszava@gmail.com>
- Loading branch information
1 parent
38ca383
commit fbda189
Showing
7 changed files
with
529 additions
and
30 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
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
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
Oops, something went wrong.