PennyLaneAI / PennyLaneAI/catalyst

Filter compile flags based on compile options.

Open
#426 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

chore frontend good first issue
Dominant language
Python
Stars
234
Forks
84
Avg merge
2d 15h
Merged PRs (30d)
66

Description

Instead of having two pipelines, (one for async and one for non-async), we could have one single pipeline by predicating the compiler passes. For example:

A_PIPELINE = (
  "A_PIPELINE_NAME",
  [
     ("a-pass", lambda options: return options.enable_a_pass), # conditionally added
     ("b-pass", lambda options: return True), # always added
  ]

And then we can just use a filter to get the final pass list.

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

No files, tests, or entry points are named. Start by locating the separate async and non-async pipeline definitions and the code that assembles compiler passes; done means one pipeline can filter passes from compile options without changing existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.