cirq.chosen_angle_to_half_turns¶
-
cirq.chosen_angle_to_half_turns(half_turns: Union[cirq.value.symbol.Symbol, float, None] = None, rads: Optional[float] = None, degs: Optional[float] = None, default: float = 1.0) → Union[cirq.value.symbol.Symbol, float][source]¶ Returns a half_turns value based on the given arguments.
At most one of half_turns, rads, degs must be specified. If none arespecified, the output defaults to half_turns=1.Parameters: - half_turns – The number of half turns to rotate by.
- rads – The number of radians to rotate by.
- degs – The number of degrees to rotate by
- default – The half turns angle to use if nothing else is specified.
Returns: A number of half turns.