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

Skip to content
Discussion options

You must be logged in to vote

It doesn't do an entire SCF iteration; just one Fock build and sets mo_energy to the diagonal elements. I don't think it changes the MO coefficients or the SCF total energy. I think the member function you want to interdict is ao2mo:

class myCCSD (mycc.__class__):
    def ao2mo (self, mo_coeff=None):
        eris = super ().ao2mo (mo_coeff=mo_coeff)
        eris.mo_energy = my_mo_energy
        return eris
from pyscf import lib
my_patched_cc = lib.view (mycc, myCCSD)
my_patched_cc.kernel ()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sunqm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2345 on January 20, 2025 01:18.