diff options
Diffstat (limited to 'xmds2')
-rw-r--r-- | xmds2/Genas_system/Genas_system.xmds | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmds2/Genas_system/Genas_system.xmds b/xmds2/Genas_system/Genas_system.xmds index 189c0a6..64b6a7d 100644 --- a/xmds2/Genas_system/Genas_system.xmds +++ b/xmds2/Genas_system/Genas_system.xmds @@ -68,6 +68,18 @@ complex Exc, Eyc; // Complex-conjugated Rabi frequency complex r21, r31, r41, r32, r42, r43, r44; // density matrix elements + + double delta0z(double z) { + // calculates detuning/shift of exited m=0 sublevel as a function of z + double delta; + // printf("z=%g \t delta0= %g\n", z, delta0); + if (z <= 0.09) { + delta = 1.0*delta0; + } else { + delta = -1.0*delta0; + } + return delta; + } ]]> </globals> <benchmark /> |