-
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 logic for enabling
grad_on_execution
in lightning_*.py
dev…
…ices (#1016) **Context:** In PennyLane, `grad_on_execution` is expected to be enabled when the gradient method is set to `adjoint`. Since this is automatically true for Lightning devices, the `use_device_gradient` flag can serve as an additional condition to decide whether to enable `grad_on_execution`. This discrepancy caused certain Lightning device tests to fail during a PennyLane workflow clean-up PR. The issue arose because PennyLane expected `grad_on_execution` to be `None` but received `True` instead. Further details can be found in the [PR workflow](https://github.com/PennyLaneAI/pennylane/actions/runs/12129490447/job/33818035152?pr=6657). **Description of the Change:** Update logic for when `grad_on_execution` is turned on in `lightning` device configurations. **Benefits:** Unblocks PennyLaneAI/pennylane#6657 **Possible Drawbacks:** None. [sc-72150] --------- Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Ali Asadi <[email protected]> Co-authored-by: Christina Lee <[email protected]>
- Loading branch information
1 parent
158d393
commit f9e8f62
Showing
5 changed files
with
19 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
Version number (major.minor.patch[-label]) | ||
""" | ||
|
||
__version__ = "0.40.0-dev26" | ||
__version__ = "0.40.0-dev27" |
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