.. _sphx_glr_examples_neighborlist: Neighbor Lists ============== Examples demonstrating efficient O(N) neighbor list construction using GPU-accelerated cell list algorithms. These examples show how to: * Build neighbor lists for single and batched systems * Use dense or sparse COO output formats * Detect when neighbor lists need rebuilding * Optimize performance with ``torch.compile`` * Integrate with molecular dynamics workflows .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/neighborlist/images/thumb/sphx_glr_01_simple_neighbor_list_thumb.png :alt: :ref:`sphx_glr_examples_neighborlist_01_simple_neighbor_list.py` .. raw:: html
Simple Neighbor List Example
.. raw:: html
.. only:: html .. image:: /examples/neighborlist/images/thumb/sphx_glr_02_batch_neighbor_list_thumb.png :alt: :ref:`sphx_glr_examples_neighborlist_02_batch_neighbor_list.py` .. raw:: html
Batch Neighbor List Example
.. raw:: html
.. only:: html .. image:: /examples/neighborlist/images/thumb/sphx_glr_03_rebuild_neighborlist_detection_thumb.png :alt: :ref:`sphx_glr_examples_neighborlist_03_rebuild_neighborlist_detection.py` .. raw:: html
Neighbor List Rebuild Detection Example
.. raw:: html
.. only:: html .. image:: /examples/neighborlist/images/thumb/sphx_glr_04_neighbors_list_torch_compile_performance_thumb.png :alt: :ref:`sphx_glr_examples_neighborlist_04_neighbors_list_torch_compile_performance.py` .. raw:: html
Torch.compile Performance Benefits Example
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /examples/neighborlist/01_simple_neighbor_list /examples/neighborlist/02_batch_neighbor_list /examples/neighborlist/03_rebuild_neighborlist_detection /examples/neighborlist/04_neighbors_list_torch_compile_performance