Optimized phase switching using a single-atom nonlinearity

We show that a nonlinear phase shift of π can be obtained by using a single two-level atom in a one-sided cavity with negligible losses. This result implies that the use of a one-sided cavity can significantly improve the π/18 phase shift previously observed by Turchette et al (1995 Phys. Rev. Lett. 75 4710).