Chose potential for new paper

This commit is contained in:
ysyapa 2023-08-07 19:46:19 +00:00
parent 911143a9ca
commit cbd0460600
1 changed files with 28 additions and 0 deletions

28
ComplexScaling-FV.jl Normal file
View File

@ -0,0 +1,28 @@
include("Hamiltonian.jl")
mode = cpu_tensor
T = Float32 # single-precision mode
using Plots
V_gauss(r2) =
-10 * exp(-(sqrt(r2)) ^ 2)
d = 3
n = 2
N = 32
L = 16
ϕ = pi/5
s = system{T}(d, n, N, L)
H = Hamiltonian{T}(s, V_gauss, ϕ, 0, mode)
@time evals, _, info = eig(H, 20)
print(info.numops, " operations")
display(evals)
scatter(real.(evals), imag.(evals); legend=false)
xlabel!("Re E")
ylabel!("Im E")
xlims!(0, 0.5)
ylims!(-0.5, 0)
savefig("temp/ComplexScaling-FV.png")