-
Notifications
You must be signed in to change notification settings - Fork 43
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
Implement PSWAP in Lightning-Kokkos #1089
Conversation
…-lightning into feature/pswap-impl
…-lightning into feature/pswap-impl
…-lightning into feature/pswap-impl
…-lightning into feature/pswap-impl
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/pswap-impl-base #1089 +/- ##
==========================================================
Coverage ? 95.46%
==========================================================
Files ? 177
Lines ? 27734
Branches ? 0
==========================================================
Hits ? 26477
Misses ? 1257
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…nnylane-lightning into feature/pswap-impl-kokkos
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.
Pull Request Overview
This PR introduces a native PSWAP gate implementation in Lightning-Kokkos to improve performance while updating related configurations and test cases.
- Update changelog entries for both Lightning-Kokkos and Lightning-Qubit.
- Remove the PSWAP entry from lightning_qubit.py and add its configuration in TOML files for both backends.
- Update test cases to incorporate the new PSWAP gate.
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
.github/CHANGELOG.md | Added changelog entries for PSWAP in Lightning-Kokkos and Lightning-Qubit. |
pennylane_lightning/lightning_qubit/lightning_qubit.py | Removed PSWAP operator mapping for Lightning-Qubit. |
pennylane_lightning/lightning_kokkos/lightning_kokkos.toml | Added PSWAP gate configuration under Lightning-Kokkos. |
pennylane_lightning/lightning_qubit/lightning_qubit.toml | Added PSWAP gate configuration for Lightning-Qubit. |
tests/test_gates.py | Updated unit tests to include PSWAP gate verification. |
Comments suppressed due to low confidence (1)
pennylane_lightning/lightning_qubit/lightning_qubit.py:70
- PSWAP has been removed from the Lightning-Qubit implementation. Confirm that this removal aligns with the intended design given the corresponding changelog entry.
"PSWAP": OperatorProperties(),
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.
Nice work! Thank you for that! Let me know if you need any support here.
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.
LGTM!
Thank you @jzaia18 🚀
Context:
PSWAP does not have a custom implementation within Lightning-Kokkos. This results in it using the implementation from PennyLane-Core whenever the gate is used. By implementing the gate directly in Lightning-Kokkos, performance of the PSWAP gate can be improved.
Description of the Change:
Implements the PSWAP gate natively in Lightning-Kokkos.
Benefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-85797]