Implement control flow operators for use with classical data for Cirq 2.0

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Read the Cirq 2.0 high-level plan and the If implementation in pull request #8195 for context. This issue lists separate issues for While, Repeat, For, and multiway branch; choose one of those scoped issues to see its entry points and acceptance criteria. Done for this umbrella issue would mean the selected control-flow construct is implemented and its scoped issue's requirements are met.

Written by the indexing model from the issue text.

Description

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

With a high-level plan for Cirq 2.0 recently proposed (goo.gle/cirq-2-high-level), and implementation started (VariableQid, If), work can proceed on developing more of the functionality outlined in the Cirq 2.0 plan.

One of the areas of work is to implement more control flow constructs. The implementation of If provides an example that can inform how others can be implemented. Candidates include the following:

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.