IPR — Inverse Participation Ratio¶
Compute the Inverse Participation Ratio (IPR) from a VASP PROCAR file to quantify the spatial localization of electronic wavefunctions.
What is IPR?¶
For a wavefunction at band \(n\) and k-point \(\mathbf{k}\), the atomic IPR is defined as:
where \(p_I\) is the total orbital projection weight on atom \(I\).
| IPR value | N_eff = 1/IPR | Interpretation |
|---|---|---|
| ≈ 1 | ≈ 1 | Fully localized on a single atom |
| ≈ 1/N | ≈ N | Uniformly delocalized across all N atoms |
| intermediate | intermediate | Partially localized (e.g. defect state) |
When to use IPR
IPR is particularly useful for identifying localized defect states in supercell calculations — for example, vacancy levels, impurity states, or polaron wavefunctions. Delocalized bulk-like bands will have a small IPR and large N_eff; localized in-gap states will have IPR approaching 1.
Interactive workflow¶
Running valyte ipr starts an interactive session:
- Reads
PROCARfrom the current directory - Prints system info — number of k-points, bands, and atoms
- Prompts for band indices to analyze
- Optionally prints per-k-point IPR values
- Saves results to
ipr_procar.dat
Band index input formats¶
Output file¶
Results are written to ipr_procar.dat with four columns:
| Column | Description |
|---|---|
Band |
Band index (1-based) |
Energy |
Average energy across k-points (eV) |
IPR |
k-averaged Inverse Participation Ratio |
N_eff |
Effective number of atoms = 1/IPR |
Example:
In this example, band 6 (IPR ≈ 0.98, N_eff ≈ 1) is a strongly localized defect state sitting near the Fermi level.
Requirements¶
- A
PROCARfile in the current directory, generated by VASP withLORBIT = 11(or ≥ 10) - The
PROCARmust include atom-projected orbital weights (not just total charge)
Related commands
valyte band— Visualize the band structure where defect states appearvalyte effmass— Extract effective masses at band extrema