cirq.to_sweep

cirq.to_sweep(sweep_or_resolver_list: Union[Sweep, cirq.ParamResolver, Dict[Union[str, sympy.core.symbol.Symbol], Union[float, str, sympy.core.basic.Basic]], None, Iterable[Optional[Union[cirq.ParamResolver, Dict[Union[str, sympy.core.symbol.Symbol], Union[float, str, sympy.core.basic.Basic]]]]]]) → Sweep[source]

Converts the argument into a cirq.Sweep.

Parameters

sweep_or_resolver_list – The object to try to turn into a cirq.Sweep . A cirq.Sweep, a single cirq.ParamResolver, or a list of cirq.ParamResolver s.

Returns

A sweep equal to or containing the argument.