jaxrens.cli.monitor

NS callback implementations for monitoring, checkpointing, and I/O.

These are plugged into the NS outer loop via the callbacks parameter. Callbacks receive NSState objects (not dicts).

Classes

AccRatesCallback

Writes per-iteration chain-phase per-move acceptance counts to HDF5.

AdaptationCallback

Writes per-move adaptation data to an HDF5 trace file.

BatchedTrajectoryCallback

Trajectory + energy logging for multi-run NS.

CheckpointCallback

Saves checkpoints at configured intervals.

CollisionCheckCallback

Periodically scans walkers for unphysically close atom pairs.

EnergyCheckCallback

Warns if any replica's Emax fails to decrease between iterations.

MaxNeighborsCallback

Writes per-iteration neighbor-bucket diagnostics to HDF5.

MemProfileCallback

One-shot device-memory snapshot on the first post-compile iteration.

ProgressCallback

Prints a multi-line per-move adaptation summary at each info interval.

RECallback

Writes per-fire inter-RE swap counts to HDF5.

TemperatureCallback

Finite-difference temperature estimator (Baldock et al., PRE 96, 043311, 2017).

TrajectoryCallback

Writes dead points and snapshots at configured intervals.