出现了Warning: Instability detected. Aborting
这样的报错。
代码如下
# Particle in harmonic trap potential
#System Parameters
m = 9.9883414*10^(-27);#Li6 mass
#m = 1.0
ω = 2*pi*25.9
T1 = 2*pi/ω
ħ = 6.326*10^-34
# Position Basis
xmin = -300*10^-6 #μm
xmax = 300*10^-6
Npoints = 100
b_p = PositionBasis(xmin, xmax, Npoints)
b_m = MomentumBasis(b_p)
# Hamiltonian in real space basis
p = momentum(b_m) #operator
x = position(b_p) #operator
#H = dense(p^2)/2m + (1/2)*m*ω^2*x^2
T_px = transform(b_m, b_p)
T_xp = dagger(T_px)
H_kin = LazyProduct(T_xp, p^2/2m, T_px)
V = (m*ω^2*x^2)/2
H = LazySum(H_kin, V)
# Initial state
x0 = 1.5*10^-6
p0 = 0.0
sigma0 = 0.6*10^-6
ψ0 = gaussianstate(b_p, x0, p0, sigma0)
# Time evolution
T = [0:T1/10:T1;]
tout,ψt = timeevolution.schroedinger(T, ψ0, H)