For performance, we should replace
|
for j in 1:nₘₐₓ |
|
for i in 1:j |
|
H[i,j] = element(hamiltonian, basisset.basis[i], basisset.basis[j]) |
|
end |
|
end |
with
H = ...
for o in hamiltonian
for j in 1:nₘₐₓ
for i in 1:j
H[i,j] += element(o, basisset.basis[i], basisset.basis[j])
end
end
end
Please include an acknowledgments section to express your gratitude for the feedback received from participants of JuliaHEP Workshop 2025 at Princeton.
For performance, we should replace
TwoBody.jl/src/Rayleigh-Ritz.jl
Lines 369 to 373 in 7838967
with
Please include an acknowledgments section to express your gratitude for the feedback received from participants of JuliaHEP Workshop 2025 at Princeton.