Abstract
A scheme for one-step preparation of atomic GHZ states in two directly coupled cavities via virtual excitations is proposed. In the whole procedure, the information is carried only in two ground states of Λ-type atoms, while the excited states of atoms and cavity modes are virtually excited, leading the system to be insensitive to atomic spontaneous emission and photon loss.