def xeb_fidelity(self, q0: cirq.GridQubit, q1: cirq.GridQubit) -> float:
        """Return the XEB fidelity of a qubit pair."""
        return noise_utils.decay_constant_to_xeb_fidelity(
            self._record(q0, q1).layer_fid, num_qubits=2
        )
Return the XEB fidelity of a qubit pair.
cirq-core/cirq/experiments/two_qubit_xeb.py