We perform Ramsey interferometry on an ultracold ^{87}Rb ensemble confined in an optical dipole trap. We use a π pulse set at the middle of the interferometer to restore the coherence of the spin ensemble by canceling out phase inhomogeneities and creating a spin echo in the contrast. However, for high atomic densities, we observe the opposite behavior: the π pulse accelerates the dephasing of the spin ensemble leading to a faster contrast decay of the interferometer. We understand this phenomenon as a competition between the spin-echo technique and an exchange-interaction driven spin self-rephasing mechanism based on the identical spin rotation effect. Our experimental data are well reproduced by a numerical model.
We observe the coherence of an interacting two-component Bose-Einstein condensate (BEC) surviving for seconds in a trapped Ramsey interferometer. Mean-field-driven collective oscillations of two components lead to periodic dephasing and rephasing of condensate wave functions with a slow decay of the interference fringe visibility. We apply spin echo synchronous with the self-rephasing of the condensate to reduce the influence of state-dependent atom losses, significantly enhancing the visibility up to
0.75 at the evolution time of
1.5 s. Mean-field theory consistently predicts higher visibility than experimentally observed values. We quantify the effects of classical and quantum noise and infer a coherence time of
2.8 s for a trapped condensate of $5.5\ifmmode\times\else\texttimes\fi{}{10}^{4}$ interacting atoms.