-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frontend] Program verification (#626)
**Context:** Having a proper encoding for the device capabilites, we implement the main part of program verification in this PR. **Description of the Change:** [sc-55558] [sc-60607] [sc-60648] * [x] Verify that no MCM (measure op) is present in the call * [ ] Verify that no callbacks are present in the call tree (future: verify that callbacks have custom vjp or are io callbacks) * [x] Verify that no state or variance is returned from the QNode. (Double check if Lightning Adjoint supports this!) * [x] adjoint diff method: Does the Tape only contain operations deemed differentiable by the QJITDevice from the TOML spec? * [x] parameter-shit method: Does the Tape only contain operations that support the 2-term parameter shift rule? **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** The following PRs need to be merged before this one: - #609 Introduces device capabilities. - #712 Makes toml-independent tests possible. --------- Co-authored-by: David Ittah <dime10@users.noreply.github.com> Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com> Co-authored-by: Lillian <lillian542@gmail.com>
- Loading branch information
1 parent
8330b75
commit a36947d
Showing
25 changed files
with
1,292 additions
and
401 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
Oops, something went wrong.