29 lines
756 B
Julia
29 lines
756 B
Julia
include("../ho_basis.jl")
|
|
include("../EC.jl")
|
|
|
|
V_of_r(r) = 2 * exp(-(r-3)^2 / (1.5)^2)
|
|
Λ = 0
|
|
m = 1.0
|
|
|
|
μω_global = 0.5 * exp(-2im * pi / 9)
|
|
E_max = 30
|
|
|
|
H0 = get_3b_H_matrix(src, V_of_r, μω_global, E_max, Λ, m, true, true)
|
|
|
|
# Vp = perturbation to make the state artificially bound
|
|
Vp_of_r(r) = -exp(-(r/3)^2)
|
|
@time "Vp" Vp = get_3b_H_matrix(src, Vp_of_r, μω_global, E_max, Λ, m, false, true)
|
|
|
|
training_ref = -0.72763
|
|
extrapolating_ref = 4.0766890719636635 - 0.01275892774109674im
|
|
|
|
training_c = [2.0, 1.9, 1.8]
|
|
extrapolating_c = 0.0 : 0.2 : 1.2
|
|
|
|
EC = affine_EC(H0, Vp)
|
|
train!(EC, training_c; ref_eval=training_ref, CAEC=true)
|
|
extrapolate!(EC, extrapolating_c; ref_eval=extrapolating_ref)
|
|
|
|
exportCSV(EC, "temp/HO_B2R.csv")
|
|
plot(EC, "temp/HO_B2R.pdf")
|