English: Plot of a Ramsey-fringe pattern (as used in atomic clocks) of an ideal monochromatic atom beam with a free evolution time T vs. pulse duration τ ratio of T/τ=8. The relative detuning (ω−ω0)/Ω0 is plotted in the interval [-5, 5]. More on the underlying theory can be found in [1].
#!/usr/bin/python# -*- coding: utf8 -*-importmatplotlib.pyplotaspltimportmatplotlibasmplimportnumpyasnpfrommathimport*code_website='http://commons.wikimedia.org/wiki/User:Geek3/mplwp'try:importmplwpexceptImportError,er:print'ImportError:',erprint'You need to download mplwp.py from',code_websiteexit(1)name='mplwp_ramsey_fringes_monochromatic.svg'fig=mplwp.fig_standard(mpl)xlim=-5,5;fig.gca().set_xlim(xlim)ylim=-0.05,1.15;fig.gca().set_ylim(ylim)mplwp.mark_axeszero(fig.gca())# free evolution time vs. interaction pulse time ratioT_over_tau=8defflip(delta):# return spin flip probability of atom beam in Ramsey device# delta is the detuning in terms of the Rabi frequency Omega0Omega_rel=sqrt(1.0+delta**2)phase_pulse=0.25*pi*Omega_relphase_free=0.25*pi*delta*T_over_tauPflip=(sin(phase_pulse)*(Omega_rel*cos(phase_pulse)*cos(phase_free)-delta*sin(phase_pulse)*sin(phase_free))*2./Omega_rel**2)**2returnPflipx=np.linspace(xlim[0],xlim[1],5001)y=[flip(xx)forxxinx]mpl.rc('legend',borderaxespad=1.0)plt.plot(x,y,label='$P_{flip}(\Delta\omega/\Omega_0)$')plt.legend(loc='upper right').get_frame().set_alpha(0.9)plt.savefig(name)mplwp.postprocess(name)
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
https://creativecommons.org/licenses/by/3.0CC BY 3.0 Creative Commons Attribution 3.0 truetrue