Skip to content

In text diagrams, writing a classical bit is shown as a control while using it as a control is not shown as a control #5688

@Strilanc

Description

@Strilanc
import cirq

print(cirq.Circuit(
    cirq.measure(cirq.LineQubit(0), key="abc"),
    cirq.X(cirq.LineQubit(0)).with_classical_controls("abc"),
))
0: ─────M───X───
        ║   ║
abc: ═══@═══^═══

The @ means control elsewhere in diagrams. The character below the M isn't a control it's an output; it should probably be an X. And the ^ for the control on the NOT gate should be an @ since that means control.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/circuitsarea/visualizationkind/bug-reportSomething doesn't seem to work.triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions