build_kernel

jaxrens.sampling.moves.shear.build_kernel(backend, n_atoms, max_vol_per_atom=100.0, min_vol_per_atom=1.0, min_aspect=0.5)[source]

Build a shear move kernel.

Parameters:
  • backend (Any) – EnergyBackend instance.

  • n_atoms (int) – Number of atoms.

  • max_vol_per_atom (float) – Upper bound on volume per atom.

  • min_vol_per_atom (float) – Lower bound on volume per atom.

  • min_aspect (float) – Minimum cell aspect ratio.

Returns:

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

Return type:

step function