Simple 3-body bound system

This commit is contained in:
Nuwan Yapa 2024-04-09 18:07:17 -04:00
parent 8ee4057f7e
commit 1f4a648d52
1 changed files with 19 additions and 0 deletions

19
3b_bound.jl Normal file
View File

@ -0,0 +1,19 @@
include("Hamiltonian.jl")
mode = cpu_tensor
T = Float32
V_gauss(r2) = -2 * exp(-r2 / 4)
d = 3
n = 3
N = 20
L = 15
n_imag = 1
ϕ = 0
s = system{T}(d, n, N, L)
H = Hamiltonian{T}(s, V_gauss, ϕ, n_imag, mode)
@time evals, _, info = eig(H, 5)
print(info.numops, " operations")
display(evals)