Hello eveybody,
I am here to clarify a small issue I found while working on a simulation: simulating the mean photon number in a cavity in a parametric amplifier.
The isse is that the results are highly dependent on the number of fock basis N! I understand that the result may change from N=3 to N=5, but if we are working in vacuum, we should not observe any difference between N=1000 and N=1200.
The difference is not huge, it has similar behavioir, but it is there, mostly in its peak value. How it is possible that truncating the Hamiltonian, at so large values, give differences?
Let me attach the code:
E=1.0 #electric field amplitude, consider real
hbar=1.0
####Bosonic operator
N=1200
a=destroy(N)
psi0 =fock(N, 0) #initial state, vacuum state
Hd=1j*hbar/2.0*(E*a.dag()*a.dag()-E.conjugate()*a*a) #squeeze generator
#Dynamics
T_max=100
N_steps=T_max*50
tlist = np.linspace(0, T_max, N_steps)
mean_values = [a.dag()*a]
result = mesolve(Hd, psi0, tlist, [], mean_values)
Regards,
Joan.