cirq.protocols.with_measurement_key_mapping

Remaps the target's measurement keys according to the provided key_map.

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).