Decouple internal buffered state from final StateVectorTrialResult and ensure that qsimcirq can return the state vector directly

Open
#8,061 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Neeraj3108 is already working on this.

Since Oct 5, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by reading the linked Cirq issue #8041 and qsim issue #893 for context, then trace how qsimcirq uses StateVectorTrialResult. The issue gives no file or test names, so locating the relevant implementation and tests will take project familiarity. Done means internal buffered state is decoupled from the final result and qsimcirq can return the state vector directly.

Written by the indexing model from the issue text.

Description

area/performance kind/feature-request priority/after-1.8

Is your feature request related to a use case or problem? Please explain

See reference https://github.com/quantumlib/Cirq/issues/8041. This is a suggested refactor from @sergeisakov

How urgent is this for you? Is it blocking important work?

P3 – I'm not really blocked by it; it's an idea I'm proposing based on principle

Provide additional information or context (e.g., screenshots)

See also: https://github.com/quantumlib/qsim/issues/893

Dominant language
Python
Stars
5.1k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
48

Getting set up

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.

More from quantumlib/Cirq

All issues in quantumlib/Cirq

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.