Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: β = 1050 > d = 1049 for n=1030, q=2^64 #95

Open
ElenaKirshanova opened this issue Jan 25, 2024 · 1 comment
Open

RuntimeError: β = 1050 > d = 1049 for n=1030, q=2^64 #95

ElenaKirshanova opened this issue Jan 25, 2024 · 1 comment

Comments

@ElenaKirshanova
Copy link
Contributor

ElenaKirshanova commented Jan 25, 2024

Executing

params=LWE.Parameters(n=1030, q=2^64, Xs=ND.UniformMod(2), Xe=ND.DiscreteGaussian(stddev=3.19)) primal_usvp_cost = LWE.primal_usvp(params, red_cost_model=RC.BDGL16)

does not pass sanity_check():

RuntimeError: β = 1050 > d = 1049

Oddly, for the default red_cost_model (red_cost_model = RC.MATZOV) the issue does not appear.

Potential fix: checking inside _solve_for_d

def _solve_for_d(params, m, beta, tau, xi):
that the returned d is at least beta.

@ElenaKirshanova
Copy link
Contributor Author

Just noticed that it can be related to #87 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant