jaxrens.cli.schema.constraints

Pydantic schema for the constraints section of a jaxrens YAML config.

Configuration constraints are hard predicates on a walker geometry that restrict the prior the chain explores (see jaxrens.constraints). Each concrete spec validates user input and produces a jaxrens.constraints.base.ConstraintDescriptor via to_descriptor, which the resolver registers with build_mwg.

Example YAML:

constraints:
  - type: minimum_distance
    d_min: 0.8                 # uniform floor, Angstrom
  - type: minimum_distance
    d_min:                     # per-species-pair floors
      default: 1.0
      Si-Si: 2.0
      Si-O: 1.6

Classes

BaseConstraintSpec

Fields shared by every constraint type.

ConstraintSpec

Runtime representation of an annotated type.

MinDistanceConstraintSpec

Reject configurations with any inter-atomic distance below d_min.