-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issue Exporting CASCI Wavefunction from PySCF to qp2 #46
Comments
@NastaMauger : If you do
does it fix the problem? |
@NastaMauger I have a few notes here:
Perhaps, you can also retry your tests once Kousuke's PR for ECPs and AOs in pyscf-forge is merged. |
Hello, @scemama no it does not solve the issue unfortunately :( @q-posev, I would prefer to use get_h1eff and get_h2cas which return the effective one - and two-electron integrals for the CAS space. However, since TREXIO registers each component of the one-electron integral, I’m a bit confused about how to register the I think the issue might be he missing RDMs. Does QP2 have an import_trexio_rdm function? I couldn't find anything. Best |
Also, when I add the occupation number from my CASCI object into trexio and read it with QP2, now |
I am not familiar with the TREXIO import in QP2 but could it be that you need to write all integrals and not only the effective ones? And then you specify active/non-active orbitals in TREXIO file and QP2 takes care of reading the right blocks? @scemama knows for sure. Regarding the |
Hello @q-posev
The issue doesn't seem to lie with this, as it appears to be correctly registered in TREXIO when examining the HDF5 file. However, it seems that QP2 is having difficulty interpreting it for some reason. Regarding the |
Regarding this answer I feel a bit confused about whether TREXIO can register the element referred to by sunqm. I couldn't find any relevant information in the documentation. |
Are you sure you don't want |
@NastaMauger has this issue been fixed by the latest modifications? |
Hello,
I am opening this issue on the TREXIO-tools GitHub, but please be aware that I may not be certain whether the issue lies with TREXIO-tools, qp2, or myself (last one is the most probable :) )
I was able to correctly register the data needed to use them with qp2. After doing that, I ran the following qp2 commands:
The energies returned were the same as those given by my PySCF-RHF script, so I know that my TREXIO write commands in my PySCF script are correct.
However, I would prefer to use my PySCF-CASCI wavefunction instead of the RHF one. So, I modified my PySCF script as follows:
However, when exporting to qp2, the energy is still the same as the RHF one, even though I am using
casci.get_h1eff()[0]
. On the qp2 side, I set my mo_class usingqp set_mo_class
to be the same as my PySCF one. Thewrite_eri
function is defined in here.Now, using my determinant export pyscf script, I was also able to correctly import my determinant into qp2, but my energy is higher than the RHF one when using
qp_run print_energy my_ezfio
.So, my question is twofold:
qp_import_trexio_determinant
?I also tried to use the FCIDUMP file after my
casci.kernel()
to export in trexio format but it also failedThank you so much for your time and insight! :)
Best
The text was updated successfully, but these errors were encountered: