build_morph_kernel

jaxrens.sampling.moves.alchemical.build_morph_kernel(backend, n_species)[source]

Build an atom morph kernel.

Selects a random atom, changes its type to a random different species, and accepts if the new energy is below the NS constraint.

Parameters:
  • backend (Any) – EnergyBackend instance.

  • n_species (int) – Total number of distinct species.

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.

Cleared by: Production sGC runs delivering correct physics for a binary system.