PennyLaneAI / PennyLaneAI/catalyst
Improve API for third party compilers.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Patcher usage around catalyst.pennylane_extensions.QFunc.extract_backend_info, qml.QNode.call, and QFunc.call. Determine the API changes needed for third-party compilers following the CUDA-Q approach; done means such compilers no longer need to override these functions manually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100