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

BugFix in cirq.map_operations #6155

Merged
merged 2 commits into from Jun 22, 2023

Conversation

tanujkhattar
Copy link
Collaborator

@tanujkhattar tanujkhattar commented Jun 22, 2023

cirq.map_operations raises an error right now in the case where you map more than one operation in the same moment to an op-tree that acts on overlapping qubits. A trivial example is the case where you map every op to op.controlled_by(fixed_qubit).

This PR fixes the bug. See the newly added test for more context, which fails in the current version and passes after the change in this PR.

@tanujkhattar tanujkhattar requested review from a team, vtomole and cduck as code owners June 22, 2023 00:15
@tanujkhattar tanujkhattar merged commit 3b699a4 into quantumlib:master Jun 22, 2023
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants