-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Lightning device TOML files to the new schema (#988)
**Context:** This PR is part of the new device capabilities initiative to improve feature parity across the ecosystem. See [this ADR](PennyLaneAI/adrs#78) for more context. A new TOML schema has been defined, and the relevant module implemented in PennyLane: - PennyLaneAI/pennylane#6407 - PennyLaneAI/pennylane#6433. As well as updates made to Catalyst: - PennyLaneAI/catalyst#1275 **Description of the Change:** - Updates `lightning_qubit.toml`, `lightning_kokkos.toml`, `lightning_gpu.toml` to the new schema - Removes `_operations` and `_observables` from `LightningQubit`, `LightningKokkos`, and `LightningGPU` as they are now available via `Device.capabilities` that is loaded from the TOML file. **Benefits:** A step towards feature parity across the ecosystem. **Possible Drawbacks:** - Per discussions when the ADR was developed, `operator.gates.decomp` and `operator.gates.matrix` are removed, and the TOML file no longer prescribes to the framework how an operator should be handled. To ensure consistency of behaviour, this information is temporarily moved to a `_to_matrix_ops` class property to be used by Catalyst, until we have better support for customizable multi-pathway decompositions. **Related GitHub Issues:** [sc-71729] --------- Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Ali Asadi <[email protected]> Co-authored-by: Joseph Lee <[email protected]> Co-authored-by: Joseph Lee <[email protected]>
- Loading branch information
1 parent
9fc9633
commit 45a67d4
Showing
10 changed files
with
276 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
Version number (major.minor.patch[-label]) | ||
""" | ||
|
||
__version__ = "0.40.0-dev13" | ||
__version__ = "0.40.0-dev14" |
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.