pytc.vmc.blocking.analyze_optimization_history

pytc.vmc.blocking.analyze_optimization_history(history, burn_in_frac='auto', print_results=True)[source]

Analyze an optimization history, discarding burn-in and computing block analysis.

Parameters:
  • history (str | Dict[str, Any]) – Filepath to an HDF5 history file, or a dictionary containing history data.

  • burn_in_frac (float | str) – Fraction of the initial steps to discard as burn-in.

  • print_results (bool) – Whether to print textual output.

Returns:

A dictionary containing the block analysis results and optimal parameters (Polyak averaged).

Return type:

Dict[str, Any]