10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-01 19:05:25 +02:00

Merge branch 'master' of github.com:scemama/quantum_package

This commit is contained in:
Anthony Scemama 2017-07-15 18:03:21 +02:00
commit 6ff6a031ae

View File

@ -43,10 +43,12 @@ subroutine get_excitation_degree(key1,key2,degree,Nint)
degree = sum(popcnt(xorvec(1:8)))
case default
do l=1,ishft(Nint,1)
integer :: lmax
lmax = ishft(Nint,1)
do l=1,lmax
xorvec(l) = xor( key1(l), key2(l))
enddo
degree = sum(popcnt(xorvec(1:l)))
degree = sum(popcnt(xorvec(1:lmax)))
end select