cirq.ParamResolver.value_of

ParamResolver.value_of(value: Union[cirq.value.symbol.Symbol, float, str]) → Union[cirq.value.symbol.Symbol, float][source]

Attempt to resolve a Symbol or name or float to its assigned value.

If unable to resolve a Symbol, returns it unchanged.
If unable to resolve a name, returns a Symbol with that name.
Parameters:value – The Symbol or name or float to try to resolve into just a float.
Returns:The value of the parameter as resolved by this resolver.