Skip to content
Snippets Groups Projects
Commit c846810e authored by Antonio Manesco's avatar Antonio Manesco
Browse files

fix datatype for compatibility with scipy.optimize

parent 6cf634cb
No related branches found
No related tags found
1 merge request!1General dimension
......@@ -62,7 +62,7 @@ def scf_loop(mf, H_int, filling, hamiltonians_0):
vals, vecs = np.linalg.eigh(hamiltonians)
vecs = np.linalg.qr(vecs)[0]
mf_new = compute_mf(vals=vals, vecs=vecs, filling=filling, H_int=H_int)
return np.abs(mf_new - mf)
return np.array(np.abs(mf_new - mf), dtype=complex)
def find_groundstate_ham(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment