-
Notifications
You must be signed in to change notification settings - Fork 57
translate counts from plxpr #2041
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
Conversation
|
Thanks Christina for adding this! let us know when it's ready for final review, but the changes look fine to me 👍 |
**Context:** Paired with catalyst PR: PennyLaneAI/catalyst#2041 **Description of the Change:** Just have `CountsMP._wires_primitive` return two abstract measurements, one for the keys, and one for the values. While this primitive will have no current implementation in PL, it can still be nicely translated by catalyst. **Benefits:** Program capture can more easily serve as frontend for catalyst. **Possible Drawbacks:** **Related GitHub Issues:** [sc-92900]
**Context:** Blocks PennyLaneAI/catalyst#2041 **Description of the Change:** The capture `Device.setup_execution_config` was about the capabilities of the capture execution pipeline, which is no longer maintained or actively developed. While I'm not sure where will be the best place for this logic in catalyst, we can leave that up to catalyst and no determine it in program capture. **Benefits:** Unblocks catalyst unification work. **Possible Drawbacks:** **Related GitHub Issues:** [sc-99193] --------- Co-authored-by: Andrija Paurevic <[email protected]>
**Context:** Blocks PennyLaneAI/catalyst#2041 **Description of the Change:** The capture `Device.setup_execution_config` was about the capabilities of the capture execution pipeline, which is no longer maintained or actively developed. While I'm not sure where will be the best place for this logic in catalyst, we can leave that up to catalyst and no determine it in program capture. **Benefits:** Unblocks catalyst unification work. **Possible Drawbacks:** **Related GitHub Issues:** [sc-99193] --------- Co-authored-by: Andrija Paurevic <[email protected]>
Co-authored-by: Yushao Chen (Jerry) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2041 +/- ##
==========================================
+ Coverage 97.37% 97.41% +0.03%
==========================================
Files 88 88
Lines 9980 10095 +115
Branches 945 951 +6
==========================================
+ Hits 9718 9834 +116
Misses 207 207
+ Partials 55 54 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 and easy 💯
Co-authored-by: Paul <[email protected]>
Context:
Depends on PennyLaneAI/pennylane#8229
Once that PR is merged and new pennylane wheels are up, we can version bump catalyst.
Description of the Change:
Translates counts from plxpr to catalxpr.
Benefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-99071]