build_kernel

jaxrens.sampling.moves.hmc.build_kernel(backend, n_leapfrog=10)[source]

Build an HMC move kernel.

Parameters:
  • backend (Any) – EnergyBackend instance. Must be differentiable w.r.t. positions.

  • n_leapfrog (int) – Number of leapfrog integration steps.

Returns:

(rng_key, state, Emax) -> (new_state, MoveInfo)

Return type:

step function

Warning

Unvalidated (since 0.2.2) — this code path has never been exercised in a production simulation. It may be unit-tested; what is missing is a real run whose output was checked.

Concern: no production NS run has used this move. Two specifics: the acceptance test is a hard delta_H < 1.0 cut – an absolute, unit-dependent energy tolerance rather than a Metropolis exp(-delta_H) test – so it is not a detailed-balance-preserving accept; and the leapfrog timestep reuses state.step_size, which the adaptation tunes as a random-walk displacement, not as an integrator timestep

Cleared by: a multi-walker NS run whose HMC accept rate and energy trace track the random-walk move on the same system