def decay_constant_to_xeb_fidelity(
    decay_constant: float, num_qubits: int = 2
) -> float:  # pragma: no cover
    """Calculates the XEB fidelity from the depolarization decay constant.

    Args:
        decay_constant: Depolarization decay constant.
        num_qubits: Number of qubits.

    Returns:
        Calculated XEB fidelity.
    """
    return qis.decay_constant_to_xeb_fidelity(decay_constant, num_qubits)
Calculates the XEB fidelity from the depolarization decay constant.

    Args:
        decay_constant: Depolarization decay constant.
        num_qubits: Number of qubits.

    Returns:
        Calculated XEB fidelity.
    
cirq-core/cirq/devices/noise_utils.py