PennyLaneAI / PennyLaneAI/catalyst

Add support for shot vectors to other measurement processes

Open
#1,253 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.