Thanks.
I may not have made myself clear.
Just like the code in the attachment,I am simulating monochromatic light-two level atom interaction. But there is no true monochromatic light field in real experimental conditions, a 5 ps FWHM Gaussian transform-limited pulse always has ~0.2 nm spectral FWHM .
I mean How can the spectral width of the pulse be taken into account in the simulation, so that the simulation can be close to the real experimental situation.
One of the pieces of code in the attachment:
def rabi_frequency(t, args): # Gaussian profile
return 0.5 * area / (w * sqrt(pi)) * exp(-((t - t_center) / w) ** 2)
H0 = delta * e * e.dag()
H = [H0, [e*g.dag()+g*e.dag(), rabi_frequency]]