summaryrefslogtreecommitdiff
path: root/three_levels.m
blob: 9830d7b3804b3d8993a9b38863e9e1ff69fe9267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
1;

Nlevels=3;
w12=1e9;
w_hpf=6800;
w13=w12-w_hpf;


%      -----------  |1>
%         /     \
%    E_d /       \ 
%       /         \ E_p
%      /           \
%    -------- |3>   \
%                    \
%               ___________ |2>


w_hpf_ground=6834;
w_pf1       =1e9;  % something big Distance from |S,F=1> to |P,F=1>
% unperturbed Hamiltonian energy levels
levels_energy=[ w_pf1, 0,  w_hpf_ground];
levels_energy=levels_energy*hbar;
H0=zeros(Nlevels);
H0=diag(levels_energy);
%for i=1:Nlevels
	%H0(i,i)=levels_energy(i);
%endfor

% decay matrix g(i,j) correspnds to decay from i-->j
gamma=6;
gamma_23=.001;
g_decay=zeros(Nlevels);
g_decay(1,2)=gamma; %upper level decay
g_decay(1,3)=gamma; %upper level decay
g_decay(3,2)=gamma_23; % lower levels mixing
g_decay(2,3)=gamma_23; % lower levels mixing

%defasing matris
g_deph=0;
g_dephasing=zeros(Nlevels);
g_dephasing(1,2)=g_deph;
g_dephasing(2,1)=g_dephasing(1,2);
g_dephasing(1,3)=g_deph;
g_dephasing(3,1)=g_dephasing(1,3);



% dipole matrix
dipole_elements.linear = [
	[ 0, 0, 0 ]; ...
	[ 0, 0, 0 ]; ...
	[ 0, 0, 0 ] ...
	];
dipole_elements.left = [ ...
	[ 0, 1, 0 ]; ...
	[ 1, 0, 0 ]; ...
	[ 0, 0, 0 ] ...
	];
dipole_elements.right = [ ...
	[ 0, 0, 1 ]; ...
	[ 0, 0, 0 ]; ...
	[ 1, 0, 0 ] ...
	];


gamma=6;
gamma_hpf=.0001;
g_decay = [ ...
	[ 0, gamma,     gamma ]; ...
	[ 0, 0,         gamma_hpf ]; ...
	[ 0, gamma_hpf,     0 ] ...
	];