build_distance_kernel

jaxrens.sampling.moves.toy_1d.build_distance_kernel(backend)[source]

Build the 1-D distance move: displace one particle along the axis.

Picks a particle at random and shifts its x by a Gaussian step, wrapping back into [0, a). Only x moves: y and z are not arguments of the toy energy, and letting them drift would add dimensions the model does not have.

Parameters:

backend (Any) – EnergyBackend instance.

Returns:

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

Return type:

step function