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
|
%
% Set simulation options here.
% Always run this file first.
%
decay_bc = [0.00001]; % Ground state decay
decay_ab = [6]; % Excited state decay
drive = [logspace(0,-2,100)]; % Drive/control field
drive = drive(1:1); % Select which drives you want here
detuning1 = [-15]; % Single photon detuning
dephase_bc = [0]; % Ground state dephasing
global n = 3; %Number of processes to run
format long
global source_dir = 'source/';
global config_dir = [source_dir, 'config/'];
global data_dir = 'data/'
% Write parameters to files
dlmwrite([config_dir, 'decay_bc'], decay_bc, 'precision', '%0.10f');
dlmwrite([config_dir, 'decay_ab'], decay_ab, 'precision', '%0.10f');
dlmwrite([config_dir, 'drive'], drive, 'precision', '%0.10f');
dlmwrite([config_dir, 'detuning1'], detuning1, 'precision', '%0.10f');
dlmwrite([config_dir, 'dephase_bc'], dephase_bc, 'precision', '%0.10f');
addpath(
'control',
'view',
'source',
'lib'
);
|