def pauli_error_to_decay_constant(
    pauli_error: float, num_qubits: int = 1
) -> float:  # pragma: no cover
    """Calculates depolarization decay constant from pauli error.

    Args:
        pauli_error: The pauli error.
        num_qubits: Number of qubits.

    Returns:
        Calculated depolarization decay constant.
    """
    return qis.pauli_error_to_decay_constant(pauli_error, num_qubits)
Calculates depolarization decay constant from pauli error.

    Args:
        pauli_error: The pauli error.
        num_qubits: Number of qubits.

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