Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sunqm
Copy link
Contributor

@sunqm sunqm commented Nov 4, 2024

@baopengbp This implementation basically follows your original version. I'm not clear what are the "sm-t" eigenvalues, so I didn't implement them in this version. Please have a look whether this implementation makes sense.

@baopengbp
Copy link
Contributor

@baopengbp This implementation basically follows your original version. I'm not clear what are the "sm-t" eigenvalues, so I didn't implement them in this version. Please have a look whether this implementation makes sense.

The "sm-t" use the difference energy difference between mix state and Ms=1 triplet state as the coupling between two symmetry-adapted mix state. This can be more accurate than the approximate HF coupling.

@sunqm sunqm marked this pull request as ready for review November 10, 2024 22:53
@sunqm
Copy link
Contributor Author

sunqm commented Nov 10, 2024

@baopengbp the code can reproduce the result of the script you sent me. To optimize the performance, I have changed most of your original implementation. Please check if the new implementation make sense to you.

@sunqm sunqm requested a review from baopengbp November 13, 2024 14:25
@sunqm sunqm requested review from fishjojo and removed request for baopengbp December 16, 2024 02:20
@sunqm sunqm merged commit bb743d1 into pyscf:master Dec 24, 2024
4 checks passed
@sunqm sunqm deleted the msdft branch December 24, 2024 17:36
stephen-quiton pushed a commit to stephen-quiton/pyscf-forge that referenced this pull request Jan 1, 2025
* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests
sunqm added a commit that referenced this pull request Jan 20, 2025
* begin khf_stagger implementation

* Save progress

* More progress

* Create tests, delete __init__.py s

* Progress on tests. Something might be up with split-scf

* Fix split scf

* Renaming symbols

* refactoring

* Begin example file, add KRKS compatibility

* Progress on KRKS, fixing bug with regular version

* Fixed regular

* Cleanup, finalize example

* Add documentation

* Formatting

* pep-625 compliance

* Compatibility issue when building aarch64 wheel

* Update pypi upload configurations

* Add MSDFT method (#77)

* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests

* Remove 2d code

* Formatting

* Fix split-scf bug. Switch to FFTDF in tests (verified with QChem).

* Small cleanup

* Fix typos

* Fix flake8, typos, unneeded print statements

* turn build_probe_cell, modified_madelung, converged_modified into static methods of KHF_stagger

* Refactoring staggered mesh exchange calculation

* Refactor kernel function. Non-scf and split-scf now just asserts mf.converged instead of calling mf.kernel

* fix flake8

* Rename functions and fix documentation for clairity

* Remove xcfun

---------

Co-authored-by: Qiming Sun <[email protected]>
matthew-hennefarth pushed a commit to matthew-hennefarth/pyscf-forge that referenced this pull request Feb 18, 2025
* begin khf_stagger implementation

* Save progress

* More progress

* Create tests, delete __init__.py s

* Progress on tests. Something might be up with split-scf

* Fix split scf

* Renaming symbols

* refactoring

* Begin example file, add KRKS compatibility

* Progress on KRKS, fixing bug with regular version

* Fixed regular

* Cleanup, finalize example

* Add documentation

* Formatting

* pep-625 compliance

* Compatibility issue when building aarch64 wheel

* Update pypi upload configurations

* Add MSDFT method (pyscf#77)

* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests

* Remove 2d code

* Formatting

* Fix split-scf bug. Switch to FFTDF in tests (verified with QChem).

* Small cleanup

* Fix typos

* Fix flake8, typos, unneeded print statements

* turn build_probe_cell, modified_madelung, converged_modified into static methods of KHF_stagger

* Refactoring staggered mesh exchange calculation

* Refactor kernel function. Non-scf and split-scf now just asserts mf.converged instead of calling mf.kernel

* fix flake8

* Rename functions and fix documentation for clairity

* Remove xcfun

---------

Co-authored-by: Qiming Sun <[email protected]>
jingjjkk pushed a commit to jingjjkk/pyscf-forge that referenced this pull request Sep 27, 2025
* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests
jingjjkk pushed a commit to jingjjkk/pyscf-forge that referenced this pull request Sep 27, 2025
* begin khf_stagger implementation

* Save progress

* More progress

* Create tests, delete __init__.py s

* Progress on tests. Something might be up with split-scf

* Fix split scf

* Renaming symbols

* refactoring

* Begin example file, add KRKS compatibility

* Progress on KRKS, fixing bug with regular version

* Fixed regular

* Cleanup, finalize example

* Add documentation

* Formatting

* pep-625 compliance

* Compatibility issue when building aarch64 wheel

* Update pypi upload configurations

* Add MSDFT method (pyscf#77)

* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests

* Remove 2d code

* Formatting

* Fix split-scf bug. Switch to FFTDF in tests (verified with QChem).

* Small cleanup

* Fix typos

* Fix flake8, typos, unneeded print statements

* turn build_probe_cell, modified_madelung, converged_modified into static methods of KHF_stagger

* Refactoring staggered mesh exchange calculation

* Refactor kernel function. Non-scf and split-scf now just asserts mf.converged instead of calling mf.kernel

* fix flake8

* Rename functions and fix documentation for clairity

* Remove xcfun

---------

Co-authored-by: Qiming Sun <[email protected]>
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