def to_resolvers(sweepable: Sweepable) -> Iterator[ParamResolver]:
    """Convert a Sweepable to a list of ParamResolvers."""
    for sweep in to_sweeps(sweepable):
        yield from sweep
Convert a Sweepable to a list of ParamResolvers.
cirq-core/cirq/study/sweepable.py