Skip to main content

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 system. We provide an interface for the following programing languages:

  • C (also compatible with C++). The project can be installed and used as a library with your own build system, or included as a single file and built directly by your own build system;
  • Python;
  • TorchScript, with both a C++ and Python interface;

Installation

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

pip install vesin

See the documentation for more information on how to install the code to use it from C or C++.

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",
)

We also provide a function with drop-in compatibility to ASE's neighbor list:

import ase
from vesin import ase_neighbor_list

atoms = ase.Atoms(...)

i, j, S, d = ase_neighbor_list("ijSd", atoms, cutoff=4.2)

See the documentation for more information on how to use the code from C or C++.

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 the script at benchmarks/benchmark.py. 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 pre-print where it was presented (https://doi.org/10.48550/arXiv.2508.15704) as

@misc{metatensor-and-metatomic,
    title = {Metatensor and Metatomic: Foundational Libraries for Interoperable Atomistic
    Machine Learning},
    shorttitle = {Metatensor and Metatomic},
    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 Chorna, Sofiia and Kellner, Matthias and
    Ceriotti, Michele and Fraux, Guillaume},
    year = {2025},
    month = aug,
    publisher = {arXiv},
    doi = {10.48550/arXiv.2508.15704},
}

Metadata

Release files for vesin-torch 0.6.3

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.6.3
File Size Uploaded Provenance Actions
vesin_torch-0.6.3.tar.gz 106.4 kB Without provenance Details for vesin_torch-0.6.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vesin-torch 0.6.3
File Actions
vesin_torch-0.6.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vesin_torch-0.6.3-py3-none-win_amd64.whl
vesin_torch-0.6.3-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for vesin_torch-0.6.3-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
vesin_torch-0.6.3-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_torch-0.6.3-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
vesin_torch-0.6.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vesin_torch-0.6.3-py3-none-macosx_11_0_arm64.whl

Total release size: 8.7 MB

Release files / vesin_torch-0.6.3.tar.gz

Download URL vesin_torch-0.6.3.tar.gz
Size 106.4 kB
Tags Source
SHA-256 checksum
How to use checksums
75b0d9eb223b1c41fffafe32532f8908ee9929e722a62bb398ce574d92cff1bb
BLAKE2b-256 checksum
How to use checksums
dc00c25658edda0f0b9452b08e8180d1ecbc44038e3549cd1b3b07d95338953d
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.6.3-py3-none-win_amd64.whl

Download URL vesin_torch-0.6.3-py3-none-win_amd64.whl
Size 2.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4d03f48ee2f271b97b575c326ec235a236bf007d15f3b9df69517e0a15460082
BLAKE2b-256 checksum
How to use checksums
428d46243ce76fdaf59a89511100b51be8f6a06a5f37f9bf404e9243bcc5ae75
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.6.3-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL vesin_torch-0.6.3-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b44d1994f4e0a1864ba8bfc2512e8c82a3a5b329b92c0ac7e18240b5a1de9213
BLAKE2b-256 checksum
How to use checksums
f1138336ae938c83e47299b9eebbcb8f3a8f318b5d5a95c12c4f2c9d8aa405a4
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.6.3-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL vesin_torch-0.6.3-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 2.2 MB
Tags Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
97432e0052cc019ef58738117d300d3f172211eb4a7a584864660bccc02fbeb3
BLAKE2b-256 checksum
How to use checksums
f39cbeb4b9fee735fc2f16b09493eaef4c8b196e7420caccf8da661da8a265b8
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.6.3-py3-none-macosx_11_0_arm64.whl

Download URL vesin_torch-0.6.3-py3-none-macosx_11_0_arm64.whl
Size 2.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9d0e09fde648b1f02dfe439dd6750e95b7d6b72e8eab7af833f9852b32a9f5bc
BLAKE2b-256 checksum
How to use checksums
7f6a5d4c4b8dcf7c55c875a3c20a1fe07420160ed143c4ea2af291c2b9d80b88
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.6.3

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