summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--useful_functions.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/useful_functions.m b/useful_functions.m
index 8e73ddf..8adbf86 100644
--- a/useful_functions.m
+++ b/useful_functions.m
@@ -120,11 +120,11 @@ function L=Liouville_operator_matrix( ...
% Liouville matrix operator has Nlevels*Nlevels blocks
% which governed by the same modulation frequency
for p_freq_cntr=1:Nfreq
+ p0=1+(p_freq_cntr-1)*rho_size;
+ % we guaranteed to know frequency of final and initial rhoLiouville
+ w1i=rhoLiouville_w(p0); % final
for s_freq_cntr=1:Nfreq
- p0=1+(p_freq_cntr-1)*rho_size;
s0=1+(s_freq_cntr-1)*rho_size;
- % we guaranteed to know frequency of final and initial rhoLiouville
- w1i=rhoLiouville_w(p0); % final
w_jk=modulation_freq(w1i);
w2i=rhoLiouville_w(s0); % initial
w_mn=modulation_freq(w2i);