Skip to content

Commit bec87df

Browse files
committed
1 parent 657735e commit bec87df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hubbard.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ function test_slater_determinants(lattice::AbstractLattice, N_up::Int, N_dn::Int
239239
for (total_k, slater_wfs_k) in zip(total_momenta, slater_wfs)
240240
for (j, (energy, filled_k_up_indices, filled_k_dn_indices)) in enumerate(band_fillings[total_k])
241241
# Construct and calculate the two determinants with proper normalization.
242-
up_mat = [exp(im * kdotr(lattice, k, r)) / root_V for r in r_up, k in filled_k_up_indices]
243-
dn_mat = [exp(im * kdotr(lattice, k, r)) / root_V for r in r_dn, k in filled_k_dn_indices]
242+
up_mat = Complex128[exp(im * kdotr(lattice, k, r)) / root_V for r in r_up, k in filled_k_up_indices]
243+
dn_mat = Complex128[exp(im * kdotr(lattice, k, r)) / root_V for r in r_dn, k in filled_k_dn_indices]
244244
slater_wfs_k[i, j] = det(up_mat) * det(dn_mat)
245245
end
246246
end

0 commit comments

Comments
 (0)