PennyLaneAI / PennyLaneAI/catalyst
``max_pauli_size=0`` meaning in PPM/PPR passes should truly mean `0`, whereas it means "infinity" currently
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
It looks like some of the PPR/ PPM transforms are using max_pauli_size=0 to mean "max pauli size of infinity". Suggest to make max_pauli_size=-1 for that instead. 0 should mean a max pauli size of 0—nothing.
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
Search the PPR and PPM transforms for max_pauli_size and inspect the existing tests covering its sentinel behavior. The change is complete when -1 represents unlimited size, 0 represents no allowed Pauli size, and the relevant tests verify both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100