mirror of
https://github.com/LCPQ/quantum_package
synced 2024-08-14 16:48:32 +02:00
21 lines
532 B
FortranFixed
21 lines
532 B
FortranFixed
|
program cisd
|
||
|
implicit none
|
||
|
integer :: i
|
||
|
call H_apply_cisd
|
||
|
double precision, allocatable :: eigvalues(:),eigvectors(:,:)
|
||
|
allocate(eigvalues(n_det),eigvectors(n_det,n_det))
|
||
|
print *, 'N_det = ', N_det
|
||
|
call lapack_diag(eigvalues,eigvectors,H_matrix_all_dets,n_det,n_det)
|
||
|
|
||
|
! print *, H_matrix_all_dets
|
||
|
print *, '---'
|
||
|
print *, 'HF:', HF_energy
|
||
|
print *, '---'
|
||
|
do i = 1,20
|
||
|
print *, 'energy(i) = ',eigvalues(i) + nuclear_repulsion
|
||
|
enddo
|
||
|
! print *, eigvectors(:,1)
|
||
|
deallocate(eigvalues,eigvectors)
|
||
|
end
|
||
|
|