mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-22 12:23:48 +01:00
Fixed QMCPACK interface
This commit is contained in:
parent
a8edfa0490
commit
23ab125883
@ -350,7 +350,12 @@ psi_coef = psi_coef[state]
|
||||
|
||||
encode = 8*bit_kind
|
||||
|
||||
decode = lambda det: ''.join("{0:b}".format(i)[::-1].ljust(encode,'0') for i in det)[:mo_num]
|
||||
def bindigits(n, bits):
|
||||
s = bin(n & int("1"*bits, 2))[2:]
|
||||
return ("{0:0>%s}" % (bits)).format(s)
|
||||
|
||||
decode = lambda det: ''.join(bindigits(i,encode)[::-1] for i in det)[:mo_num]
|
||||
|
||||
for coef, (det_a, det_b) in zip(psi_coef, psi_det):
|
||||
|
||||
print coef
|
||||
|
@ -1 +0,0 @@
|
||||
AO_Basis Determinants Hartree_Fock
|
@ -1,15 +0,0 @@
|
||||
=======
|
||||
qmcpack
|
||||
=======
|
||||
|
||||
Normalize the AO basis using GAMESS convention and save it inside the EZFIO.
|
||||
Then the python script is called.
|
||||
|
||||
Needed Modules
|
||||
==============
|
||||
.. Do not edit this section It was auto-generated
|
||||
.. by the `update_README.py` script.
|
||||
Documentation
|
||||
=============
|
||||
.. Do not edit this section It was auto-generated
|
||||
.. by the `update_README.py` script.
|
Loading…
Reference in New Issue
Block a user