-
Notifications
You must be signed in to change notification settings - Fork 622
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 helper func apply_operation
for default mixed
#6379
Conversation
Hello. You may have forgotten to update the changelog!
|
apply_operation
for default mixedapply_operation
for default mixed
RN I've done the implementation of both einsum and tensordot.
Due to the fact that there are quite some other shortcuting regeisters for many special cases to implement, currently I would like to put this as draft without the full CI. After all the other registers complete I will load the CI along with more tests. |
In previous |
The following methods involve additional stories and will be neglected for now:
|
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.
Looks good. I've left a few more tidiness related suggestions for the actual implementation. I noticed some gaps in testing, so I've left suggestions for that as well. But overall, looks great, and very close to approval!
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
…aneAI/pennylane into add-apply-operation-mixed
All resolved! @mudit2812 |
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.
One final comment, otherwise ready to approve. Thanks for being patient with the reviews :)
**Context:** Before getting into the implementation of new `default_mixed` we need to separate most of the useful logics from the older version one. One of the most important things is the `apply_operation`. Basically, what we want to do is to condensate everything into a new sub-module under `qml/devices/qubit_mixed` such that previous empirical heuristics regarding how to select between `einsum` and `tensordot` can be carried over and wrapped independently. **Description of the Change:** New script containing the helper funcs as described above. **Benefits:** Better modularization. Getting ready for the implementaion of a new `default_mixed` in the future. **Possible Drawbacks:** **Related GitHub Issues:** **Related Shortcut Stories** [sc-73319] --------- Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Astral Cai <[email protected]> Co-authored-by: Christina Lee <[email protected]>
Context:
Before getting into the implementation of new
default_mixed
we need to separate most of the useful logics from the older version one. One of the most important things is theapply_operation
. Basically, what we want to do is to condensate everything into a new sub-module underqml/devices/qubit_mixed
such that previous empirical heuristics regarding how to select betweeneinsum
andtensordot
can be carried over and wrapped independently.Description of the Change:
New script containing the helper funcs as described above.
Benefits:
Better modularization. Getting ready for the implementaion of a new
default_mixed
in the future.Possible Drawbacks:
Related GitHub Issues:
Related Shortcut Stories
[sc-73319]