cirq.ParamResolver

class cirq.ParamResolver(param_dict: Union[cirq.ParamResolver, Dict[str, float], None] = None)[source]

Resolves sympy.Symbols to actual values.

A Symbol is a wrapped parameter name (str). A ParamResolver is an object
that can be used to assign values for these keys.

ParamResolvers are hashable.

param_dict
A dictionary from the ParameterValue key (str) to its
assigned value.
__init__(param_dict: Union[cirq.ParamResolver, Dict[str, float], None] = None) → 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.