Skip to main content

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

Metadata

Release files for erbs 0.2.0

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

Source distribution (sdist)

Source distribution for erbs 0.2.0
File Size Uploaded
erbs-0.2.0.tar.gz 316.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for erbs 0.2.0
File Interpreter ABI Platform
erbs-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 336.4 kB

Release files / erbs-0.2.0.tar.gz

Download URL erbs-0.2.0.tar.gz
Size 316.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2a2918959dbe63b63885b5ffbba7cc0a054f0d7ab211427c133ab8a80d1c7c07
BLAKE2b-256 checksum
How to use checksums
29094bcd872d03b9d2d1bb6de9b8121650a68465d7864dbf4d07797b5b78faee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.10

Release files / erbs-0.2.0-py3-none-any.whl

Download URL erbs-0.2.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c57635d2e32cdebaf34147d0cac06aef7332b4b3172b0a3a67d34c2f50c4f318
BLAKE2b-256 checksum
How to use checksums
c51cad5f3922bc8376dff1e98b890be874090ca5d8a89a09e469f3f9c8883409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.10

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release 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