PennyLaneAI / PennyLaneAI/catalyst
Make async qnodes specific to qnodes, not the whole JIT context.
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
Instead of the async flag specifying async for all qnodes in the JIT context, we could have an async flag for specific qnodes if we move the flag to the qnode. E.g.,
Change:
@qjit(async_qnodes=True)
def jit_context():
...
To:
@qnode(async=True)
def circuit():
...
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 tracing the qjit(async_qnodes=True) and qnode(async=True) entry points to determine where the async flag is currently read and how qnodes are registered in a JIT context. Done means async behavior is selected per qnode rather than applied to every qnode in the context, including contexts containing both async and non-async qnodes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100