View source on GitHub |
Returns whether the object is parameterized with any Symbols.
cirq.is_parameterized(
val: Any
) -> bool
Used in the notebooks
Used in the tutorials |
---|
A value is parameterized when it has an _is_parameterized_
method and
that method returns a truthy value, or if the value is an instance of
sympy.Basic.
Returns | |
---|---|
True if the gate has any unresolved Symbols and False otherwise. If no implementation of the magic method above exists or if that method returns NotImplemented, this will default to False. |