PennyLaneAI / PennyLaneAI/catalyst

Make async qnodes specific to qnodes, not the whole JIT context.

Open
#438 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.