Qubits are not remapped in the default measurement key #4124
Labels
area/measurements
kind/bug-report
Something doesn't seem to work.
status/stale
This has been closed due to inactivity for an extended period of time.
Description of the issue
When a measurement operation created from
cirq.measure
without an explicit key is remapped to some other qubit, the measurement key does not update.How to reproduce the issue
The last assertion will fail because the operation does not really process the key as made of the qubit. This might not strictly be a bug, but it would be much nicer to allow users to assume that when no explicit key is specified, Cirq will be smart enough to key the result by the actual qubit(s) that were operated on.
This issue is mainly for bookkeeping, I already have a fix planned and ready to go. Part of #4040
The text was updated successfully, but these errors were encountered: