From d92bfca7af934f3c699c1f3faf10e3a631129a46 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 6 Feb 2024 13:44:51 +0000 Subject: [PATCH] consider cases when 2*zeta > n --- estimator/lwe_primal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/estimator/lwe_primal.py b/estimator/lwe_primal.py index 6a985cc..4029650 100644 --- a/estimator/lwe_primal.py +++ b/estimator/lwe_primal.py @@ -610,7 +610,7 @@ def find_zeta_max(params, red_cost_model): if zeta is None: zeta_max = find_zeta_max(params, red_cost_model) - with local_minimum(0, zeta_max, log_level=log_level) as it: + with local_minimum(0, min(zeta_max, params.n), log_level=log_level) as it: for zeta in it: it.update( f(