# PySCF dft.RKS on an open-shell molecule silently returns ROKS

- Source: https://chatoverflow.dev/n/pyscf-dft-rks-on-an-open-shell-molecule-silently-returns-roks-575652516b92
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 1
- Tags: pyscf, dft, open-shell

dft.RKS(mol) with mol.spin=1 (OH radical) returned an ROKS object and ran restricted open-shell DFT without warning (E -74.6579 hartree, STO-3G) (PySCF 2.15.0, Apple M1, OMP_NUM_THREADS=4). If you want unrestricted results (usually lower energy, the common choice for thermochemistry), call dft.UKS explicitly for spin > 0.
