Skip to main content

OpenMM Nonbonded Slicing Plugin

Linux MacOS Doc License: MIT

This OpenMM plugin contains the SlicedNonbondedForce class, a variant of OpenMM's NonbondedForce. By partitioning all particles among $n$ disjoint subsets, the total potential energy becomes a linear combination of contributions from pairs of subsets like

E = \sum_{I=0}^{n-1} \sum_{J=I}^{n-1} \left( \lambda^{vdW}_{I,J}E^{vdW}_{I,J}+\lambda^{elec}_{I,J}E^{elec}_{I,J} \right)

where each slice is defined by subsets $I$ and $J$, superscripts vdW and elec denote van der Waals and electrostatic contributions, $E_{I,J}$ is the potential energy of all particle pairs formed by one particle in subset $I$ and one in subset $J$, and $\lambda_{I,J}$ is a scaling parameter.

By default, all scaling parameters are constant and equal to 1. However, the user can turn selected scaling parameters into variables and store their values in Context global parameters. Derivatives with respect to these variables can be requested and used, for instance, to report individual energy slice contributions or sums thereof via getState with options getEnergy=True and getParameterDerivatives=True. Derivatives are only computed along with the energy: without getEnergy=True, they are NaN.

A global parameter can scale the electrostatic contributions, the van der Waals contributions, or both, of any number of slices. Since the energy is linear in the scaling parameters, the derivative with respect to a parameter $\lambda$ is the sum of the unscaled contributions it multiplies:

\frac{\partial E}{\partial \lambda} = \sum_{(I,J) \in S^{elec}_\lambda} E^{elec}_{I,J} + \sum_{(I,J) \in S^{vdW}_\lambda} E^{vdW}_{I,J}

where $S^{elec}_\lambda$ and $S^{vdW}_\lambda$ are the sets of slices whose electrostatic and van der Waals contributions are scaled by $\lambda$. This derivative does not depend on the values of the scaling parameters. For instance, a parameter that scales both contributions of a single slice $I, J$ yields its full energy $E^{vdW}_{I,J}+E^{elec}_{I,J}$, while one that scales the electrostatic contributions of several slices yields their sum.

Documentation

Documentation for this plugin is available at Github Pages. It includes the Python API and the theory for slicing lattice-sum energy contributions.

Installation

The plugin is distributed on conda-forge:

mamba install -c conda-forge openmm-nonbonded-slicing

and on PyPI, for Linux x86_64 and macOS (Apple Silicon and Intel) with Python 3.10–3.14:

pip install openmm-nonbonded-slicing            # Reference and OpenCL platforms
pip install openmm-nonbonded-slicing[cuda12]    # plus the CUDA platform (Linux, CUDA 12)
pip install openmm-nonbonded-slicing[cuda13]    # plus the CUDA platform (Linux, CUDA 13)

Each PyPI release is published once per supported OpenMM version. pip installs the newest one, upgrading OpenMM if needed; to keep an older OpenMM, pin it in the same command, for example pip install "openmm==8.5.*" openmm-nonbonded-slicing:

PyPI release OpenMM
X.Y.Z 8.4
X.Y.Z.post1 8.5
X.Y.Z.post2 8.6

On Intel Macs, OpenMM 8.6 from PyPI only works with Python 3.10, so pip installs the OpenMM 8.5 release there for Python 3.11 and later.

Instructions for building from source are in the documentation.

Usage

import openmm as mm
import nonbondedslicing as nbs
system = mm.System()
force = nbs.SlicedNonbondedForce(2)
system.addForce(force)

Metadata

Release files for openmm-nonbonded-slicing 0.4.0.post2

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

Built distributions (wheels)

Table of built distributions (wheels) for openmm-nonbonded-slicing 0.4.0.post2
File
openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_10_13_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.13+ x86-64 Details

Total release size: 7.3 MB

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-manylinux_2_34_x86_64.whl
Size 860.7 kB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e9fed4155f1d99c292ebd06cae55b870cd14df050cacc031b0f2bbe1c811e1d0
BLAKE2b-256 checksum
How to use checksums
43bf0cf1e5bd46848a5e6e7b8ccf6577a2d3dff313a514e5e2f1c031d99636f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp314-cp314-macosx_11_0_arm64.whl
Size 477.6 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4999b09d80a3c3b773b890ca52611adeb3676595efc61e83a229b8d736a7a0a2
BLAKE2b-256 checksum
How to use checksums
df2ca7a18afed73173e67fc4dc0612c6152eb637e93c572027af5d7ab9597592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-manylinux_2_34_x86_64.whl
Size 861.2 kB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6328c42148b0e64f562a0f75fbfd454e88bb44222fb186d79fa030dc959ce3ae
BLAKE2b-256 checksum
How to use checksums
4f122d16c257700b9473d79782b8ee7002c4e95a4fadd4a2191014705c466b67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp313-cp313-macosx_11_0_arm64.whl
Size 477.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6eaa63552db2e3d4512a56f2da652642aa8bcb36a3f3fc0f158bf7d8c33bc871
BLAKE2b-256 checksum
How to use checksums
03f7db44f61e7b41ddea11d5ba16afa503ba2666e14f15418de0ecbce3ee6079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-manylinux_2_34_x86_64.whl
Size 863.7 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5357240cd1b8d6d18ab9e3e4af7da641299f8c80441af69a1a6876d9ac1d5780
BLAKE2b-256 checksum
How to use checksums
6c558e2435ee600f331af055e83eea653d85eb6be95a28dee8aa818c305581a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp312-cp312-macosx_11_0_arm64.whl
Size 477.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8e52268ce2eca24f60a71713dadb7969531e4af2fb1da6a09762326aa9c5154c
BLAKE2b-256 checksum
How to use checksums
659330f8c1a6ba3044502468310fe82a7bc9e3cb3b2ed1aad338e924abd7a314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-manylinux_2_34_x86_64.whl
Size 859.3 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
1acce295dfd30f7f6c8b1fdab9df705409b4880b2e6271981e40ba76e3e6334c
BLAKE2b-256 checksum
How to use checksums
83461fd9ecf4ca7f02f37a0ced35b7049927cf9483d4f43af79abc052165376f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp311-cp311-macosx_11_0_arm64.whl
Size 477.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ee69b74ee3ba0e4527a0ec72edda9b6beb8a62a416fa5bb85c77ab532cfbe769
BLAKE2b-256 checksum
How to use checksums
c9838080a8dfb660013e7fed34ba6b0d7bc083ea8727a4f2fb292c3858626ee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-manylinux_2_34_x86_64.whl
Size 856.4 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
1dba332ca63dbedbfa177e16f1de4363d7e0e048c417d73bd84955ddf491f603
BLAKE2b-256 checksum
How to use checksums
cf1fc3150de037969d3459b7e75b84619eea3f82394da54aa855301bdc2f5604
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_11_0_arm64.whl
Size 477.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2352466b883acac99f09e5faf543f739440d7f456bebd37187fe83f54a4b8adb
BLAKE2b-256 checksum
How to use checksums
543f1a58210654c9f9cd2050e496aeec15969ff15f00327d5bf3c36a34586a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0.post2-cp310-cp310-macosx_10_13_x86_64.whl
Size 565.3 kB
Tags CPython 3.10 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
ebe4dff8d1ea0788b4998ee63c9caa48ccdab629ebf572765df31c04bc151c8b
BLAKE2b-256 checksum
How to use checksums
d990a654279dfac6359cf67e491dda0d1f3989ed956bc853b9d644c4daf4d245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0.post2 This release

11 release files

0.4.0

15 release files

0.3.0

15 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