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

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
File
openmm_nonbonded_slicing-0.4.0-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-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0-cp314-cp314-macosx_10_13_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.13+ x86-64 Details
openmm_nonbonded_slicing-0.4.0-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-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details
openmm_nonbonded_slicing-0.4.0-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-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
openmm_nonbonded_slicing-0.4.0-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-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0-cp311-cp311-macosx_10_13_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.13+ x86-64 Details
openmm_nonbonded_slicing-0.4.0-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-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
openmm_nonbonded_slicing-0.4.0-cp310-cp310-macosx_10_13_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.13+ x86-64 Details

Total release size: 9.5 MB

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

Download URL openmm_nonbonded_slicing-0.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
Size 855.8 kB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
4f7586ff095e252ea10bafac9c441ae2766145976d783b669a73bef3dd413ad5
BLAKE2b-256 checksum
How to use checksums
e61263637ef6b82607c7f0b6cec15fa05cfa3b6c81d36158b1446d33b1ee9d56
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-cp314-cp314-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Size 476.3 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e354b0335818abb67710c14359a996a0bbf31f72052ebc66559a78d5c9c366a8
BLAKE2b-256 checksum
How to use checksums
4d6e40661470fcca4eee8d6639171b2b043142d242be09f9a97139ee258a875d
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-cp314-cp314-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp314-cp314-macosx_10_13_x86_64.whl
Size 563.9 kB
Tags CPython 3.14 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
ba4471eca7535366fd3a846a2400aa565d4708261201e9747def9001fe6946b3
BLAKE2b-256 checksum
How to use checksums
9a7118c611168b6024109ab4e11f2fce5bbcaee20371c9c4b9e49458d4bab5c4
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-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
Size 856.3 kB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
c1eefc6028bce078030a250375218052c542f1e51944bb892ffbe68cbe2cfd25
BLAKE2b-256 checksum
How to use checksums
0c93c2753607ce58f167401ac4d541f3d5fb3287c796764384629f771e9fd14e
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-cp313-cp313-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Size 476.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c357f85f4e462321b73e3d737b9c9c6ee80d05b87c0394661872955cd859cfa2
BLAKE2b-256 checksum
How to use checksums
1aa4c59200cfc6ad74379348a2990dc6fd627abd6b90aaf61ad5fc2a61fcc115
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-cp313-cp313-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Size 563.7 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
e60a9ca9cb3c81a89f1410c7516b89bd1afc0c2242f44c5549d2b286bd2b44dd
BLAKE2b-256 checksum
How to use checksums
4dfbc2c84572c6371c6c6455619353f43f04fc528ca3a56b00978d4483d6c54d
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-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 858.9 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
4b17b0ba8a906b7c6057ca5b1f22da0b8399a50acf43ab233cdcb1d8ba197cba
BLAKE2b-256 checksum
How to use checksums
f0fb8b622fae46f505bd710d517a0deaa02249f2f34b83fae6d13de51d6584e4
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-cp312-cp312-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Size 476.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7c63485300c2a3bb6a40eba491ef56d6ffd24cd5d240e19314e5e2420eaddf6b
BLAKE2b-256 checksum
How to use checksums
99e3038f485f279b62d62e45fd0958b2aee9f0245b1789186234db0e2a7f1e93
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-cp312-cp312-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp312-cp312-macosx_10_13_x86_64.whl
Size 563.9 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
4f9b50359e9fb7cf76d0e0b3c87e68782bca90aaa66d101a9a5699cae3988a51
BLAKE2b-256 checksum
How to use checksums
399056012ef57707a21a7c68609efc66f3c4c045990f2df5ef91d12c0a06fae1
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-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 855.0 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
7bacd70e7ab3510589fd92129e736a3f95d371973486fceaeea75e8c68076d71
BLAKE2b-256 checksum
How to use checksums
4db1cc1e4d660b80bc15dfb370ffe9665a0b683eacfb56418305bcbc20cdc33c
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-cp311-cp311-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Size 476.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
39b78043b4e749b86f598115e80ac8486375bd005ba79d6427149a51401ea398
BLAKE2b-256 checksum
How to use checksums
a771494507d7687ac5b68b435be3b0fb843bf2b808de400893becf149ad80241
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-cp311-cp311-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp311-cp311-macosx_10_13_x86_64.whl
Size 563.7 kB
Tags CPython 3.11 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
0f5912bf607175b53d135f71a1afc21e642457664a3c89f007c521c7a3098d8e
BLAKE2b-256 checksum
How to use checksums
0b00703da5f4c3d3f9f3a7063988be384972d8779a7e96f122dd4137a089d6c1
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-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 852.6 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
a032ade2ccd1e147d108a05a804eda7184ffe0ac92f7cd1729b97189ed0eecc3
BLAKE2b-256 checksum
How to use checksums
dd7b699a31b6d336b483297b575e19ab966d10e7a150f3d8b872d8e80cf34387
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-cp310-cp310-macosx_11_0_arm64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Size 476.4 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e30fb071e39be1e4aa62e043d89c87e422dd92e24c01b28485b074c9f5bc4f6c
BLAKE2b-256 checksum
How to use checksums
63c40204a6e0af26a3ae8dd4daccac3eb83195d4a55b9fab15ef171064c166f4
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-cp310-cp310-macosx_10_13_x86_64.whl

Download URL openmm_nonbonded_slicing-0.4.0-cp310-cp310-macosx_10_13_x86_64.whl
Size 563.8 kB
Tags CPython 3.10 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
63640965c0d9f0b4673de775a74676bf9441da51306da819474bcc1e2347b5e7
BLAKE2b-256 checksum
How to use checksums
4a9bd563dd5e2febabd18337fb3b5fab7b633622b0652ba0840f2f1991c54bb9
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 This release

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