The mode-mode entanglement between trapped ions and cavity fields is investigated in the dispersive regime. We show how a simple initial preparation of Gaussian coherent states and a postselection may be used to generate motional nonlocal mesoscopic states involving ions in different traps. We also present a study of the entanglement induced by dynamical Stark shifts considering a cluster of
N trapped ions. In this case, all entanglement is due to the dependence of the Stark shifts on the ions' state of motion manifested as a cross-Kerr interaction between each ion and the field.
We propose a scheme to perform basic gates of quantum computing and prepare entangled states in a system with cold trapped ions located in a single-mode optical cavity. General quantum computing can be done with both the motional state of the trapped ion and cavity state being qubits. We can also generate different kinds of entangled states in such a system without state reduction, and can transfer quantum states from an ion in one trap to an ion in another trap. The experimental requirements for achieving our scheme are discussed.