pytc.vmc.mcmc_utils.save_optimization_history¶
- pytc.vmc.mcmc_utils.save_optimization_history(data, filepath)[source]¶
Save the optimization history dictionary to an HDF5 file.
- Parameters:
data (Dict[str, Any]) – Dictionary with keys ‘cost’, ‘energies’, ‘stds’, ‘acceptance’, ‘params’ as outputted by the optimization loop.
filepath (str) – Path to the HDF5 file (e.g., ‘optimization_results.h5’).
- Returns:
Path to the saved HDF5 file.
- Return type:
str