From 60808bdc17f99b78bd1bbcd621af04bc6f0e98bb Mon Sep 17 00:00:00 2001 From: "Martin R. Albrecht" Date: Tue, 23 Apr 2024 08:56:47 +0100 Subject: [PATCH] don't unconditionally increase length bound fixes #109 --- estimator/sis_lattice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/estimator/sis_lattice.py b/estimator/sis_lattice.py index 48119a8..f3ae7d5 100644 --- a/estimator/sis_lattice.py +++ b/estimator/sis_lattice.py @@ -203,7 +203,9 @@ def cost_zeta( """ # step 0. establish baseline cost using worst case euclidean norm estimate # length_bound =1 makes sense when norm=∞, but we take logs and divide - params_baseline = params.updated(norm=2, length_bound=params.length_bound + 1) + params_baseline = params.updated( + norm=2, length_bound=2 if params.length_bound == 1 else params.length_bound + ) baseline_cost = lattice( params_baseline, ignore_qary=ignore_qary,