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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dimos_torch-0.2.1.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dimos_torch-0.2.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file dimos_torch-0.2.1.tar.gz.

File metadata

  • Download URL: dimos_torch-0.2.1.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.13

File hashes

Hashes for dimos_torch-0.2.1.tar.gz
Algorithm Hash digest
SHA256 623f78eb446959312eb05ce1a7574ad32f45bd01f1cffe57552a4b37bc6eca21
MD5 08b43133bc0aa4a19eecff0f48d1e240
BLAKE2b-256 c2e0e1b830fc851fe7962f32447e4bb25cf16a49cbf5f5cb4ed9052a32fd8fab

See more details on using hashes here.

File details

Details for the file dimos_torch-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dimos_torch-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.13

File hashes

Hashes for dimos_torch-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26c6370493f9772297484840fa17ce2f53585de93a8035b68cca3c8e2145de55
MD5 0f43a612ec09f6ef5c7e4be67aaf50e3
BLAKE2b-256 6a71f92db5e24b11d1c4f74a44b1f270b6445e82914313a221bff121e9a21f33

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.1.1

2 files

0.1

2 files

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