OpenMM Nonbonded Slicing Plugin
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.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 9.5 MB
Release files / openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 860.4 kB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
c79d50119052b69a448679429e878a1ddcf73da3e354789022097fdd0db313ed
|
|
BLAKE2b-256 checksum How to use checksums |
18bc6e84028bca62af59d9222d824f25edf57ab41eb5c2d9922ce2d8d459dcc8
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 477.1 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5c6f3f3b9cacd722cb4468c7a553f1b3ad2855f5e2a9790846599988fbe903b7
|
|
BLAKE2b-256 checksum How to use checksums |
950b31eadb96ebd1c8d72a1fca9c0eca1bb42227c1789c134aec892a007ac68e
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-macosx_10_13_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp314-cp314-macosx_10_13_x86_64.whl |
|---|---|
| Size | 564.8 kB |
| Tags | CPython 3.14 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
d3b2fdb9fc1ea4fec541e1fb8963d6fab5f1d4afbe192d3c72b96d59c61baf14
|
|
BLAKE2b-256 checksum How to use checksums |
953bdb106773280fb79c56a0a66b83fddc87f1c27248d62d883681d87ff28d27
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 860.8 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
a820555e6c45a989c4bc22a8c5838c307888ed0ff56afbfcb8b90ac4b06d9a32
|
|
BLAKE2b-256 checksum How to use checksums |
55427694a8456afcd3f48ab65dfe3e24cc91e37a48c0b2ebc7d8a3b688772c10
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 477.0 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fda2d7f004444d3c995f2c363efec92ecce6841fe2883bec818b2aeba7e68c12
|
|
BLAKE2b-256 checksum How to use checksums |
1796e78f7324a3efe461754e5e903bd2bf6443d7c2a34635589a1a7d867493cd
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 564.7 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
bbb767c12eec8b7a1f12633bd6980fbb74f34b921ab06264176aa86d8f8cee03
|
|
BLAKE2b-256 checksum How to use checksums |
4262433cbb8bdf7ac9c7275f2945352e563740db6c27ecb0274bcd4c1aadd29d
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 863.3 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
3af2a74bbabd35d56ffa468154cb5d74a7fa2404c85bbcf822fe64171527c4c8
|
|
BLAKE2b-256 checksum How to use checksums |
6c36ed3f7929253b503bf2469eaf72a7fd99289203176544c92dec70b27f059c
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 477.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8669326694834ff4de9eeaa9d0cd3adcc2cce588c546fe757e7285b0766310ff
|
|
BLAKE2b-256 checksum How to use checksums |
99aecfbcd3f12446c17db2a37e21f694b8a54749de828d5841206b0787605a62
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 564.9 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
fbc0e140672d6173c949e3c749378d612f55f0dacf44d5122815d8345c272099
|
|
BLAKE2b-256 checksum How to use checksums |
c38189a8ccacac0b31e902115dcf6b13a6f17749b1e5aea751264fb6462ad407
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 859.0 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
c87d74405b18436f4c0d4bfade8471ccc8ed1e2ecc43ba1e11c4867111a32646
|
|
BLAKE2b-256 checksum How to use checksums |
979989c02e1f637ddcbabf4b0e006cb7bf1eac21b8a3e1fe6e57524191411b0e
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 477.2 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
94451d236a0b0569adaf996be476dd3a85c362fc45321c7d96ef4b9eb5d8cca0
|
|
BLAKE2b-256 checksum How to use checksums |
74470195eed7ef888dd8eeb4f3d0c602facf4bbb0b521766c5c97d3e50b4736c
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-macosx_10_13_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp311-cp311-macosx_10_13_x86_64.whl |
|---|---|
| Size | 564.7 kB |
| Tags | CPython 3.11 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
dfc91af8702cba2c3f3e218dbf5136685a0e78be4e8f89371d386fc78b7182b2
|
|
BLAKE2b-256 checksum How to use checksums |
964c73cc1e44496b55f0777b0dbc0af59f47829d54a784424906036108e9318f
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 856.1 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
cf4a80ce0bc13948fb078989da601177b62772e8a2666f8380b66f206c50984f
|
|
BLAKE2b-256 checksum How to use checksums |
dccc793809ed18e8a256114704466a90e988a549638ed19d0c27e12afe19b39e
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 477.2 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5ce76dd18fa9f33768855b07116d962dcc5e661b8c96cab178fa5cf6c7de3ec1
|
|
BLAKE2b-256 checksum How to use checksums |
1443da991c999bc867215f67bf46952e4a7ccffeb1630781d72f00c88ed07fec
|
| 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 logRelease files / openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-macosx_10_13_x86_64.whl
| Download URL | openmm_nonbonded_slicing-0.4.0.post1-cp310-cp310-macosx_10_13_x86_64.whl |
|---|---|
| Size | 564.8 kB |
| Tags | CPython 3.10 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
97ca539e97c3698c2d081469bece997cdff109cb026b51338b85b272f2eff768
|
|
BLAKE2b-256 checksum How to use checksums |
3d9a6c67e8b3906e8fc446513fda1bfac338238a5aff4e6fdee37d3540745343
|
| 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