def METHOD_NAME(curve, security_level, log_q):
    """
    Retrieve the smallest lwe dimension usable for the given security level and log_q
    :param curve:
    :param security_level:
    :param log_q:
    :return:
    """
    minimal_lwe_dim = curve[-1]
    return minimal_lwe_dim