def log_xeb_fidelity(
    circuit: cirq.Circuit,
    bitstrings: Sequence[int],
    qubit_order: QubitOrderOrList = QubitOrder.DEFAULT,
    amplitudes: Mapping[int, complex] | None = None,
) -> float:
    """Estimates XEB fidelity from one circuit using logarithmic estimator."""
    return xeb_fidelity(
        circuit, bitstrings, qubit_order, amplitudes, estimator=log_xeb_fidelity_from_probabilities
    )
Estimates XEB fidelity from one circuit using logarithmic estimator.
cirq-core/cirq/experiments/fidelity_estimation.py