def linear_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 linear estimator."""
    return xeb_fidelity(
        circuit,
        bitstrings,
        qubit_order,
        amplitudes,
        estimator=linear_xeb_fidelity_from_probabilities,
    )
Estimates XEB fidelity from one circuit using linear estimator.
cirq-core/cirq/experiments/fidelity_estimation.py