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
In solve_fermion(), the type hint for spin_sq parameter should be float instead of int. This parameter represents spin squared expectation value of the target ground state S^2 = s(s+1), where s is the spin quantum number taking values of $\frac{n}{2}$ (n being an integer). Therefore, spin_sq should accept float values.
The text was updated successfully, but these errors were encountered:
In solve_fermion(), the type hint for spin_sq parameter should be float instead of int. This parameter represents spin squared expectation value of the target ground state S^2 = s(s+1), where s is the spin quantum number taking values of n 2 (n being an integer). Therefore, spin_sq should accept float values.
Thank you for submitting this! You're right, this should be a float (or np.number). The only type hint I could find for this in pyscf was here in fix_spin(), and it seems to be a np.number. I think it's fine if we just use float.
It turns out Dice expects spin input as an int. I also opened an issue to correct the explanations around spin for that package as well.
In solve_fermion(), the type hint for$\frac{n}{2}$ (n being an integer). Therefore,
spin_sq
parameter should befloat
instead ofint
. This parameter represents spin squared expectation value of the target ground stateS^2 = s(s+1)
, wheres
is the spin quantum number taking values ofspin_sq
should accept float values.The text was updated successfully, but these errors were encountered: