Closed doomspec closed 1 year ago
I believe I am using the latest version. I installed by pip install git+https://github.com/tequilahub/tequila.git
Hi Zijian, what might be the issue is that you are using pyscf as backend. The irrep-based definition of active spaces only works for psi4.
If you have both installed, then pyscf will be the default (makes less problems). Can you try: Molecule(...., backend="psi4") and see if you still get the problem.
If it solves the issue, please let me know. Then I can update the code accordingly that it throws a useful exception.
Hi Jakob!
Thanks for the reply. I installed psi4 and it works. I tried to use PySCF because it supports higher versions of Python. But psi4 now also supports higher versions. It is written in the index README that but not all (optional) dependencies support it yet (e.g. Psi4)
. However, it looks good. Shall we change the README?
BTW, there is a lot of error about the use of numpy.float
. I have to manually change them to float
to make the code work. As Psi4 now support Python3.8, shall we also try to upgrade tq to higher version?
Yes, good idea to change the readme. I should also update the tutorials at some point (... it's on the todo list).
Just to have it on record here, for this issue: active_orbitals = [1,4,5] works, where the indices are just the indices of the spatial orbitals (in whatever way the HF solver of the underlying backend determines them).
Can you raise a new issue with the numpy.float problems and point me to where they are happening?
It will emit error
Environment: MacOS + Python 3.8 + PySCF
The problem appears only when an active space is chosen