def observables_to_settings(
    observables: Iterable[cirq.PauliString], qubits: Iterable[cirq.Qid]
) -> Iterable[InitObsSetting]:
    """Transform an observable to an InitObsSetting initialized in the
    all-zeros state.
    """
    for observable in observables:
        yield InitObsSetting(init_state=zeros_state(qubits), observable=observable)
Transform an observable to an InitObsSetting initialized in the
    all-zeros state.
    
cirq-core/cirq/work/observable_settings.py