Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cases for
qml.sample(..., counts=True)
(#2839)
* draft * reworked tests * apply same fix as for qutrit dev PR; extend tests * no prints * linting; reverting len compute that caused issues * changelog * changes * multi-measure cases with Counts * no need for different sample handling case * update object name * Update pennylane/_qubit_device.py Co-authored-by: Christina Lee <christina@xanadu.ai> * Apply suggestions from code review Co-authored-by: Christina Lee <christina@xanadu.ai> * counts_exist; revert to making ret_types a list because the generator approach pops items on first use * format Co-authored-by: Romain Moyard <rmoyard@gmail.com> Co-authored-by: Christina Lee <christina@xanadu.ai>
- Loading branch information
1 parent
52d656d
commit cad746f
Showing
9 changed files
with
216 additions
and
177 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
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.