What to try when the calculation fails? #163
-
I have a particular use case of a system for which the RHF, CCSD and MP2 seem to converge when I use pyscf on the whole molecule. I have then looked at applying DMET, fragmented (as in the code snippet below). This seems to raise an error with the DIIS matrix being singular. Looking into the main code loop there seem to be two places where this error is checked for. However for this case it seems to happen on the second iteration once the vcorr is updated and the mean field is updated. Here the function Below is the code snippet and I've also attached the vlog.txt and the stack trace
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It appears here as though the chemical potential optimization is failing. I should mention that the DMET module in vayesta is relatively rudimentary, and not actively developed currently. Instead, the EWF module has more support and more robust protocols for the optimization. In addition, the EWF module can do almost everything that the DMET module can do. I would suggest exploring the examples for this: Please let us know if you have further issues. |
Beta Was this translation helpful? Give feedback.
It appears here as though the chemical potential optimization is failing. I should mention that the DMET module in vayesta is relatively rudimentary, and not actively developed currently. Instead, the EWF module has more support and more robust protocols for the optimization. In addition, the EWF module can do almost everything that the DMET module can do. I would suggest exploring the examples for this:
molecules/15-chemical-potential.py
shows how the chemical potential can be optimized for the democratically partitioned DM as is done in DMET, whileemb.get_dmet_energy(part_cumulant=False)
will return the DMET energy expression in the literature (whereemb
is your embedding object). Howe…