Skip to content
Back to skills

Qm Dft

ASecurity

Use when working with quantum chemistry (QM) and DFT calculations. Covers DFT functional/basis set selection, ORCA input/output, xTB semi-empirical methods (GFN2, CREST), PySCF Python-native QM, and standard workflows (geometry opt, frequencies, NMR, TD-DFT, reaction barriers, RESP charges).

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 4, 2026
ai-agentspythongoreactapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add Kdevos12/ALKYL --skill qm-dft --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qm Dft?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qm Dft
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kdevos12-qm-dft/badge)](https://www.skillsdirectory.com/skills/kdevos12-qm-dft)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qm-dft
description: Use when working with quantum chemistry (QM) and DFT calculations. Covers DFT functional/basis set selection, ORCA input/output, xTB semi-empirical methods (GFN2, CREST), PySCF Python-native QM, and standard workflows (geometry opt, frequencies, NMR, TD-DFT, reaction barriers, RESP charges).
---

# QM/DFT — Quantum Chemistry Calculations

Quantum mechanics-based methods compute electronic structure explicitly — enabling bond breaking/forming, spectroscopic properties, and accurate energetics beyond force fields. Python ecosystem: **ORCA** (best free QM, subprocess), **xTB/tblite** (fast semi-empirical, Python API), **PySCF** (pure Python, scriptable).

## When to Use This Skill

- Geometry optimization with QM accuracy (beyond MM force fields)
- Reaction energetics: transition states, barrier heights, IRC
- Spectroscopy: IR/Raman frequencies, NMR shifts, UV-Vis (TD-DFT)
- Partial charge calculation: RESP, ESP, NBO, Mulliken
- pKa estimation, protonation states
- Conformer search and ranking (CREST + xTB)
- Parametrization validation: compare QM vs force field energies
- Property prediction: dipole moment, polarizability, HOMO/LUMO gaps

## Method Cost Hierarchy

| Method | Cost | Accuracy | Use case |
|--------|------|----------|----------|
| GFN-FF | O(N²) | ~MM | Pre-screening, conformers |
| GFN2-xTB | O(N²·8) | Good | Conformers, pre-opt, pKa |
| r²SCAN-3c | O(N³) | Very good | Routine geometry opt |
| B3LYP-D3BJ/def2-SVP | O(N⁴) | Good | Drug-like molecules opt |
| B3LYP-D3BJ/def2-TZVP | O(N⁴) | Better | Single-point on opt geom |
| ωB97X-D/def2-TZVP | O(N⁴) | Very good | Reaction barriers, CT states |
| DLPNO-CCSD(T)/CBS | O(N⁵⁺) | Benchmark | High-accuracy energetics |

## Quick Start

```python
# xTB geometry optimization (fastest QM-level method)
import subprocess

result = subprocess.run(
    ['xtb', 'mol.xyz', '--opt', '--gfn', '2', '--alpb', 'water'],
    capture_output=True, text=True, cwd='workdir/'
)
# Output: xtbopt.xyz (optimized), xtbopt.log

# Parse final energy
for line in result.stdout.split('\n'):
    if 'TOTAL ENERGY' in line:
        energy = float(line.split()[3])  # Hartree
        print(f"E = {energy:.8f} Eh")
```

```python
# ORCA single-point DFT (via subprocess)
orca_input = """\
! B3LYP D3BJ def2-SVP TightSCF
%pal nprocs 4 end
%maxcore 2000

* xyzfile 0 1 mol.xyz
"""

with open('sp.inp', 'w') as f:
    f.write(orca_input)

result = subprocess.run(['orca', 'sp.inp'], capture_output=True, text=True)
# Parse with chem_qm.py: python chem_qm.py --parse sp.out
```

## Router — What to Read

| Task | Reference |
|------|-----------|
| DFT functionals, basis sets, dispersion, Jacob's ladder | `references/dft-theory.md` |
| ORCA: input syntax, optimization, freq, NMR, TD-DFT, output parsing | `references/orca-practical.md` |
| xTB/GFN2: CLI, Python (tblite), CREST, solvation, pKa | `references/xtb-semiempirical.md` |
| PySCF: Python QM, HF/DFT/MP2/CCSD, NMR, ESP charges | `references/pyscf-python.md` |
| Standard recipes: opt→freq, RESP, UV-Vis, barriers, NBO | `references/common-workflows.md` |

## Key Tools

| Tool | Version | Install | Role |
|------|---------|---------|------|
| ORCA | 6.0 | orca-forum.org (free) | General QM: DFT, MP2, CCSD(T), TD-DFT |
| xTB | 6.7 | `conda install -c conda-forge xtb` | Fast semi-empirical |
| tblite | 0.3 | `pip install tblite` | xTB Python API |
| CREST | 3.0 | `conda install -c conda-forge crest` | Conformer/ensemble search |
| PySCF | 2.7 | `pip install pyscf` | Python-native QM |
| Psi4 | 1.9 | `conda install -c conda-forge psi4` | Python QM + MP2/CCSD |

## Related Skills

- `ase` — structure building, ASE-driven optimization with ORCA/xTB calculators
- `force-fields` — pre-optimize with MM before QM; GAFF2 validation
- `docking` — QM refinement of top docking poses
- scripts: `chem_qm.py` — ORCA/Gaussian input gen + output parsing (ALKYL native)
- `scientific-skills:rowan` — cloud QM (DFT, pKa, Chai-1) without local ORCA install

Files in this skill

  • SKILL.md3.9 KB
  • references/common-workflows.md9.7 KB
  • references/dft-theory.md5.6 KB
  • references/orca-practical.md7 KB
  • references/pyscf-python.md6.1 KB
  • references/xtb-semiempirical.md7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.