-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Run VMC starting from CISD wavefunctions #386
Comments
Hi David, Thanks for the issue! The documentation has been updated there. You might find the HOWTOs more useful than the developer documentation: We currently don't support CISD wave functions natively. See Issue #241 It is possible to construct a determinant list by hand, if you like. It wouldn't be too hard to do that. However, these days we don't typically use CISD because it's almost always worse than HCI or CASSCF/CASCI. You will probably get similar results to the article if you do something like the following, which will get you the ground-state Jastrow:
After that, you will want to attach the ground state Jastrow to the CAS roots to get approximate excited states. I have some examples of that somewhere, but let me know if this works for you. |
Hi @lkwagner . I tried to run these lines of code but it does not work. Here is the error message:
|
Hi David, I apologize for the confusion. The example code I added to the documentation was outdated. Could you try this instead? The label "mc" is changed to "ci"
|
Hi @willwheelera . I tried this one. Now it raises other error message:
|
Hi David, thanks for trying that and following up. I recognize where your error is coming from, and I think our current version of the code no longer does that. Can you try it again using the current version? If you installed with pip, you can do |
Thank you @willwheelera . I tried to install using I am sorry, but it is still not working. There is another error now:
I will send you my script just to make sure I am not doing anything wrong. |
Hi David, thanks for following up and thanks for your patience with all the errors. We just added a fix that I think should solve this error. Could you try it again with the update? |
@willwheelera sorry for the delay. I run the script but it took over 24 hours to finish. It run without errors. |
Hi. I am trying to use PySCF / PyQMC to reproduce results from the paper “Density-matrix based determination of low-energy model Hamiltonians from ab initio wavefunctions” (J. Chem. Phys. 143, 102814, 2015). I tried to follow the example from the documentation (https://pyqmc.readthedocs.io/en/latest/wavefunction.html?highlight=multi-det#pyqmc.slater.Slater):
First of all, it seems like the documentation is wrong, because the
multislater
class does not exist. It seems it should bepyqmc.slater.Slater
instead.Secondly, this example uses the heat bath CI method, while the paper used CISD. I tried to use CISD instead, but it did not work:
The above code raises the following error:
It seems like the function expects that the
cisolver
object has an attribute it does not have. Even if I artificially introduce the attributes in it (for example:cisolver.__dict__.update({'ncore':0,'ncas':25,'nelecas':2})
, it does not work:It seems to me that the
Slater
function is not meant to be used with CISD. Is there any other option to construct a Slater-Jastrow function in PyQMC from CISD?The text was updated successfully, but these errors were encountered: