PennyLaneAI / PennyLaneAI/catalyst

``max_pauli_size=0`` meaning in PPM/PPR passes should truly mean `0`, whereas it means "infinity" currently

Open
#2,375 0 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.