hiphive
Higher-order force constants learned from data, for anharmonic lattice dynamics.
Tool 067 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

What hiphive is
hiphive extracts force constants of second, third, fourth and higher order from displacement and force data by regression rather than by one displacement per term. Force constants are the coefficients that relate atomic displacements to the forces they produce; hiphive writes them as a symmetry-reduced expansion over clusters of atoms within chosen cutoffs, then fits the free parameters to a set of structures with known forces using least squares, automatic relevance determination or other sparse regression methods.
Training structures come from random displacements, Monte Carlo rattling or molecular-dynamics snapshots, with forces from any DFT code or potential through ASE. The fitted model becomes a force-constant potential that can be exported to phonopy and phono3py for harmonic and thermal-conductivity analysis, to ShengBTE, and used as an ASE calculator for molecular dynamics. Because the fit can use finite-temperature configurations, it also yields effective harmonic models that capture how phonons soften or stiffen with temperature.
Results depend on the choice of cutoffs and the quality of the training set, and the user must check that the fit is converged with respect to both.
Features
- Cluster-space expansion of force constants with symmetry reduction
- Fitting by least squares, ARDR, LASSO and recursive feature elimination
- Training structures from random displacements, rattling or MD snapshots
- Export to phonopy, phono3py and ShengBTE formats
- Force-constant potential usable as an ASE calculator
- Effective harmonic models from finite-temperature data
- Self-consistent phonon workflow for anharmonic systems
What it is for
- Obtain third-order force constants from fewer DFT calculations than enumeration
- Build temperature-dependent phonon dispersions from molecular dynamics
- Fit fourth-order terms for strongly anharmonic or soft-mode materials
- Run dynamics on a force-constant potential as a lightweight model
Verified facts
| Family | Materials science: structures and properties |
|---|---|
| Language or basis | Python |
| Repository | https://gitlab.com/materials-modeling/hiphive (GitLab) |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where hiphive fits
Analyse and generate crystal structures, then derive phonons, transport and other properties.
Questions people ask
- How is hiphive different from phono3py?
- phono3py computes third-order force constants by enumerating displaced supercells, each needing a force calculation, and then evaluates thermal conductivity. hiphive fits force constants of any order to a training set by regression and hands them to phono3py or others for the transport step. hiphive supplies the force constants; phono3py supplies the physics on top.
- What input does hiphive need?
- A reference primitive cell, a supercell, cutoff distances per order, and a set of supercell structures with displacements and forces. The structures can be generated by hiphive's own rattle utilities and evaluated with any ASE calculator, or taken from an existing molecular-dynamics trajectory with DFT forces.
- Can hiphive capture temperature-dependent phonons?
- Yes. Fitting a second-order model to configurations sampled at a given temperature gives an effective harmonic model for that temperature, and a self-consistent phonon scheme iterates sampling and fitting. This describes anharmonic renormalisation that a single zero-temperature harmonic calculation misses.
- Is hiphive a machine-learned potential?
- Not in the neural-network sense. The force-constant potential is a polynomial expansion in displacements around a reference structure, fitted by linear regression. It is interpretable and fast to evaluate, but it is tied to one crystal structure and cannot describe diffusion, melting or bond breaking.
- Where is the hiphive source code?
- At https://gitlab.com/materials-modeling/hiphive (GitLab). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Does MolForge use hiphive?
- No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); hiphive is listed because of its place in materials science: structures and properties, not because we run it.
Our comments on hiphive
MolForge does not run hiphive in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain hiphive and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.
Test status
Not tested by MolForge. To check hiphive yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.