pennylane icon indicating copy to clipboard operation
pennylane copied to clipboard

[Prototype] Capture `adjoint` and `ctrl` of functions

Open dwierichs opened this issue 10 months ago • 0 comments

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]

dwierichs avatar Apr 11 '24 13:04 dwierichs