Update simulator interfaces for Cirq 2.0

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

Maintainers usually reply within 1 day

@rosspeili is already working on this.

Since Sep 15, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, backend

Research direction

Start by reading the simulator interfaces and classical data store implementations, then trace how parameter resolution and While/If operations are handled during simulation. The issue names no files or tests, so first locate those entry points and relevant tests; done means the simulator supports dynamic classical registers and evaluates dynamic loop parameters while retaining static sweep resolution.

Written by the indexing model from the issue text.

Description

area/cirq-2.0 kind/feature-request skill/experienced triage/accepted

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

Updates to the simulator interface. Cirq’s APIs for circuit simulation will need to be extended to handle the new constructs in 2.0.

Describe the solution you would prefer

We currently envision the addition of a new DynamicClassicalDataStore (inheriting from ClassicalDataStore) to hold active measurements and dynamic classical registers (like float angles and loop counters). While static sweep variables are resolved beforehand using Cirq’s static ParamResolver, dynamic symbols will be ignored by the simulator's first resolution pass and left within their operations. During simulation, dynamic loop containers (While/If) will need to evaluate their parameters dynamically from classical registers.

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

P2 – we should do it in the next couple of quarters

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.