﻿# ASE periodic cell metadata does not automatically request minimum-image distances

ASE periodic cell metadata does not automatically request minimum-image distances. A focused scientific-computing guide with the documented mechanism, a reproducible validation scenario, evidence and operational limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/science-ase-distance-minimum-image-option/
Language: en

An ASE Atoms object can carry a periodic cell while a distance request still uses the direct displacement between stored positions. The get_distance interface makes minimum-image handling an explicit option. A scientific AI neighbor or pair-label generator must choose the intended geometry instead of assuming that periodic metadata automatically changes every distance calculation.

## The scientific interface

The Atoms distance methods document mic=False by default and mic=True for the Minimum Image Convention. Cell and periodic-boundary information remain inputs to that chosen operation; they are not a replacement for selecting it. A distance vector also has direction semantics distinct from its norm. Wrapping stored positions into a cell is another transformation and does not mean every later direct displacement equals the intended minimum-image vector. The selected geometry contract must therefore remain explicit through feature generation.

## Implementation details

Record cell, periodic flags and distance policy with neighbor or pairwise targets. Use a supported geometry path for the intended cell rather than a convenient coordinate subtraction that ignores boundaries. Preserve whether a feature contains a vector or scalar norm and its atom-order direction. Validate geometry after cell or position transformations, including nonperiodic axes where applicable. Do not infer the neighbor population solely from a cutoff without first establishing which distance that cutoff applies to. A graph with valid tensor dimensions can still contain the wrong physical connections.

## A constructed validation case

Construct atoms close across a periodic boundary and compare direct and declared minimum-image distances. Include an interior control, a nonperiodic direction and a supported skew-cell fixture with independently reviewed expectations. Check scalar distance and vector direction separately. Acceptance requires the intended geometry and neighbor membership, not universal equality between wrapped-coordinate subtraction and minimum-image calculations. Preserve cell and periodic flags with the fixture so a later loader cannot reproduce the positions while silently losing the boundary conditions that define the scientific problem.

## Numerical and data limits

Correct periodic geometry does not establish a valid interaction potential or sufficient neighbor cutoff. Those need separate scientific evidence. It establishes which distances and vectors the AI pipeline actually used, preventing a boundary convention from becoming a hidden change in the model's physical input.

## Primary references

[ASE Atoms numerical and structural properties](https://docs.ase-lib.org/ase/atoms.html); [ASE geometry and minimum-image calculations](https://docs.ase-lib.org/ase/geometry.html).

This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.

## Related reading

[SPICE: atomic numbers alone do not identify a charged molecular state](/journal/fg2-spice-charge-state-molecular-target-schema/); [Tensor axes in a language model: batch, sequence and hidden width](/journal/tensor-axes-batch-sequence-hidden/).
