Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Vesin: fast neighbor lists for atomistic systems

Documentation Tests

English 🇺🇸⁠/⁠🇬🇧 Occitan Arpitan French 🇫🇷 Gallo‑Italic Catalan Spanish 🇪🇸 Italian 🇮🇹
neighbo(u)r vesin vesin voisin visin veí vecino vicino

Vesin is a fast and easy to use library computing neighbor lists for atomistic systems, with CPU and GPU support. We provide an interface for the following programing languages and frameworks:

  • C (compatible with C++). The code can be used as an external library, or included as a single file and built directly by your own build system;
  • Fortran;
  • Python;
  • PyTorch, supporting both torch.compile and TorchScript;
  • Jax

Installation

To use the code from Python, you can install it with pip:

pip install vesin
pip install vesin-torch  # for PyTorch support
pip install vesin-jax    # for Jax support

See the documentation for more information on how to install the code and use it.

Usage instruction

You can either use the NeighborList calculator class:

import numpy as np
from vesin import NeighborList

# positions can be anything compatible with numpy's ndarray
positions = [
    (0, 0, 0),
    (0, 1.3, 1.3),
]
box = 3.2 * np.eye(3)

calculator = NeighborList(cutoff=4.2, full_list=True)
i, j, S, d = calculator.compute(
    points=positions,
    box=box,
    periodic=True,
    quantities="ijSd",
)

Benchmarks

You can find below benchmark result computing neighbor lists for increasingly large diamond supercells, using an AMD EPYC 9334 CPU and an NVIDIA H100 GPU. You can run this benchmark on your system with python -m benchmarks.run (from the repository root). Cross on points indicate that a specific code could not run the calculation after or before the cross (for example, NNPOps requires the cell to be twice the cutoff in size, and can't run with large cutoffs and small cells).

Benchmarks

License

Vesin is is distributed under the 3 clauses BSD license. By contributing to this code, you agree to distribute your contributions under the same license.

Citation

If you found vesin useful, you can cite the article where it was presented (http://doi.org/10.1063/5.0304911) as

@article{metatensor-and-metatomic,
  title = {Metatensor and Metatomic: Foundational Libraries for Interoperable Atomistic Machine Learning},
  volume = {164},
  ISSN = {1089-7690},
  url = {http://doi.org/10.1063/5.0304911},
  DOI = {10.1063/5.0304911},
  number = {6},
  journal = {The Journal of Chemical Physics},
  publisher = {AIP Publishing},
  author = {Bigi,  Filippo and Abbott,  Joseph W. and Loche,  Philip and Mazitov,  Arslan and Tisi,  Davide and Langer,  Marcel F. and Goscinski,  Alexander and Pegolo,  Paolo and Chong,  Sanggyu and Goswami,  Rohit and Febrer,  Pol and Chorna,  Sofiia and Kellner,  Matthias and Ceriotti,  Michele and Fraux,  Guillaume},
  year = {2026},
  month = Feb
}

Metadata

Release files for vesin-jax 0.7.0rc1

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

Source distribution (sdist)

Source distribution for vesin-jax 0.7.0rc1
File Size Uploaded Provenance Actions
vesin_jax-0.7.0rc1.tar.gz 153.7 kB Without provenance Details for vesin_jax-0.7.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vesin-jax 0.7.0rc1
File Actions
vesin_jax-0.7.0rc1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vesin_jax-0.7.0rc1-py3-none-win_amd64.whl
vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
vesin_jax-0.7.0rc1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vesin_jax-0.7.0rc1-py3-none-macosx_11_0_arm64.whl

Total release size: 1.1 MB

Release files / vesin_jax-0.7.0rc1.tar.gz

Download URL vesin_jax-0.7.0rc1.tar.gz
Size 153.7 kB
Tags Source
SHA-256 checksum
How to use checksums
91eda28e59e7835be3dac28b48b69e47fff65f07bf008d4f12f974ab8696ac07
BLAKE2b-256 checksum
How to use checksums
331c516b8b73b98d1c742c778c1ff0194c219bc66e3f25a3020a18a204aa3188
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_jax-0.7.0rc1-py3-none-win_amd64.whl

Download URL vesin_jax-0.7.0rc1-py3-none-win_amd64.whl
Size 195.2 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c8ca72d86b965820672441cb1b2acce800210b6817108a37ce005d234c8e0d09
BLAKE2b-256 checksum
How to use checksums
b06cdfdf3f369e3d601a475f2c49b4a70a5639895ca1c7882b88b58b532d1e8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 318.6 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7df7c773b5192ac1cdccb5ad115bbe38477cb4d76ebdffd473242d98328e6798
BLAKE2b-256 checksum
How to use checksums
0cb9dc5e5ed0f7abab4068c8d4cf1b6306f3d4226db4d0839488d7a1b653c376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL vesin_jax-0.7.0rc1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 272.6 kB
Tags Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0ab2ef73bd88bfca74e3b633ce985bc3619e3ed2f88dcc3298511ef8265dbec8
BLAKE2b-256 checksum
How to use checksums
e20070f0eb7fe20d6e478240a12bc1e0b142eb03cfeab6fb9053887b36f03e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_jax-0.7.0rc1-py3-none-macosx_11_0_arm64.whl

Download URL vesin_jax-0.7.0rc1-py3-none-macosx_11_0_arm64.whl
Size 191.0 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
467e477495ac530d4c0279001b68fda531ddf304c4ef9a6850d18b7b0142092e
BLAKE2b-256 checksum
How to use checksums
868762f21f9b633965a6b9772854bc772f04a3dbf6a26bb7651ab5210eb105c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for vesin-jax 0.7.0rc1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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