torch_sim.neighborsΒΆ
Neighbor list implementations for torch-sim.
This module provides multiple neighbor list implementations with automatic fallback based on available dependencies. The API supports both single-system and batched (multi-system) calculations.
- Available Implementations:
Primitive: Pure PyTorch implementation (always available)
Vesin: High-performance neighbor lists (optional, requires vesin package)
Batched: Optimized for multiple systems (torch_nl_n2, torch_nl_linked_cell)
- Default Neighbor Lists:
The module automatically selects the best available implementation: - Priority: alchemiops_nl_n2 > vesin_nl_ts > torch_nl_linked_cell
Functions
Compute neighbor lists with automatic selection of best available implementation. |
Classes
bool(x) -> bool |
|
bool(x) -> bool |
Modules
Alchemiops-based neighbor list implementations. |
|
Pure-PyTorch triplet and quadruplet interaction index builders. |
|
Batched neighbor list implementations for multiple systems. |
|
Vesin-based neighbor list implementations. |