cell_geometry_descriptor

jaxrens.constraints.cell_geometry.cell_geometry_descriptor(n_atoms, max_vol_per_atom=100.0, min_vol_per_atom=1.0, min_aspect=0.5)[source]

Wrap the cell-geometry guard as a ConstraintDescriptor.

Carries reject_reason=2 to keep the existing reject breakdown. Provided for future gate use; see the module docstring on why the cell kernels claim this constraint rather than letting the gate enforce it.

Parameters:
Return type:

ConstraintDescriptor