Skip to content

Add unrestricted Hartree-Fock and Kohn-Sham (UHF/UKS)#65

Open
rubber-duck-debug wants to merge 2 commits intohatemhelal:mainfrom
rubber-duck-debug:feature/unrestricted-hf
Open

Add unrestricted Hartree-Fock and Kohn-Sham (UHF/UKS)#65
rubber-duck-debug wants to merge 2 commits intohatemhelal:mainfrom
rubber-duck-debug:feature/unrestricted-hf

Conversation

@rubber-duck-debug
Copy link
Copy Markdown

@rubber-duck-debug rubber-duck-debug commented Feb 24, 2026

This PR adds support for unrestricted KS/HF. Core changes:

  • Added spin support to Structure (charge, spin_multiplicity, n_alpha, n_beta)
  • Added spin-polarized density matrices and occupancies to Basis
  • Added spin-polarized XC functionals (LDA, PBE, B3LYP exchange; VWN, PW, PBE correlation)
  • Added UHamiltonian and uminimise for unrestricted SCF
  • Added symmetry-broken initial guess for open-shell convergence

Additionally this PR includes a test containing sanity checks and compares against pyscf as a reference (some of the tests with MESS actually return lower energies than pyscf does, so some tolerences are set larger).

- Add spin support to Structure (charge, spin_multiplicity, n_alpha, n_beta) - Add spin-polarized density matrices and occupancies to Basis
- Add spin-polarized XC functionals (LDA, PBE, B3LYP exchange; VWN, PW, PBE correlation)
- Add UHamiltonian and uminimise for unrestricted SCF
- Add symmetry-broken initial guess for open-shell convergence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant