Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control_keys protocol (simplified) #4610

Merged
merged 23 commits into from
Nov 4, 2021

Conversation

daxfohl
Copy link
Contributor

@daxfohl daxfohl commented Nov 1, 2021

Use control keys in circuit construction to block controlled gates "earliest" append method from falling back to before the measurement.

Parts 5&7 of https://tinyurl.com/cirq-feedforward. (I grouped them together in a single PR so that circuit.append could be a POC that control_keys protocol design works as intended).

Replaces/simplifies #4490 since we will handle "extern" control keys in subcircuits as a separate PR.

@daxfohl daxfohl requested review from cduck, vtomole and a team as code owners November 1, 2021 19:27
@daxfohl daxfohl requested a review from dstrain115 November 1, 2021 19:27
@CirqBot CirqBot added the size: M 50< lines changed <250 label Nov 1, 2021
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Nov 1, 2021
@daxfohl
Copy link
Contributor Author

daxfohl commented Nov 3, 2021

@95-martin-orion This is the most time-sensitive of my open PRs right now. None of the others are blocking progress on classical control.

@95-martin-orion 95-martin-orion added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 4, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Nov 4, 2021
@CirqBot CirqBot merged commit 00230f0 into quantumlib:master Nov 4, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Nov 4, 2021
@daxfohl daxfohl deleted the control_keys4 branch November 4, 2021 17:37
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Use control keys in circuit construction to block controlled gates "earliest" append method from falling back to before the measurement.

Parts 5&7 of https://tinyurl.com/cirq-feedforward. (I grouped them together in a single PR so that circuit.append could be a POC that control_keys protocol design works as intended).

Replaces/simplifies quantumlib#4490 since we will handle "extern" control keys in subcircuits as a separate PR.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Use control keys in circuit construction to block controlled gates "earliest" append method from falling back to before the measurement.

Parts 5&7 of https://tinyurl.com/cirq-feedforward. (I grouped them together in a single PR so that circuit.append could be a POC that control_keys protocol design works as intended).

Replaces/simplifies quantumlib#4490 since we will handle "extern" control keys in subcircuits as a separate PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining. size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants