cirq.ParamResolver¶
-
class
cirq.ParamResolver(param_dict: Dict[str, float])[source]¶ Resolves Symbols to actual values.
A Symbol is a wrapped parameter name (str). A ParamResolver is an objectthat can be used to assign values for these keys.ParamResolvers are hashable.
-
param_dict¶
A dictionary from the ParameterValue key (str) to itsassigned value.-
__init__(param_dict: Dict[str, float]) → None[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
value_of(value, float, str])Attempt to resolve a Symbol or name or float to its assigned value. -