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

Built distributions (wheels)

Table of built distributions (wheels) for vesin 0.6.3
File Actions
vesin-0.6.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vesin-0.6.3-py3-none-win_amd64.whl
vesin-0.6.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for vesin-0.6.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
vesin-0.6.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for vesin-0.6.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
vesin-0.6.3-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for vesin-0.6.3-py3-none-macosx_11_0_x86_64.whl
vesin-0.6.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vesin-0.6.3-py3-none-macosx_11_0_arm64.whl

Total release size: 846.1 kB

Release files / vesin-0.6.3.tar.gz

Download URL vesin-0.6.3.tar.gz
Size 116.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3376f4a4af1edc4fb098c548d3e82d371e3dcba23d6a9a0552006238dc04c50
BLAKE2b-256 checksum
How to use checksums
4f899f1c6f1caefc360121106a869c511e0138941c4b57fa4658d6831f07018a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin-0.6.3-py3-none-win_amd64.whl

Download URL vesin-0.6.3-py3-none-win_amd64.whl
Size 126.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
56c749376725c683eeed3dca70589e666cc5e60c927dc2dc54ce594583c89e37
BLAKE2b-256 checksum
How to use checksums
60549ff7e3632251079b8d2d9b801a8a6ed87f58e22874cd441112f856ef0031
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin-0.6.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL vesin-0.6.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 202.2 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2c370306fea9f30f1c2b3ede82ba7385ec5fac82f603d05739a38594f1f5834d
BLAKE2b-256 checksum
How to use checksums
1e4ac88d7b3ad0886c18e4bce81ebc57a1826014ac96c15827958a240aa73f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin-0.6.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vesin-0.6.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 181.5 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c7e4e3b1a5bf228d0c6fdc92ad844bec6ceb45a502b81d285739c6e0e4ae3173
BLAKE2b-256 checksum
How to use checksums
90d4b476a3b4b7b4eceddce9126e990ced069f5227e31f38dca782564940f6e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin-0.6.3-py3-none-macosx_11_0_x86_64.whl

Download URL vesin-0.6.3-py3-none-macosx_11_0_x86_64.whl
Size 112.9 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
475710347a1085553a50bbc7080ee83de46d2a94a3b4fb3b949a493783b04187
BLAKE2b-256 checksum
How to use checksums
01b5c288fce595db5a96dd2120e3e0e9957363125bb5e5b91d2865500c04d35e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / vesin-0.6.3-py3-none-macosx_11_0_arm64.whl

Download URL vesin-0.6.3-py3-none-macosx_11_0_arm64.whl
Size 106.3 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3d920d07f0c0a4a529b6984b6ea8c3dfc8623e220d71b97785328c0ccc5338da
BLAKE2b-256 checksum
How to use checksums
26f17edb58175603b8c191bd8b524b26988db4d5857183560e721e4c0bd9e606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

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