pennylane
pennylane copied to clipboard
[Prototype] Capture `adjoint` and `ctrl` of functions
Context:
The prototype already supports calling qml.adjoint
and qml.ctrl
on constructed operators.
Description of the Change: This PR adds support for those two functions called on functions, in the form of PlExpr transforms.
Benefits: More support.
Possible Drawbacks:
Original PL code needed to be modified for qml.ctrl
in order to make the keyword arguments work.
This can probably be reverted once we settled on a way to handle wires.
Related GitHub Issues:
[sc-59448]