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

    Args:
        xeb_fidelity: The XEB fidelity.
        num_qubits: Number of qubits.

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

    Args:
        xeb_fidelity: The XEB fidelity.
        num_qubits: Number of qubits.

    Returns:
        Calculated depolarization decay constant.
    
cirq-core/cirq/devices/noise_utils.py