Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ludopulles committed Sep 19, 2024
1 parent b5781ba commit 205adbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions estimator/lwe_dual.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def __call__(
EXAMPLES::
>>> warnings.filterwarnings("ignore", category=DeprecationWarning)
>>> from estimator import *
>>> from estimator.lwe_dual import dual_hybrid
>>> params = LWE.Parameters(n=1024, q = 2**32, Xs=ND.Uniform(0,1), Xe=ND.DiscreteGaussian(3.0))
Expand Down
4 changes: 2 additions & 2 deletions estimator/nd.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ def __hash__(self):
EXAMPLE::
>>> from estimator import *
>>> hash(ND.Uniform(-10, 10)) == hash(("Uniform", 10, 10, None))
>>> hash(ND.Uniform(-10, 10)) == hash(("Uniform", (-10, 10), None))
True
"""
return hash(("Uniform", self.a, self.b, self.n))
return hash(("Uniform", self.bounds, self.n))

def support_size(self, fraction=1.0):
"""
Expand Down
4 changes: 2 additions & 2 deletions estimator/reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ def __call__(self, beta, d, B=None):
>>> from sage.all import var, find_fit
>>> dim = [100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250]
>>> nodes = [39.0, 44.0, 49.0, 54.0, 60.0, 66.0, 72.0, 78.0, 84.0, 96.0, \
99.0, 105.0, 111.0, 120.0, 127.0, 134.0]
>>> nodes = [39.0, 44.0, 49.0, 54.0, 60.0, 66.0, 72.0, 78.0, 84.0, 96.0 ]
>>> nodes += [ 99.0, 105.0, 111.0, 120.0, 127.0, 134.0] # couldn't use \\ breaks stuff
>>> times = [c + log(200,2).n() for c in nodes]
>>> T = list(zip(dim, nodes))
>>> var("a,b,c,beta")
Expand Down
1 change: 1 addition & 0 deletions estimator/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ def batch_estimate(params, algorithm, jobs=1, log_level=0, catch_exceptions=True
>>> from estimator import LWE
>>> from estimator.schemes import Kyber512
>>> from estimator.util import batch_estimate
>>> _ = batch_estimate(Kyber512, [LWE.primal_usvp, LWE.primal_bdd])
>>> _ = batch_estimate(Kyber512, [LWE.primal_usvp, LWE.primal_bdd], jobs=2)
Expand Down

0 comments on commit 205adbb

Please sign in to comment.