-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor device code around capabilities [NFC] (#1149)
Simplifies device related code around capability checks and decomposition, and eliminates the use of `"Adjoint(*)"` and `"C(*)"` declarations in favour of DeviceCapabilities and OperationProperties dataclasses. Includes the following (non-functional) changes: - simplify `get_device_capability` signature - simplify `catalyst_decompose` signature - simplify `QJITDevice.__init__` signature - eliminate `pennylane_operation_set` and use `DeviceCapabilities` instead - remove legacy-device `operations`, `observables`, and `measurement_processes` properties from our device classes Some of the code seems to have been written solely to facilitate testing, which should be avoided. [sc-67124]
- Loading branch information
Showing
14 changed files
with
140 additions
and
328 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
Oops, something went wrong.