-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
kind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/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
The following should not raise an exception. It should produce a circuit which, when sampled, samples a=0 and b=1.
import cirq
circuit = cirq.Circuit(
cirq.PauliMeasurementGate(cirq.DensePauliString(""), key="a").on(),
cirq.PauliMeasurementGate(-cirq.DensePauliString(""), key="b").on(),
)
Failing to measure the empty pauli string is sort of like failing to search for matches to the empty string. It's a corner case but it should still work.
Metadata
Metadata
Assignees
Labels
kind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/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