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-torch 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-torch 0.7.0rc1
File Size Uploaded Provenance Actions
vesin_torch-0.7.0rc1.tar.gz 160.6 kB Without provenance Details for vesin_torch-0.7.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vesin-torch 0.7.0rc1
File Actions
vesin_torch-0.7.0rc1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vesin_torch-0.7.0rc1-py3-none-win_amd64.whl
vesin_torch-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for vesin_torch-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
vesin_torch-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for vesin_torch-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
vesin_torch-0.7.0rc1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vesin_torch-0.7.0rc1-py3-none-macosx_11_0_arm64.whl

Total release size: 11.4 MB

Release files / vesin_torch-0.7.0rc1.tar.gz

Download URL vesin_torch-0.7.0rc1.tar.gz
Size 160.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a7c820e82cb0433b8fb9138c6252ff6a22563cc2de8d3364ce800e2f15306fa8
BLAKE2b-256 checksum
How to use checksums
86bc671d4c135d75921e462903460e01835b2f5a5e3c0b0fa0cf63f9b69452d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

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

Download URL vesin_torch-0.7.0rc1-py3-none-win_amd64.whl
Size 2.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dd9bf8c07a8d63338222cad2902025513fb2b837a0e8cd5ef9a20e5e2c137ca9
BLAKE2b-256 checksum
How to use checksums
5b9350114e2a874707dfdfb0503dc96c1b00632b810271d7a56069dcb9c06566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_torch-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL vesin_torch-0.7.0rc1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
15396ca8a46a7742e5f644b756b1fa8e071854a8489b53b43a164c1b55459175
BLAKE2b-256 checksum
How to use checksums
3c4d85383bc73a7284642aec984afcb1e116009fe6c2b55caaa17c38797d384f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin_torch-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL vesin_torch-0.7.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 3.0 MB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e5480965e35c9ac5aca524daf48a464d5945db74dc5d8eb4e43b1d7b4c286951
BLAKE2b-256 checksum
How to use checksums
a526f575aab99521c4f67c1111c0c6ae333a685429be340d2e795369dccb9850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

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

Download URL vesin_torch-0.7.0rc1-py3-none-macosx_11_0_arm64.whl
Size 2.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0ad8731686a243818bedab52b1d85631fd646ff7770849fe7dadb110cf209095
BLAKE2b-256 checksum
How to use checksums
3c7ac43a6b0affc32d148a5e26062c8550b0e05a11925efea5839766fe9fd3f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for vesin-torch 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.

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