Hi,
I am studying a system which has the properties of PT symmetric. In fact, two bosonic modes are coupled where one of them is dissipated and the other one is amplified. For more details, you can take a look at
I want to obtain the second order correlation function, the same as the reference. To this end, I have used the following code:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from qutip import *
from IPython.display import Image
g = 0.5
kappab = -1
kappaa =1
X =0.1
w=0.01
N=7
M=7
def calulcate_avg_photons(N, D):
b = tensor(destroy(N), identity(M))
a = tensor(identity(N), destroy(M))
H = l *(b.dag() * b + a.dag() *a) + g * (b.dag() * a + a.dag() * b) + w * (a + a.dag()) + X*(a.dag()*a)**2
c_ops = [(kappaa)*b, (kappam)*a]
rho_ss = steadystate(H,c_ops)
n_cavity = expect(a.dag() * a, rho_ss)
g2_cavity = expect(a.dag() * a.dag() * a * a, rho_ss) / (n_cavity ** 2)
return n_cavity, g2_cavity
Gamma_vec = np.linspace(-5, 5, 200)
n_avg_vec = []
g2_vec = []
for l in Gamma_vec:
n_avg, g2 = calulcate_avg_photons(N, l)
n_avg_vec.append(n_avg)
g2_vec .append(g2)
fig, axes = plt.subplots(1, 1, figsize=(12,6))
axes.plot(Gamma_vec, g2_vec, color="blue", alpha=0.6, label="numerical")
axes.set_xlabel(r'$\Delta/\kappa_{m}$', fontsize=18)
axes.set_ylabel(r'$g^{(2)}(0)$', fontsize=18)
axes.ticklabel_format(useOffset=False)
Although I have selected "kappab=-1", meaning that mode "b" is amplified instead of dissipating, the result is exactly the same as the case where "kappaa = kappab = 1"!
Can anybody please help me to obtain the correct result the same as the reference?
Bests
Mehri