-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update device toml specs to schema 2 #642
Conversation
Hello. You may have forgotten to update the changelog!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @grwlf
Just a few quick questions
…pported in this device
Co-authored-by: Vincent Michaud-Rioux <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #642 +/- ##
===========================================
- Coverage 98.13% 57.20% -40.93%
===========================================
Files 193 16 -177
Lines 25443 1832 -23611
===========================================
- Hits 24968 1048 -23920
- Misses 475 784 +309 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have one question, but then ready to approve.
Co-authored-by: Romain Moyard <[email protected]>
Co-authored-by: Romain Moyard <[email protected]>
I have run the lightning and kokkos cross-checks using the following components:
As far as I see, after a minor Catalyst fixup (the PR is linked above), all checks pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🙌
Don't forget to update the changelog before merge.
**Context:** Transition to the quantum device config schema 2 **Description of the Change:** Solve a regarding toml schema 2 udpate in tests by switching our test custom devices from toml text manipulations to the device capability manipulations **Benefits:** * Tests no longer require toml text manipulations. * Tests now contain simple examples of custom devices. * toml-specific code is now locates in `catalyst.utils.toml`. **Possible Drawbacks:** **Related GitHub Issues:** PennyLaneAI/pennylane-lightning#642 --------- Co-authored-by: David Ittah <[email protected]>
**Context:** Transition to the quantum device config schema 2 **Description of the Change:** * Remove mentions of CPhase "gate" which happens to be a Python alias for ControlledPhaseShift. * Remove the Python-only Projector patch because we already have a relaxed validation procedure for observables * Relax operation validation by allowing kokkos device to declare C(GlobalPhase) which is a Python-only operation. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** * PennyLaneAI/pennylane-lightning#642 - (related discussion) PennyLaneAI/pennylane-lightning#642 (comment)
Context: Catalyst supports quantum device specification in a new format in addition to the existing one, supporting per-gate parameters.
Description of the Change: By this PR we update existing device specifications to the new format
Benefits: Per-gate properties allow device authors to query PL for certain behavior on programs (decomposition, adding quantum control, validation)
Possible Drawbacks:
Related GitHub Issues: