Open
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.
Activity