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

Circuit text diagram broken for a circuit involving both **0.5 and classical conditioning #6814

Open
ikd-sci opened this issue Dec 3, 2024 · 0 comments
Assignees
Labels
kind/bug-report Something doesn't seem to work. triage/accepted A consensus emerged that this bug report, feature request, or other action should be worked on

Comments

@ikd-sci
Copy link

ikd-sci commented Dec 3, 2024

Description of the issue

Circuit text diagram broken for a circuit involving both **0.5 and classical conditioning on the previous measure.

How to reproduce the issue

The following code:

import cirq
q = cirq.NamedQubit('q')
circuit = cirq.Circuit(cirq.measure(q, key='m'), (cirq.X**0.5).on(q).with_classical_controls('m'))
circuit

Outputs:

q: ───M───X───────
      ║   ║
m: ═══@═══^^0.5═══

The expected ASCII representation should have been something like:

q: ───M───X^0.5───
      ║   ║
m: ═══@═══^═══════

Cirq version

1.5.0.dev20241105230840
@ikd-sci ikd-sci added the kind/bug-report Something doesn't seem to work. label Dec 3, 2024
@NoureldinYosri NoureldinYosri self-assigned this Dec 3, 2024
@NoureldinYosri NoureldinYosri added the triage/discuss Needs decision / discussion, bring these up during Cirq Cynque label Dec 11, 2024
@mhucka mhucka added triage/accepted A consensus emerged that this bug report, feature request, or other action should be worked on and removed triage/discuss Needs decision / discussion, bring these up during Cirq Cynque labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-report Something doesn't seem to work. triage/accepted A consensus emerged that this bug report, feature request, or other action should be worked on
Projects
None yet
Development

No branches or pull requests

3 participants