paraqeet.logger.Logger#

class paraqeet.logger.Logger#

Bases: ABC

Abstract base class that can be used as a callback in the optimizer.

__init__()#

Methods

__init__()

log(params, infidelity)

Template function to direct what happens at each log call.

start()

Start logging and set starting values to the run parameters.

stop([result_message])

Template function to stop logging and set end of log parameters.

log(params, infidelity)#

Template function to direct what happens at each log call.

Parameters:
  • params (list[Quantity]) – List of parameters to be logged.

  • infidelity (float) – Goal value to be logged.

start()#

Start logging and set starting values to the run parameters.

stop(result_message=None)#

Template function to stop logging and set end of log parameters.

Parameters:

result_message (str | None = None) – The message that the user wants to write at the end of the log file.