Commit cc164d61 authored by YesunHuang's avatar YesunHuang
Browse files

Update gitignore and parameters

parent 66d76ee5
......@@ -12,8 +12,8 @@
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Data
ForSuperComputer/Data
#Data
#ForSuperComputer/Data
imgs
# Mono auto generated files
......
8.004002001000499744e-01 6.356985283597695879e-01 4.301471640230374212e-03 3.112096485406987689e-01 0.000000000000000000e+00 1.709325174432850481e-09 6.362379137735568735e-01 6.942355668945127123e-01 5.257723758511351209e-01
7.603801900950475368e-01 6.598051095682300193e-01 1.101948904317702621e-01 3.665749261897407463e-01 0.000000000000000000e+00 2.458200164852828665e-04 5.308275730124835112e-01 1.717067635186310781e+00 6.055652073840436245e-01
1.010505252626313188e+00 2.072546326393021054e-01 3.327453673606979856e-01 6.746186865529617549e-01 0.000000000000000000e+00 7.459539702923357815e-03 1.280402393105804615e+00 8.560882494482001670e-01 3.640743468460145293e-01
6.403201600800400017e-01 3.522748051325739760e-01 4.877251948674261595e-01 7.314326119923619807e-01 0.000000000000000000e+00 2.524849929080458244e-02 8.238333592532101068e-01 1.160835349090249213e+00 3.539586165378253435e-01
5.202601300650324667e-01 3.492819137202637925e-01 5.807180862797363119e-01 7.847958019959792031e-01 0.000000000000000000e+00 1.634826107925947680e-02 9.539465289170528939e-01 9.968197641957975419e-01 3.141962191590894626e-01
4.902451225612806107e-01 1.982609544213078390e-01 8.917390455786925463e-01 9.940406399594562403e-01 0.000000000000000000e+00 4.179004750848731853e-02 2.353307109009139975e+00 7.571592259275831127e-01 2.980980489493357255e-01
3.901950975487743500e-01 3.052851849055389089e-01 1.104714815094461011e+00 1.208098802456604171e+00 0.000000000000000000e+00 7.659054140091113572e-02 1.663971527273820250e+00 7.518981101123910493e-01 2.480435317152688557e-01
3.501750875437718569e-01 3.081556646668275334e-01 1.291844335333172999e+00 1.251580152377030686e+00 0.000000000000000000e+00 8.439223356595219883e-02 2.176359374270713243e+00 7.112795517699770365e-01 2.591201470609554303e-01
3.501750875437718569e-01 2.220656516731635555e-01 1.397934348326836274e+00 1.352189007608211035e+00 0.000000000000000000e+00 9.573118797433478877e-02 2.761244283498323515e+00 6.799864880984735072e-01 2.496363788787498150e-01
2.701350675337668705e-01 3.327628606545900980e-01 1.417237139345410180e+00 1.362185641621781462e+00 0.000000000000000000e+00 1.803866195044558363e-01 2.361838247796622436e+00 8.344283912019477834e-01 2.782744118098431918e-01
......@@ -39,14 +39,15 @@ def BuildOperator_Exact(Ea:float,DeltaB:float,g:float):
c_ops.append(np.sqrt(kappa_a)*a)
c_ops.append(np.sqrt(kappa_b)*b)
c_ops.append(np.sqrt(kappa_c)*c)
psiIdeal=tensor(basis(Nb,psi0_l[2]),basis(Nc,psi0_l[1]))
psiIdeal=tensor(qeye(Na),basis(Nb,psi0_l[2]),basis(Nc,psi0_l[1]))
idealState=psiIdeal*psiIdeal.dag()
operator={'Hamilton':H,'Collapse':c_ops,'Initial_state':psi0,'Ideal_state':idealState,'track':[b.dag()*b,\
c.dag()*c,\
a.dag()*a,\
b.dag()*b.dag()*b*b,\
c.dag()*c.dag()*c*c,\
b.dag()*c.dag()*b*c]}
b.dag()*c.dag()*b*c,\
idealState]}
return operator
'''
......@@ -72,7 +73,7 @@ Ntraj=2000
DeltaB=0
tlist=np.linspace(0,20,2000)
opts=Options()
opts.store_states=True
#opts.store_states=True
#opts.rhs_reuse=True
#opts.use_openmp=True
......@@ -89,13 +90,15 @@ if __name__=="__main__":
data[j][1]=output.expect[0][maxIndex] #Nb
data[j][2]=output.expect[1][maxIndex] #Nc
data[j][3]=output.expect[2][maxIndex] #Na
'''
rho=output.states[0][maxIndex]*output.states[0][maxIndex].dag()
for k in range(1,Ntraj):
rho+=output.states[k][maxIndex]*output.states[k][maxIndex].dag()
rho=1/Ntraj*rho
rho_bc=rho.ptrace([1,2])
data[j][4]=entropy_vn(rho_bc) #(A,BC) Entanglement
data[j][5]=expect(op['Ideal_state'],rho_bc) #Fidelity
'''
data[j][5]=output.expect[6][maxIndex] #Fidelity
data[j][6]=output.expect[3][maxIndex]/(data[j][1]*data[j][1]) #g2b
data[j][7]=output.expect[4][maxIndex]/(data[j][2]*data[j][2]) #g2c
data[j][8]=output.expect[5][maxIndex]/(data[j][1]*data[j][2]) #g2bc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment