In[]:=
ClearAll
Out[]=
ClearAll
In[]:=
ClearAll
Out[]=
ClearAll
In[]:=
<<AtomicDensityMatrix`
In[]:=
system={AtomicState[1,NaturalWidthΓ1,BranchingRatio[4]0,BranchingRatio[5]0,ParityEven,Energy->0],​​AtomicState[2,NaturalWidthΓ2,BranchingRatio[1]1,BranchingRatio[5]0,ParityOdd],​​AtomicState[3,NaturalWidthΓ3,BranchingRatio[2]1,ParityEven],​​AtomicState[4,NaturalWidthΓ4,BranchingRatio[3]1,BranchingRatio[1]0,ParityOdd],​​AtomicState[5,NaturalWidthΓ5,BranchingRatio[4]1,BranchingRatio[2]0,ParityEven]};
In[]:=
SetOptions[DensityMatrix,TimeDependenceFalse];
In[]:=
DensityMatrix[system]//MatrixForm
Out[]//MatrixForm=
ρ
1,1
ρ
1,2
ρ
1,3
ρ
1,4
ρ
1,5
ρ
2,1
ρ
2,2
ρ
2,3
ρ
2,4
ρ
2,5
ρ
3,1
ρ
3,2
ρ
3,3
ρ
3,4
ρ
3,5
ρ
4,1
ρ
4,2
ρ
4,3
ρ
4,4
ρ
4,5
ρ
5,1
ρ
5,2
ρ
5,3
ρ
5,4
ρ
5,5
In[]:=
fieldp=OpticalField[ωp,Ωp/ReducedME[1,{Dipole,1},2]]
Out[]=

-tωp

Ωp
ReducedME[1,{Dipole,1},2]
,0,0
In[]:=
fieldd=OpticalField[ωd,Ωd/ReducedME[2,{Dipole,1},3]]
Out[]=

-tωd

Ωd
ReducedME[2,{Dipole,1},3]
,0,0
In[]:=
fieldr=OpticalField[ωr,Ωr/ReducedME[3,{Dipole,1},4]]
Out[]=

-tωr

Ωr
ReducedME[3,{Dipole,1},4]
,0,0
In[]:=
fieldthz=OpticalField[ωthz,Ωthz/ReducedME[4,{Dipole,1},5]]​​
Out[]=

-tωthz

Ωthz
ReducedME[4,{Dipole,1},5]
,0,0
In[]:=
MatrixForm[H=Hamiltonian[system,{{ElectricFieldfieldp,AllowedCouplings{12}},{ElectricFieldfieldd,AllowedCouplings{23}},{ElectricFieldfieldr,AllowedCouplings{34}},{ElectricFieldfieldthz,AllowedCouplings{45}}}]]
Out[]//MatrixForm=
0
-ΩpCos[tωp]
0
0
0
-ΩpCos[tωp]
Energy[2]
-ΩdCos[tωd]
0
0
0
-ΩdCos[tωd]
Energy[3]
-ΩrCos[tωr]
0
0
0
-ΩrCos[tωr]
Energy[4]
-ΩthzCos[tωthz]
0
0
0
-ΩthzCos[tωthz]
Energy[5]
In[]:=
LevelDiagram[system,H/.{Energy[2]1,Energy[3]2,Energy[4]3,Energy[5]4}]
Out[]=
In[]:=
(Hrwa=RotatingWaveApproximation[system,H,{{ωp,12,Δp},{ωd,23,Δd},{ωr,34,Δr},{ωthz,45,Δthz}}])//MatrixForm
Out[]//MatrixForm=
0
-
Ωp
2
0
0
0
-
Ωp
2
-Δp
-
Ωd
2
0
0
0
-
Ωd
2
-Δd-Δp
-
Ωr
2
0
0
0
-
Ωr
2
-Δd-Δp-Δr
-
Ωthz
2
0
0
0
-
Ωthz
2
-Δd-Δp-Δr-Δthz
In[]:=
MatrixForm[relax=IntrinsicRelaxation[system]+TransitRelaxation[system,γ]]
Out[]//MatrixForm=
γ+Γ1
0
0
0
0
0
γ+Γ2
0
0
0
0
0
γ+Γ3
0
0
0
0
0
γ+Γ4
0
0
0
0
0
γ+Γ5
In[]:=
MatrixForm[repop=OpticalRepopulation[system]+TransitRepopulation[system,γ]]
Out[]//MatrixForm=
Γ2
ρ
2,2
0
0
0
0
0
Γ3
ρ
3,3
0
0
0
0
0
Γ4
ρ
4,4
0
0
0
0
0
Γ5
ρ
5,5
0
0
0
0
0
0
In[]:=
TableForm[eqs=LiouvilleEquation[system,Hrwa,relax,repop]]
Out[]//TableForm=
In[]:=
obs=Observables[system,Energy[1],Ωp/ReducedME[1,{Dipole,1},2],TransformMatrix​​MatrixExp[-ItDiagonalMatrix[{Energy[1],0,0,0,0}]]]/.Energy[1]2π/λ//FullSimplify
Out[]=

2
2
π
-
3Γ2Im
ρ
1,2

3
Energy[2]
-2
3
Γ2
3
Energy[2]
Im[
ρ
1,4
]ReducedME[1,{Dipole,1},4]
λΩp
,
2
2
π
3Γ2Re
ρ
1,2

3
Energy[2]
+2
3
Γ2
3
Energy[2]
Re[
ρ
1,4
]ReducedME[1,{Dipole,1},4]
λΩp
,{0,0}
In[]:=
SetOptions[RowReduce,Method->"CofactorExpansion"];sol=Solve[eqs,DMVariables[system]][[1]];SetOptions[RowReduce,Method->Automatic];
With[{coherence=Im[Subscript[ρ,2,1]]/.sol/.{Γ11,γ0,λ1}},Manipulate[Plot[coherence,{Δc,-8,8},PlotRange{-.2,.2},FrameTrue,ImageSizeMedium,FrameLabel{"Probe detuning \!\(\*SubscriptBox[\(Δ\), \(a\)]\)/Γ",Im[Subscript[ρ,1,2]]}],{{Ωp,.1},0.0001,5},{{Ωd,.5},0.0001,5},{{Ωr,.1},0.0001,5},{{Ωt,.1},0.0001,5},{{Δp,.5},-5,5},{{Δd,.5},-5,5},{{Δt,.5},-5,5}]]