build_lattice_kernel

jaxrens.sampling.moves.toy_1d.build_lattice_kernel(backend, n_atoms=2, max_vol_per_atom=5.0, min_vol_per_atom=0.25)[source]

Build the 1-D lattice move: change the box length a.

Proposes a' = a + step_size * N(0, 1) and rescales the particles’ fractional coordinates, so the move is the 1-D analogue of a volume move. The paper samples a under a uniform prior (its eq 3), so there is no Jacobian factor here — acceptance is the hard likelihood constraint plus the box-length bounds.

Parameters:
  • backend (Any) – EnergyBackend instance.

  • n_atoms (int) – Particle count, used to convert the per-atom volume bounds.

  • max_vol_per_atom (float) – Upper bound on a / n_atoms.

  • min_vol_per_atom (float) – Lower bound on a / n_atoms.

Returns:

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

Return type:

step function