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.merge_moments to correctly handle new empty moments. #5013

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

tanujkhattar
Copy link
Collaborator

Fixes a bug where cirq.merge_moments would treat a newly merged empty cirq.Moment() as the case where we return None to indicate that two moments cannot be merged.

@tanujkhattar tanujkhattar requested review from a team, vtomole and cduck as code owners February 22, 2022 23:34
@tanujkhattar tanujkhattar requested a review from maffoo February 22, 2022 23:34
@CirqBot CirqBot added the size: S 10< lines changed <50 label Feb 22, 2022
@MichaelBroughton MichaelBroughton self-assigned this Feb 23, 2022
@MichaelBroughton MichaelBroughton added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Feb 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Feb 23, 2022
@CirqBot CirqBot merged commit ddefd84 into quantumlib:master Feb 23, 2022
@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 Feb 23, 2022
95-martin-orion pushed a commit to 95-martin-orion/Cirq that referenced this pull request Mar 2, 2022
…quantumlib#5013)

Fixes a bug where `cirq.merge_moments` would treat a newly merged empty `cirq.Moment()` as the case where we return `None` to indicate that two moments cannot be merged.
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
…quantumlib#5013)

Fixes a bug where `cirq.merge_moments` would treat a newly merged empty `cirq.Moment()` as the case where we return `None` to indicate that two moments cannot be merged.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
…quantumlib#5013)

Fixes a bug where `cirq.merge_moments` would treat a newly merged empty `cirq.Moment()` as the case where we return `None` to indicate that two moments cannot be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants