Skip to main content

DIMOS

DIMOS (Differentiable Molecular Simulator) is a PyTorch-based framework for molecular dynamics (MD) and Monte Carlo (MC) simulations, designed to bridge the gap between traditional simulation engines and modern machine learning (ML) workflows. Built for flexibility, performance, and end-to-end differentiability, DIMOS enables seamless integration of classical force fields, machine learning interatomic potentials (MLIPs), and hybrid ML/MM approaches, empowering researchers to innovate in computational chemistry, physics, and biology.

Documentation available at: https://dimos.henrik-christiansen.net

Please cite our paper if you are using DIMOS: H. Christiansen, T. Maruyama, F. Errica, V. Zaverkin, M. Takamoto, and F. Alesiani, Fast, Modular, and Differentiable Framework for Machine Learning-Enhanced Molecular Simulations, J. Chem. Phys. 163, 182501 (2025).

For convenience, you may also use the following bibtex entry:

@article{10.1063/5.0277356,
    author = {Christiansen, Henrik and Maruyama, Takashi and Errica, Federico and Zaverkin, Viktor and Takamoto, Makoto and Alesiani, Francesco},
    title = {Fast, modular, and differentiable framework for machine learning-enhanced molecular simulations},
    journal = {J. Chem. Phys.},
    volume = {163},
    pages = {182501},
    year = {2025},
    url = {https://doi.org/10.1063/5.0277356},
}

If you are using the batching or hyperspatial capabilies, please cite (to be replaced with arXiv/published version when available):

H. Christiansen, M. Ferraz, T. Maruyama, and F. Alesiani, Hyperspatial Sampling: Circumventing Free-Energy Barriers via Replica Exchange with Extra Dimensions, https://henrik-christiansen.de/Paper/HSREX.pdf.

Installation

DIMOS can be installed using pip

pip install dimos-torch

Or alternatively by cloning and then installing locally, including optional dependencies, such as the MACE and ORB interatomic potentials or tools used for tests/development:

git clone https://github.com/nec-research/dimos.git; cd dimos

# install with optional dependencies
python -m pip install -e '.[dev,mmtools,mace,orb]'

To run the test cases based on torchMD, also this package needs to be installed. To avoid the installation of the (proprietary) moleculekit dependency, call

pip install torchmd scipy networkx pandas tqdm pyyaml --no-deps 

Get started

import dimos
system = dimos.AmberForceField("config.prmtop")
integrator = dimos.LangevinDynamics(dt, T, gamma, system)
simulation = dimos.MDSimulation(system, integrator, positions, T)
simulation.step(num_steps)

Metadata

Release files for dimos-torch 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dimos-torch 0.2.1
File Size Uploaded Provenance Actions
dimos_torch-0.2.1.tar.gz 40.8 kB Without provenance Details for dimos_torch-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dimos-torch 0.2.1
File Interpreter ABI Platform Actions
dimos_torch-0.2.1-py3-none-any.whl Python 3 none any Details for dimos_torch-0.2.1-py3-none-any.whl

Total release size: 51.1 kB

Release files / dimos_torch-0.2.1.tar.gz

Download URL dimos_torch-0.2.1.tar.gz
Size 40.8 kB
Tags Source
SHA-256 checksum
How to use checksums
623f78eb446959312eb05ce1a7574ad32f45bd01f1cffe57552a4b37bc6eca21
BLAKE2b-256 checksum
How to use checksums
c2e0e1b830fc851fe7962f32447e4bb25cf16a49cbf5f5cb4ed9052a32fd8fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / dimos_torch-0.2.1-py3-none-any.whl

Download URL dimos_torch-0.2.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26c6370493f9772297484840fa17ce2f53585de93a8035b68cca3c8e2145de55
BLAKE2b-256 checksum
How to use checksums
6a71f92db5e24b11d1c4f74a44b1f270b6445e82914313a221bff121e9a21f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for dimos-torch 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page