cirq.control_keys

Gets the keys that the value is classically controlled by.

val The object that may be classically controlled.

The measurement keys the value is controlled by. If the value is not classically controlled, the result is the empty tuple.

For composite operations (e.g. CircuitOperation), only control keys that have not already been measured earlier in the subcircuit are returned. Control keys that are satisfied by measurements after their use in the subcircuit are still required externally and thus appear in the result.