Skip to content

Commit 9acaa7b

Browse files
committed
Updated citools.interfaces to add the excitation parity phase
1 parent 6e91d4d commit 9acaa7b

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

src/libra_py/citools/interfaces.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,20 @@ def sd_and_csf_overlaps_singlet(
915915

916916
dets = list(mapped_basis)
917917

918+
919+
# ==================================================================
920+
# Excitations parity phases
921+
# ==================================================================
922+
923+
nbas = len(mapped_basis)
924+
925+
Phases = [1.0] # ground state reference
926+
for i in range(1, nbas):
927+
phase, new_det = sd.excitation_phase_from_mapping(mapped_basis[0], mapped_basis[i])
928+
Phases.append(phase)
929+
#print(phase)
930+
931+
918932
# ==================================================================
919933
# Overlap matrices
920934
# ==================================================================
@@ -927,7 +941,8 @@ def sd_and_csf_overlaps_singlet(
927941

928942

929943
st_sd = sd.slater_overlap_matrix(
930-
dets, dets, st_mo_dense, complex_valued=False
944+
dets, dets, st_mo_dense, complex_valued=False,
945+
phases_A=Phases, phases_B=Phases
931946
)
932947

933948
if st_sd.shape[0] != st_sd.shape[1]:

0 commit comments

Comments
 (0)