You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the code itself should be able to handle the case where the number of particles in a spin exactly fills that spin register but there are no unittests to ensure this. Lifting this limitation will enable this use case to run.
You can already use generalized=True which will ignore the actual occupation that you start from to run the code. But your ansatz will be longer.
mrossinek
changed the title
The Problem about QEOM dealing with H2, charge = -1
Enable fully occupied spin registers in UCC-like ansatze
Apr 12, 2024
Environment
What is happening?
When I use QEOM, I set the
driver
asIt is right in pyscf:
but meets bug in ansatz:
How can we reproduce the issue?
In
docs/tutorials/04_excited_states_solvers.ipynb
, input thedriver
as data above.What should happen?
It throw out an error
ValueError: The number of spatial orbitals 2must be greater than number of particles of any spin kind (2, 1).
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: