-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Redesign capabilities dictionary (#781)
* prototype * backup * backup * finish prototype * backup * make values boolean * backup * update dictionary keys * backup * fix bugs in tensor tests, set tol higher for sampled tests * add noisy capability * improve developer information * remove sampled from tensor device, and add analytic attribute * fix all tests for base devices * polish docstring some more * reverse changing of tolerance * fix general tests * fix some more tests * black * fix code factor * black again * add capabilities tests * update black version and rerun black * Update pennylane/_device.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update pennylane/_device.py * Update pennylane/devices/tests/test_gates.py Co-authored-by: Josh Izaac <josh146@gmail.com> * rewrite core to check for old and new keys * add test for reversible diff * fix isinstance * black needs to be applied again * polish * fix test bug * Update doc/development/plugins.rst Co-authored-by: antalszava <antalszava@gmail.com> * remove unused capabilities * remove accidentally commited files * fix test * polish docstring * remove default keys from Device, make better capability device tests, add 'returns_state' and 'returns_probs' argument * black * fix codefactor issues * black * implement Tom's code review * fix test * fix test again Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: antalszava <antalszava@gmail.com>
- Loading branch information
1 parent
3e293c2
commit 5f8064f
Showing
29 changed files
with
726 additions
and
204 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
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.