PennyLaneAI / PennyLaneAI/catalyst
Add support for shot vectors to other measurement processes
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
Catalyst recently added support for specifying shot-vectors when used with qml.sample measurements on the lightning.qubit device (#1051). However, other measurement types, such as expval and probs, currently do not support shot-vectors. We should add support for these other measurement processes. Moreover, it should be efficient, meaning that there should only be one circuit execution.
This issue was prompted by @josh146's comment here: https://github.com/PennyLaneAI/catalyst/pull/1239#discussion_r1820341706.
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 with the existing shot-vector support for qml.sample on lightning.qubit, then follow the measurement paths for expval and probs and review the linked pull-request discussion. Done means these measurement types accept shot-vectors while requiring only one circuit execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers, quantum-computing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100