dummy_problem

class cryptographic_estimators.DummyEstimator.dummy_problem.DummyProblem(problem_parameter1: float, problem_parameter2: float, **kwargs)

Bases: BaseProblem

Construct an instance of DummyProblem.

Contains the parameters to optimize over.

Parameters:
  • problem_parameter1 (float) – First parameter of the problem

  • problem_parameter2 (float) – Second parameter of the problem

  • **kwargs

    Additional keyword arguments

    nsolutions - Number of solutions of the problem in logarithmic scale

expected_number_solutions()

Returns the logarithm of the expected number of existing solutions to the problem.

get_parameters()

Returns the optimizations parameters.

to_bitcomplexity_memory(elements_to_store: float)

Returns the memory bit-complexity associated to a given number of elements to store.

Parameters:

elements_to_store (float) – Number of memory operations (logarithmic).

to_bitcomplexity_time(basic_operations: float)

Returns the bit-complexity corresponding to a certain amount of basic_operations.

Parameters:

basic_operations (float) – Number of basic operations (logarithmic)