estimator.util.batch_estimate

Contents

estimator.util.batch_estimate#

estimator.util.batch_estimate(params, algorithm, jobs=1, log_level=0, catch_exceptions=True, **kwds)[source]#

Run estimates for all algorithms for all parameters.

Parameters:
  • params – (List of) LWE parameters.

  • algorithm – (List of) algorithms.

  • jobs – Use multiple threads in parallel.

  • log_level

  • catch_exceptions – When an estimate fails, just print a warning.

Example:

>>> from estimator import LWE
>>> from estimator.schemes import Kyber512
>>> _ = batch_estimate(Kyber512, [LWE.primal_usvp, LWE.primal_bdd])
>>> _ = batch_estimate(Kyber512, [LWE.primal_usvp, LWE.primal_bdd], jobs=2)