-
Notifications
You must be signed in to change notification settings - Fork 603
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 bind_nested_plxpr
meta-transform
#5520
Closed
Closed
Conversation
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
Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
…neAI/pennylane into plxpr-capture-operations
Hello. You may have forgotten to update the changelog!
|
@albi3ro what is the status of this PR, do we still need it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HIGHLY EXPERIMENTAL
Context:
This is part of an ongoing project to improve the ability to capture pennylane code into a hybrid intermediate representation.
Description of the Change:
This PR adds a
qml.capture.bind_nested_plxpr
meta-transform that automatically integrates qfunc transforms withPLXPR. It:
Benefits:
Easy binding of qfunc transforms into PLXPR via a straightforward decorator/ meta-transform.
Possible Drawbacks:
The handling of keyword arguments is a bit shaky.
This level of nesting in function definitions can be really hard to read.
When I was messing around with it, I think I saw a memory leak, and not sure if its still there or not.
Related GitHub Issues:
[sc-59448]