Skip to content

Draw zero-target operations below circuit text diagrams as annotations #4234

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

Merged
merged 3 commits into from
Jun 21, 2021

Conversation

Strilanc
Copy link
Contributor

@Strilanc Strilanc commented Jun 20, 2021

Also fix a couple testing assert methods not hiding themselves from the traceback.

This can change the diagrams of existing circuits, which will potentially break some downstream tests that assert the diagrams are something specific. However, I think having the information missing from the diagrams was more problematic.

Fixes #4232
Fixes #4233

@Strilanc Strilanc requested review from cduck, vtomole and a team as code owners June 20, 2021 16:01
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Jun 20, 2021
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of concerns, otherwise this seems OK to me.

@Strilanc Strilanc added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 21, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 21, 2021
@CirqBot CirqBot merged commit 099fc74 into master Jun 21, 2021
@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 21, 2021
@CirqBot CirqBot deleted the annotations branch June 21, 2021 16:06
@CirqBot CirqBot removed the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 21, 2021
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
quantumlib#4234)

Also fix a couple testing assert methods not hiding themselves from the traceback.

This can change the diagrams of existing circuits, which will potentially break some downstream tests that assert the diagrams are something specific. However, I think having the information missing from the diagrams was more problematic.

Fixes quantumlib#4232
Fixes quantumlib#4233
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
quantumlib#4234)

Also fix a couple testing assert methods not hiding themselves from the traceback.

This can change the diagrams of existing circuits, which will potentially break some downstream tests that assert the diagrams are something specific. However, I think having the information missing from the diagrams was more problematic.

Fixes quantumlib#4232
Fixes quantumlib#4233
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cirq.testing.assert_has_diagram doesn't have "__tracebackhide__ = True" Zero-target operations don't show up in circuit diagrams
3 participants