Skip to main content

Enhanced sampling in the representation space of atomistic neural networks.

Project description

ERBS - Enhanced Representation Based Sampling

ERBS is a JAX-based library for the efficient generation of training data for Machine-Learned Interatomic Potentials (MLIPs).

It implements the Enhanced Representation Based Sampling strategy, which identifies slow, physically relevant collective variables directly from the variance of atomic descriptors and accelerates sampling along these modes using bias potentials. The library itself ships with a simplified version of the Gaussian Moment descriptor, but is descriptor agostic and can be easily interfaced with others.

Features

  • Automated CV Selection: Automatically identifies slow degrees of freedom via PCA on the descriptor space.
  • OPES-Explore: Uses the OPES-Explore formalism to rapidly explore the free energy surface with bounded bias potentials.
  • Model Agnostic: Can be used with any atomistic descriptor that matches the required function signature (see Documentation).

Installation

ERBS is available on PyPI:

pip install erbs

To install the latest development version from GitHub:

pip install git+https://github.com/your_username/erbs.git

Usage

ERBS integrates with ASE to run enhanced sampling simulations. A typical workflow involves the typical ASE setup, selecting a descriptor and wrapping the plain energy/forces calculator with ERBS.

dim_reduction = GlobalPCA(pca_components)

dE = units.kB * temperature * barrier_factor
energy_fn_factory = OPESExploreFactory(
    T=temperature, dE=dE, a=band_width
)

base_calc = ...
calc = ERBS(
    base_calc,
    dim_reduction,
    energy_fn_factory,
    n_basis=4, # Uses built-in GM descriptor
    r_min=1.1,
    r_max=6.0,
    dr_threshold=0.5,
    interval=2000,
)

Authors

Moritz René Schäfer

Under the supervision of Johannes Kästner.

Contributing

We are happy to receive your issues and pull requests! If you want to add a new dimensionality reduction, energy function or descriptor, please open an issue to discuss the implementation details.

Acknowledgements

The creation of ERBS was supported by the DFG under Germany's Excellence Strategy - EXC 2075 - 390740016 and the Stuttgart Center for Simulation Science (SimTech).

References

If you use ERBS in your research, please cite the following paper:

TBD

Project details


Download files

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

Source Distribution

erbs-0.2.0.tar.gz (316.1 kB view details)

Uploaded Source

Built Distribution

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

erbs-0.2.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file erbs-0.2.0.tar.gz.

File metadata

  • Download URL: erbs-0.2.0.tar.gz
  • Upload date:
  • Size: 316.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.10

File hashes

Hashes for erbs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a2918959dbe63b63885b5ffbba7cc0a054f0d7ab211427c133ab8a80d1c7c07
MD5 67f3cfa60b423c4bc56a90a5f2b91453
BLAKE2b-256 29094bcd872d03b9d2d1bb6de9b8121650a68465d7864dbf4d07797b5b78faee

See more details on using hashes here.

File details

Details for the file erbs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: erbs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.10

File hashes

Hashes for erbs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c57635d2e32cdebaf34147d0cac06aef7332b4b3172b0a3a67d34c2f50c4f318
MD5 e7dd16f17f2c81fbf8c7593633c74e4f
BLAKE2b-256 c51cad5f3922bc8376dff1e98b890be874090ca5d8a89a09e469f3f9c8883409

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page