GMCMoveSpec

class jaxrens.cli.schema.moves.GMCMoveSpec(*, step_size=0.1, weight=1.0, adaptation_warmup=100, target_acceptance=0.5, name=None, type='gmc', n_reflect=5, species=None, refresh_direction=False)[source]

Bases: BaseMoveSpec

Galilean Monte Carlo move, optionally scoped to one element sublattice.

The legacy YAML key type: galilean is accepted via a pre-validator coercion in root.py::_coerce_move_dict and rewritten to type: gmc at parse time.

species restricts the move to the atoms of the named element(s) and holds the rest fixed. Declaring one scoped move per element gives each sublattice an independently adapted step size, because the MWG sampler stores step sizes per move and the adaptation manager bisects each move separately. That matters for systems where one sublattice melts well before the other: in a single joint move the step size is capped by whichever sublattice is stiffer.

moves:
  - {type: gmc, species: Ge, step_size: 0.3, weight: 3}
  - {type: gmc, species: Si, step_size: 0.05, weight: 1}

Two caveats worth knowing:

  • Step sizes are not comparable across scopes. The direction is a unit vector over the moving subspace, so per-atom displacement scales as step_size / sqrt(3 * n_moving) — a minority sublattice takes larger per-atom steps at equal nominal step size. Harmless (each is adapted on its own acceptance), but don’t read the two numbers as being on the same scale.

  • Each scoped move costs a full energy+force call per reflection, so two scoped moves are 2x the evaluations of one joint move for the same n_reflect. Use weight to spend the budget where it pays.

Parameters:
model_config = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].