PennyLaneAI / PennyLaneAI/catalyst
Counts does not return the same type as PL
Open
Nobody has claimed this yet.
enhancement
housecleaning
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
-
Expected behavior: In PL
qml.counts()returns a dictionary. I would expect in catalyst to also return a dictionary. -
Actual behavior: In Catalyst
qml.counts()returns a tuple of arrays.
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 reproducing the qml.counts() behavior in Catalyst and compare it with PennyLane (PL), where the issue says the result is a dictionary. Trace the qml.counts() entry point and related Catalyst behavior; done means Catalyst returns a dictionary rather than a tuple of arrays, consistently with PL.
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
- 35/100