Resolves symbol parameters in the effect using the param resolver.
recursive: bool = True
) -> T
Used in the notebooks
This function will use the
_resolve_parameters_ magic method
val to resolve any Symbols with concrete values from the given
The object to resolve (e.g. the gate, operation, etc)
the object to use for resolving all symbols
if True, resolves parameters recursively over the
resolver; otherwise performs a single resolution step.
a gate or operation of the same type, but with all Symbols
replaced with floats or terminal symbols according to the
val has no
method or if it returns NotImplemented,
val itself is returned.
Note that in some cases, such as when directly resolving a sympy
Symbol, the return type could differ from the input type; however,
for the much more common case of resolving parameters on cirq
objects (or if resolving a Union[Symbol, float] instead of just a
Symbol), the return type will be the same as val so we reflect
that in the type signature of this protocol function.
RecursionError if the ParamResolver detects a loop in resolution.
recursive=False is passed to an external
_resolveparameters method with no