View source on GitHub |
Remaps the target's measurement keys according to the provided key_map.
cirq.with_measurement_key_mapping(
val: Any, key_map: Mapping[str, str]
)
This method can be used to reassign measurement keys at runtime, or to assign measurement keys from a higher-level object (such as a Circuit).