-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area/visualizationkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.kind/healthFor CI/testing/release process/refactoring/technical debt itemsFor CI/testing/release process/refactoring/technical debt itemstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Description
Describe the issue
Cirq crashes when printing a circuit that contains a controlled 1x1 MatrixGate
Explain how to reproduce the bug or problem
q = cirq.LineQubit(0)
g = cirq.MatrixGate(np.array([[1j]])).controlled()
c = cirq.Circuit(g(q))
print(c)
hits raise ValueError(f'Wanted diagram info from {op!r} for {rows!r}) but got {info!r}')
.
Tell us the version of Cirq where this happens
1.4.1
Metadata
Metadata
Assignees
Labels
area/visualizationkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.kind/healthFor CI/testing/release process/refactoring/technical debt itemsFor CI/testing/release process/refactoring/technical debt itemstriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on