Converts the argument into a <a href="../cirq/Sweep"><code>cirq.Sweep</code></a>
.
cirq.to_sweep(
sweep_or_resolver_list: Union['Sweep', ParamResolverOrSimilarType, Iterable[ParamResolverOrSimilarType]
]
) -> 'Sweep'
Args |
sweep_or_resolver_list
|
The object to try to turn into a
<a href="../cirq/Sweep"><code>cirq.Sweep</code></a> . A <a href="../cirq/Sweep"><code>cirq.Sweep</code></a> , a single <a href="../cirq/ParamResolver"><code>cirq.ParamResolver</code></a> ,
or a list of <a href="../cirq/ParamResolver"><code>cirq.ParamResolver</code></a> s.
|
Returns |
A sweep equal to or containing the argument.
|
Raises |
TypeError
|
If an unsupport type was supplied.
|