Popcornn
Popcornn is a tool for finding how a chemical reaction gets from a starting structure (the reactant) to an ending structure (the product). Given those two structures, popcornn fits a smooth path between them and then bends that path until it crosses the lowest-energy barrier the chosen energy model can find.
The energy model can be a simple analytic toy (Wolfe, Müller–Brown), a classical force field, or a modern machine-learned interatomic potential (MACE, Orb, UMA, …). The path itself is represented by a small neural network, so the whole thing is differentiable and trains by gradient descent.
If "lowest-energy barrier" sounds unfamiliar, that's fine — see
docs/concepts.md for a one-page background.
Installation
conda create --name popcornn python=3.12
conda activate popcornn
git clone https://github.com/khegazy/popcornn.git
pip install -e ./popcornn
That gets you everything you need for the analytic potentials. Each
machine-learned potential (MACE, Orb, UMA, …) has its own install steps —
see docs/potentials.md.
Examples
The shipped configs in examples/configs/ go from analytic 2D toys
to a published organic-chemistry benchmark. Run any of them from the
examples/ directory with
python run.py --config configs/<name>.yaml
| Config | What it is | Needs |
|---|---|---|
muller_brown.yaml |
2D Müller–Brown analytic surface | nothing beyond the base install — finishes in seconds on CPU |
lj13.yaml |
13-atom Lennard–Jones cluster rearrangement | nothing beyond the base install |
gg3.yaml |
a Grambow–Green organic reaction (3rd entry of the GG benchmark set) | GPU + the UMA model installed (see docs/potentials.md) |
Each run writes the optimized path and predicted transition state to
popcornn_path.xyz / popcornn_ts.xyz. To swap in your own reaction,
point images: in the config at an xyz or traj file with at least
the reactant and product structures. The
Getting Started guide walks through this
from scratch.
Where to go next
- Getting Started — install through first custom run.
- Concepts — what a reaction path is, what the transition state is, why a neural network represents the path.
- Configuration reference — every key in the YAML config.
- Potentials — what's built in and how to install the MLIPs.
- Convergence — picking
thresholdandpatiencefor your system. - Memory & OOM — what to do if you run out of GPU memory.
- Advanced — multi-stage optimization, schedulers, transition-state losses.
Citing
If you use popcornn in your research, please cite this repository. A citable release is on the way; until then, link to the GitHub repo.
Support and contributing
Popcornn is under active development. Open a GitHub issue for bugs or questions, and pull requests are welcome.
Metadata
Release files for popcornn 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| popcornn-0.2.2.tar.gz | 88.0 kB | With provenance | Details for popcornn-0.2.2.tar.gz |
Release files / popcornn-0.2.2.tar.gz
| Download URL | popcornn-0.2.2.tar.gz |
|---|---|
| Size | 88.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc29d96031ebaef6579a94b5acdc9a09d9ea1933e838e6fa37b1bbdc3db1a9b6
|
|
BLAKE2b-256 checksum How to use checksums |
ef6c2121109a5ddf7e32760271e076f2776afb6bd0f512c4a4a38b5adfef8d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for popcornn 0.2.2
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for popcornn-0.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA 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.