-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add support for C(BlockEncode) #743
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #743 +/- ##
===========================================
- Coverage 90.45% 70.57% -19.89%
===========================================
Files 81 15 -66
Lines 11672 1716 -9956
===========================================
- Hits 10558 1211 -9347
+ Misses 1114 505 -609 ☔ View full report in Codecov by Sentry. |
Could you please port this change? We have this --exitfirst merged by mistake. |
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 @maliasadi , just a couple questions but looks good to me.
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 @maliasadi ! Just a few questions.
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.
🙌
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 @maliasadi ! Happy to approve
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 @maliasadi !
This PR aims to remove obsolete TOML related code and also resolve incompatibilities with the latest lightning device versions. - The verifier is relaxed to only test agreement of basic gates (no adjoint/control) between the toml and python device spec. - This is needed to resolve the overlapping gate issue introduced by PennyLaneAI/pennylane-lightning#743 - and also allows removing the patch for Lightning Kokkos that exists solely to satisfy the verifier. - The obsolete toml files in the catalyst repo for lightning devices is also removed. - MCMs are marked as un-invertible and un-controllable, since they are non-unitary. Requires: PennyLaneAI/pennylane-lightning#758 [sc-65114]
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context:
To test the QSVT workflow with Lightning devices, we need support for
C(BlockEncode)
. This PR adds this support via applying the underlying unitary matrix; including python tests to check the correctness ofBlockEncode
andC(BlockEncode)
and updating the device toml files to maintain the support in Catalyst.Description of the Change:
Benefits:
Support
C(BlockEncode)
.Possible Drawbacks:
Related GitHub Issues:
[sc-64361]