--- id: vesin-torch version: "0.6.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # vesin-torch — Computing neighbor lists for atomistic system, in TorchScript License: permissive · Maintenance: active · Downloads: 263.6K/mo ## What it is and what it does Vesin-torch is a library for computing neighbor lists in atomistic simulations—a fundamental operation in molecular dynamics and materials science where you need to identify which atoms are within a cutoff distance of each other. It wraps the Vesin C library and exposes it through PyTorch, enabling both CPU and GPU execution. The package provides a straightforward Python API via the NeighborList class, which takes atomic positions and a cutoff distance, then returns pairs of neighbor indices and their separation vectors, optionally accounting for periodic boundary conditions. The library is designed for performance on large systems. It also offers drop-in compatibility with existing workflows. The single runtime dependency is torch, and the package is actively maintained with recent releases and no known security vulnerabilities. Use it for: - Accelerating molecular dynamics simulations by computing neighbor lists on GPU with torch. - Building machine learning models for atomistic systems that need efficient neighbor pair enumeration. - Computing pairwise distances and indices for large crystal supercells with periodic boundaries. - Prototyping interatomic potential models that require fast neighbor list updates. - Integrating into existing chemistry workflows that need neighbor list performance improvements. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Computes neighbor lists for atomistic systems efficiently, with support for periodic boundary conditions and GPU execution via PyTorch. Yes, if you work with atomistic simulations or machine learning on molecular systems and use torch. The package is actively maintained, has no security vulnerabilities, carries a permissive license, and solves a real performance bottleneck. Medium install friction is acceptable given the platform-specific wheels and single torch dependency. Not necessary if you already have adequate neighbor list performance or don't use torch. ## Install pip install vesin-torch uv add vesin-torch poetry add vesin-torch ## Installing vesin-torch Before you install: Medium install friction due to platform-specific wheels and a single runtime dependency on torch. Actively maintained with recent releases; last commit 2026-08-07 and version 0.6.1 released 2026-07-29. License in practice: Distributed under BSD-3-Clause (permissive), allowing commercial and private use with attribution and liability disclaimers. No restrictive copyleft obligations. Quickstart: pip install vesin-torch from vesin import NeighborList positions = [(0, 0, 0), (0, 1.3, 1.3)] calculator = NeighborList(cutoff=4.2, full_list=True) i, j, S, d = calculator.compute(points=positions, periodic=True, quantities="ijSd") Requires Python >=3.10 and torch as a runtime dependency. Verify before relying: - Whether numpy is required as a transitive dependency or only for the usage example. - GPU performance characteristics and hardware requirements beyond torch support. - Compatibility with specific torch versions or CUDA/ROCm backends. - Whether TorchScript interface is accessible from the Python package or requires separate build. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 263.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags neighbor list computation, atomistic systems, molecular dynamics neighbor search, periodic boundary conditions, gpu acceleration, cutoff-based neighbor finding, chemistry simulation tools, molecular-dynamics, gpu-accelerated, chemistry [View on SkillFed](https://skillfed.io/packages/vesin-torch) · [View on PyPI](https://pypi.org/project/vesin-torch/)