Metadata-Version: 2.4
Name: pyvtst
Version: 0.3.0
Summary: Thermal rate constants for gas-phase reactions from conventional and variational transition state theory with tunneling corrections.
Keywords: chemistry,kinetics,transition state theory,VTST,tunneling
Author: Emilian Roșca
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Requires-Dist: ase>=3.22 ; extra == 'ase'
Requires-Dist: geometric>=1.1 ; extra == 'geometric'
Requires-Dist: h5py>=3.8 ; extra == 'hdf5'
Requires-Dist: matplotlib>=3.7 ; extra == 'plot'
Requires-Dist: pyscf>=2.4 ; extra == 'pyscf'
Requires-Dist: rdkit>=2023.9 ; extra == 'rdkit'
Requires-Python: >=3.11
Provides-Extra: ase
Provides-Extra: geometric
Provides-Extra: hdf5
Provides-Extra: plot
Provides-Extra: pyscf
Provides-Extra: rdkit
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/pyvtst/pyvtst/main/docs/logo.svg" alt="PyVTST" width="400">
</p>

<p align="center">
  <a href="https://github.com/pyvtst/pyvtst/actions/workflows/tests.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/pyvtst/pyvtst/tests.yml?branch=main&logo=github&label=CI" alt="CI"></a>
  <a href="https://codecov.io/gh/pyvtst/pyvtst"><img src="https://img.shields.io/codecov/c/github/pyvtst/pyvtst?logo=codecov&label=coverage" alt="Coverage"></a>
  <a href="https://pypi.org/project/pyvtst/"><img src="https://img.shields.io/pypi/v/pyvtst.svg" alt="PyPI"></a>
  <a href="https://github.com/pyvtst/pyvtst"><img src="https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpyvtst%2Fpyvtst%2Fmain%2Fpyproject.toml" alt="Python versions"></a>
  <a href="https://github.com/pyvtst/pyvtst/blob/main/LICENSE"><img src="https://img.shields.io/github/license/pyvtst/pyvtst.svg" alt="License"></a>
  <br>
  <a href="https://doi.org/10.5281/zenodo.23867010"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.23867010.svg" alt="DOI"></a>
  <a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff"></a>
  <a href="https://mypy-lang.org/"><img src="https://img.shields.io/badge/types-mypy%20strict-blue" alt="mypy strict"></a>
</p>

PyVTST computes thermal rate constants for gas-phase chemical reactions from
conventional and variational transition state theory: TST, and canonical,
improved canonical and microcanonical variational TST (CVT, ICVT and µVT),
with Wigner, Eckart, zero-curvature and small-curvature tunneling corrections.
An optional high-level engine, such as CCSD(T), corrects the barrier and the
path energies with interpolated single-point energies (dual-level ISPE).
It optimizes the stationary points, traces the minimum-energy path and
evaluates the rate constants from energies, gradients and Hessians computed
with PySCF, Gaussian 16 or ORCA 6. It fits the rate constants to the Arrhenius
and modified Arrhenius forms.

> **Status: pre-alpha.** The API may change between releases.

## Getting started

### Installing PyVTST

```bash
pip install pyvtst              # numpy and scipy only
pip install "pyvtst[ase]"       # + conversion to and from ase.Atoms
pip install "pyvtst[rdkit]"     # + 3D structures from SMILES
pip install "pyvtst[pyscf]"     # + energies, gradients and Hessians from PySCF
pip install "pyvtst[geometric]" # + geometry optimization with geomeTRIC
pip install "pyvtst[hdf5]"      # + result caching in HDF5 files
pip install "pyvtst[plot]"      # + path and free-energy plots with matplotlib
```

### Using PyVTST

`Reaction` takes geometry guesses for the reactants and the transition state,
re-optimizes them at the engine's level of theory, checks that the transition
state has exactly one imaginary frequency, and computes rate constants. This
example needs the `pyscf`, `geometric` and `hdf5` extras.

```python
from pyvtst import Molecule, Reaction
from pyvtst.engines import PySCFEngine

h2 = Molecule(["H", "H"], [[0.0, 0.0, 0.0], [0.74, 0.0, 0.0]], symmetry_number=2)
h = Molecule(["H"], [[0.0, 0.0, 0.0]], mult=2)
h3_guess = Molecule(
    ["H", "H", "H"],
    [[-0.85, 0.0, 0.0], [0.0, 0.0, 0.0], [1.01, 0.04, 0.0]],  # ångström
    mult=2,
    symmetry_number=2,
)

rxn = Reaction([h2, h], h3_guess, PySCFEngine("B3LYP", "def2-SVP"), store="h3.h5")
result = rxn.rates([300, 500, 1000], tunneling="eckart")
print(result.table())
```

`theory` is `"tst"`, `"cvt"`, `"icvt"` or `"muvt"`; `tunneling` is `None`,
`"wigner"`, `"eckart"`, `"zct"` or `"sct"`. `Molecule` reads geometries in
ångström. The
[user guide](https://github.com/pyvtst/pyvtst/blob/main/docs/user/index.md) covers
molecules, engines, caching, reaction paths, variational TST, tunneling,
frequency scale factors, dual-level calculations and Arrhenius fits.

### Input files

The same calculation can be written as a TOML input file and run from the
shell, as with ORCA or Gaussian:

```toml
[engine]
type = "pyscf"
method = "B3LYP"
basis = "def2-SVP"

[reactants.r1]
symmetry_number = 2
xyz = """
H 0.00 0.0 0.0
H 0.74 0.0 0.0
"""

[reactants.r2]
mult = 2
xyz = "H 0.0 0.0 0.0"

[ts]
mult = 2
symmetry_number = 2
xyz = """
H -0.85 0.0  0.0
H  0.00 0.0  0.0
H  1.00 0.04 0.0
"""

[[rates]]
T = [300, 500, 1000]
tunneling = "eckart"
```

```bash
pyvtst h3.toml   # writes the report to h3.out
```

Inline geometries are in Ångström unless `units = "bohr"`. The
[input file guide](https://github.com/pyvtst/pyvtst/blob/main/docs/user/inputfile.md)
lists every key.

## Citation

If you use PyVTST in your research, please cite it:

```bibtex
@software{rosca_pyvtst,
  author  = {Roșca, Emilian},
  title   = {{PyVTST}: variational transition state theory in Python},
  url     = {https://github.com/pyvtst/pyvtst},
  version = {0.3.0},
  year    = {2026},
}
```

The same metadata is in [CITATION.cff](https://github.com/pyvtst/pyvtst/blob/main/CITATION.cff).
