Skip to content

Commit

Permalink
fix bug in cidump
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanwsr committed Jan 20, 2022
1 parent 8e81ed7 commit 6aebe00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion automr/cidump.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ def dump(mc, thresh=1e-2):
for ici, ci in enumerate(civecs):
print('***** CI components ROOT %d ******' % ici)
ncas = mc.ncas
na, nb = mc.nelecas
#na, nb = mc.nelecas
#print(mc.fcisolver.nelec)
spin = mc.fcisolver.spin
na,nb = fci.addons._unpack_nelec(mc.nelecas, spin)
#print(mc.ci)
lena, lenb = ci.shape
dump_g = {}
dump_o = {}
for i in range(lena):
for j in range(lenb):
#print('ncas %d na %d i %d'%(ncas, na,i))
#print(fci.cistring.num_strings(ncas, na) )
veca = fci.cistring.addr2str(ncas, na, i)
vecb = fci.cistring.addr2str(ncas, nb, j)
coeff = ci[i,j]
Expand Down

0 comments on commit 6aebe00

Please sign in to comment.