mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 18:16:12 +01:00
Added SVD test program
This commit is contained in:
parent
f4fe3c4035
commit
3205f83db0
56
src/Dets/det_svd.irp.f
Normal file
56
src/Dets/det_svd.irp.f
Normal file
@ -0,0 +1,56 @@
|
||||
program det_svd
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Computes the SVD of the Alpha x Beta determinant coefficient matrix
|
||||
END_DOC
|
||||
integer :: i,j
|
||||
|
||||
read_wf = .True.
|
||||
TOUCH read_wf
|
||||
|
||||
print *, 'SVD matrix before filling'
|
||||
print *, '========================='
|
||||
print *, ''
|
||||
print *, 'N_det = ', N_det
|
||||
print *, 'N_det_alpha = ', N_det_alpha_unique
|
||||
print *, 'N_det_beta = ', N_det_beta_unique
|
||||
print *, ''
|
||||
|
||||
! do i=1,N_det_alpha_unique
|
||||
! do j=1,N_det_beta_unique
|
||||
! print *, i,j,psi_svd_matrix(i,j,:)
|
||||
! enddo
|
||||
! enddo
|
||||
|
||||
print *, ''
|
||||
print *, 'Energy = ', ci_energy
|
||||
print *, ''
|
||||
|
||||
print *, psi_svd_coefs(1:20,1)
|
||||
|
||||
call generate_all_alpha_beta_det_products
|
||||
print *, ''
|
||||
print *, 'Energy = ', ci_energy
|
||||
print *, ''
|
||||
|
||||
print *, 'SVD matrix after filling'
|
||||
print *, '========================'
|
||||
print *, ''
|
||||
print *, 'N_det = ', N_det
|
||||
print *, 'N_det_alpha = ', N_det_alpha_unique
|
||||
print *, 'N_det_beta = ', N_det_beta_unique
|
||||
print *, ''
|
||||
|
||||
! do i=1,N_det_alpha_unique
|
||||
! do j=1,N_det_beta_unique
|
||||
! print *, i,j,psi_svd_matrix(i,j,:)
|
||||
! enddo
|
||||
! enddo
|
||||
|
||||
print *, ''
|
||||
print *, 'Energy = ', ci_energy
|
||||
print *, ''
|
||||
print *, psi_svd_coefs(1:20,1)
|
||||
! call save_wavefunction
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user