MatterSim is a deep learning atomistic model developed by Microsoft, designed for simulating materials across various elements, temperatures, and pressures. It provides a flexible framework for energy, force, and stress calculations, and integrates with the Atomic Simulation Environment (ASE). The library is actively maintained with frequent patch releases addressing compatibility and bug fixes, typically on major versions like 1.x.
pip install mattersimVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load a pre-trained MatterSim model, initialize a calculator, attach it to an ASE Atoms object, and perform a basic energy minimization. It relies on `torch.hub.load` for convenient model retrieval.
Upgrade MatterSim to version 1.2.1 or newer to ensure compatibility with ASE 3.27+.
Ensure MatterSim is updated to version 1.2.1 or newer. If you must use an older MatterSim version, you might need to downgrade `setuptools`.
Upgrade MatterSim to version 1.2.2 or newer to resolve the `stress` calculation import issue.
Upgrade MatterSim to version 1.1.2 or newer to benefit from unpinned `torch` dependency, allowing greater flexibility in your environment. If staying on an older version, ensure your `torch` version matches the strict requirement.