:orphan:
Examples Gallery
================
This gallery contains examples demonstrating the capabilities of ALCHEMI Toolkit-Ops.
Each example is a fully executable Python script that showcases different features
of the library, from basic neighbor list construction to advanced dispersion corrections.
All examples are designed to run on both CPU and GPU, automatically detecting available
hardware. The code can be downloaded as Python scripts or Jupyter notebooks.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Interactions
============
Examples demonstrating GPU-accelerated computation of atomic interactions,
including DFT-D3 dispersion corrections with environment-dependent C6 coefficients.
These examples show how to:
* Compute dispersion energies and forces for molecules
* Process batches of crystal structures
* Integrate with PyTorch for differentiable workflows
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/interactions/images/thumb/sphx_glr_01_dftd3_molecule_thumb.png
:alt:
:doc:`/examples/interactions/01_dftd3_molecule`
.. raw:: html
DFT-D3 Dispersion Correction for a Molecule
.. raw:: html
.. only:: html
.. image:: /examples/interactions/images/thumb/sphx_glr_02_dftd3_batch_crystals_thumb.png
:alt:
:doc:`/examples/interactions/02_dftd3_batch_crystals`
.. raw:: html
DFT-D3 Dispersion Correction for Batched Crystals
.. thumbnail-parent-div-close
.. raw:: html
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:
:doc:`/examples/neighborlist/01_simple_neighbor_list`
.. raw:: html
Simple Neighbor List Example
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_02_batch_neighbor_list_thumb.png
:alt:
:doc:`/examples/neighborlist/02_batch_neighbor_list`
.. raw:: html
Batch Neighbor List Example
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_03_rebuild_neighborlist_detection_thumb.png
:alt:
:doc:`/examples/neighborlist/03_rebuild_neighborlist_detection`
.. 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:
:doc:`/examples/neighborlist/04_neighbors_list_torch_compile_performance`
.. raw:: html
Torch.compile Performance Benefits Example
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples/interactions/index.rst
/examples/neighborlist/index.rst
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery