IonSim - A simulator for trapped ion dynamics

Trapped-ion string (N=8, axial modes, Coulomb-coupled)

IonSim is a 1D physics simulator demonstrating the collective dynamics of an ion string within a linear Paul trap. In the animation above, an initial momentum kick is applied to the leftmost ion, and the resulting motion is described by a superposition of normal modes. The glowing outer circles shrink and grow to reflect the velocity of each ion.

Mathematical Framework

1. Total Potential Energy

The simulation models a 1D chain of $N$ ions in a linear Paul trap. The dynamics are governed by a total potential, $V_{total}$, which is the sum of the harmonic trapping potential and the Coulomb interaction between ions:

$$V_{total} = \sum_{i=1}^{N} \frac{1}{2} M \omega_{ax}^2 z_i^2 + \sum_{i > j} \frac{e^2}{4\pi\epsilon_0 |z_i - z_j|}$$

2. Equilibrium and the Hessian

The simulator first finds the equilibrium positions, $z_{Eq}$, where the net force is zero using damped velocity Verlet integration. To find the collective vibrational modes, it calculates the Hessian Matrix ($H$):

$$H_{ij} = \left. \frac{\partial^2 V_{total}}{\partial z_i \partial z_j} \right|_{z_{Eq}}$$

3. Time Evolution

The simulator solves the eigenvalue problem $H \vec{v} = \omega^2 \vec{v}$ to find the frequencies, $\omega$, and vectors, $\vec{v}$. The resulting motion, $z_i(t)$, is a superposition of these modes:

$$z_i(t) = z_{Eq,i} + \sum_{m=1}^{N} \left[ A_m \cos(\omega_m t) + B_m \sin(\omega_m t) \right] v_{m,i}$$