Skip to content

explain dft and its benefits#185

Open
HichamAmer wants to merge 7 commits intopyscf:masterfrom
HichamAmer:codex/explain-dft-and-its-benefits
Open

explain dft and its benefits#185
HichamAmer wants to merge 7 commits intopyscf:masterfrom
HichamAmer:codex/explain-dft-and-its-benefits

Conversation

@HichamAmer
Copy link
Copy Markdown

Geometry optimization for a copper complex using PySCF

Copy link
Copy Markdown
Author

@HichamAmer HichamAmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update code

update mf = dft.KS(mol)
Copy link
Copy Markdown
Author

@HichamAmer HichamAmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion! I’ve updated the code to use mf = dft.KS(mol) so that it automatically selects RKS or UKS based on the spin setting.

@HichamAmer HichamAmer closed this Mar 31, 2026
@HichamAmer HichamAmer reopened this Mar 31, 2026
``spin=1`` to :class:`pyscf.gto.Mole` (``2S = N_alpha - N_beta``) and use an
open-shell mean-field object such as :class:`pyscf.dft.UKS`. Omitting the spin
information leads to the ``Electron number ... and spin ... are not
consistent`` error reported by PySCF.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the Omitting ... sentence. Did you mean "avoiding"?

@jeanwsr
Copy link
Copy Markdown
Contributor

jeanwsr commented Apr 1, 2026

I don't understand the meaning of adding an example in this repo, since 1) the examples here are basically a copy of pyscf-core repo's examples and often not up-to-date, 2) your added example is not referenced in the doc.

Btw, I can see your example is created by codex. Have you checked the validity of AI generated content? like, at least it should be possible to run the example successfully in a real machine and the molecule should be existent in the real world.

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.

4 participants