catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Improve API for third party compilers.

Open erick-xanadu opened this issue 1 year ago • 1 comments

In order to implement CUDA, I had to override some functionality in Catalyst.

        with Patcher(
            (catalyst.pennylane_extensions.QFunc, "extract_backend_info", cudaq_backend_info),
            (qml.QNode, "__call__", QFunc.__call__),
        ):

I think third party compilers might have to do something similar if they follow a similar approach to CUDA-quantum's implementation.

erick-xanadu avatar Feb 15 '24 18:02 erick-xanadu

I'm not sure this actually concerns Catalyst, but is something to look at for PennyLane's compiler API.

dime10 avatar Feb 15 '24 19:02 dime10