An ion trap is a device that uses a spatially inhomogeneous electric field to store, separate, and study the quantum properties of charged particles.

Part A. Theoretical background

Here is the simplest equation for the electric potential in which a particle might be held
$\DeclareMathOperator{\Grad}{grad} \DeclareMathOperator{\Div}{div} \Phi = \frac{U}{2r_0^2} \left( \alpha x^2 + \beta y^2 + \gamma z^2 \right),$
where $U$ is the voltage in the setup, $r_0$ is a typical size of the field inhomogeneity, $\alpha$, $\beta$, $\gamma$ are dimensionless constants.

This potential is created in a vacuum by external electrodes, therefore, it should satisfy the Poisson equation $\Delta \Phi = 0$ (we can substitute $\vec{E} = - \Grad \Phi$ in Maxwell's equation $\Div \vec{E} = \rho / \varepsilon_0$ for vacuum, i.e. for $\rho=0$), where $\Delta$ is the Laplacian. The Laplacian of $\Phi$ is defined by:
$\Delta \Phi = \frac{\partial^2 \Phi}{\partial x^2} + \frac{\partial^2 \Phi}{\partial y^2} +\frac{\partial^2 \Phi}{\partial z^2}.$

A1 From the Poisson equation, obtain an expression which establishes a relationship between the coefficients $\alpha$, $\beta$ and $\gamma$.

The above expression shows that it's impossible to create such a static potential where the particle is stable in all three directions. This problem is solved by adding an oscillating with radio frequency electric field to the static field:
$\Phi = \frac{U}{2r_0^2} \left( \alpha x^2 + \beta y^2 + \gamma z^2 \right) + \frac{V}{2r_0^2} \cos( \omega_\text{rf} t ) \left( \tilde{\alpha} x^2 + \tilde{\beta} y^2 + \tilde{\gamma} z^2 \right),$
where $V$ is the amplitude of the AC voltage in the setup, $\tilde{\alpha}$, $\tilde{\beta}$, $\tilde{\gamma}$ are dimensionless constants.

It is important, that $\omega_\text{fr}$ the frequency of the radio band, since this frequency range corresponds to wavelengths much larger than the characteristic size of the ion trap ($r_0 \approx 1~\text{mm}$) and therefore, wave effects can be neglected (in particular, this generally allows us to introduce a potential for an electric field).

A2 Calculate the maximum frequency $\omega_\text{fr,max}$ for which the wavelength $\lambda$ is $n=100$ times greater than $r_0$.

So, if $\omega_\text{fr} < \omega_\text{fr,max}$ then the coefficients $\tilde{\alpha}$, $\tilde{\beta}$ and $\tilde{\gamma}$ satisfy the same equation, as the coefficients $\alpha$, $\beta$ and $\gamma$. The motion along each axis is independent and can be described by the Mathieu equation:
$\frac{d^2 x}{d \xi^2} + (a_x - 2q_x \cos 2\xi)x = 0, \tag{1}$
where $\xi$ is a dimensionless variable which depends on the time, $a_x$ and $q_x$ are dimensionless constants.

A3 Using the equation $\DeclareMathOperator{\Grad}{grad} \vec{E} = - \Grad \Phi$, find the $x$-component of the electric field $\vec{E}$, in which the motion of the ion occurs.

Consider that the only force acting on the ion is the force of interaction with an electric field $\vec{E}$.

A4 Write an expression for $\xi$, $a_x$ and $q_x$ using time $t$ and parameters of the system: voltage $U$, radio frequency $\omega_\text{rf}$, the amplitude $V$ of the AC voltage, mass $m$ of the ion, it's charge $Ze$, typical size of the setup $r_0$ and coefficients $\alpha$ and $\tilde{\alpha}$.

Solutions of the Mathieu equation for different constants $a_x$ and $q_x$ can be stable and unstable. You can study this issue yourself with the program Mathieu.py by setting $a_x$ and $q_x$ in the code (lines 7 and 8).

This program implements the simplest numerical integration (Euler's method). During the program cycle, the variable $\xi$ runs through the value from $0$ to $\xi_\text{max}$ in increments of $\Delta\xi$. According to the known values of $x$, $\xi$ the value of $d^2 x / d\xi^2$ is calculated with respect to the equation (1) at each iteration of the loop. Next, the approximation formulas
$\Delta \left( \frac{d x}{d \xi} \right) = \frac{d^2 x}{d \xi^2} \Delta \xi, \quad \Delta x = \frac{d x}{d \xi} \Delta \xi,$
are used to calculate the values $x$ and $d x / d \xi$ for the next step of the program.

An example of a stable (left) and unstable (right) solution of the Mathieu equation for different parameters $a_x$, $q_x$. The plot on the left: $a_x=0.5, q_x=1.31$, the plot on the right $a_x=0.5,q_x=1.32$. As can be seen, the nature of the dependence $x(\xi)$ changes qualitatively even with a small transition beyond the region of stability.

To study the stability for a large number of pairs of parameters $a_x$ and $q_x$, we will develop the following criterion for the automatic analysis. We will consider the solution stable if the maximum value of $x_{\text{max},1/2}$ reached in half of the simulation time differs less than $10\%$ from the maximum value of $x_\text{max}$ during the entire simulation time.

This algorithm is implemented in the program Mathieu-stab.py. In 31-37 lines you can define the ranges for $a_x$ and $q_x$ to study the stability. If you don't have programming skills in Python it is highly recommended to run this program ones with high resolution for both axes (it may possibly take several minutes) and manually write down some coordinates of the the stability region boundaries. Our criteria of stability are not perfect, so the graph may have some artifacts. You can manually precisely examine any region of parameters with the Matheiu.py.

Note that replacing $q_x\to-q_x$ does not affect the stability of the solution. This can be shown as follows: since $-q_x \cos (2\xi) = q_x \cos (-\pi +2 \xi)$, the simultaneous replacement of $q_x\to -q_x$, $\xi \to \xi - \pi/2$ does not change the form of the equation. It only changes the initial conditions, so it does not affect the stability of the solution.

A5 Qualitatively plot the subset of $a_x$ and $q_x$ parameter values that result in the stable motion along the $x$-axis. Consider the range $a_x \in [-3;\: 7]$ and $q_x \in [0; \:5]$.

Part B. Common implementations

The first common implementation of an ion trap is a cylindrical symmetric 3D RF trap. This trap has the geometry shown in the figure and the following selection of constants corresponds to this geometry.

B1 Qualitatively plot the subset of $U$ and $V$ parameter values that result in stable ion motion in the 3D RF trap. Calculate the values of the characteristic points of the stability region for $\omega_\text{rf} = 3\cdot 10^7~\text{s}^{-1}$, $r_0=1~\text{mm}$ and the ions of rubidium $\rm ^{87}Rb^+$. Consider that the generator in the lab allows you to get this range of voltage values $|U| \in [0; \: 200]~\text{V}$ and $|V| \in [0; \: 400]~\text{V}$.

The second common implementation of an ion trap is the linear RF trap, which is used for mass spectrometry. This trap has the geometry shown in the figure and the following set of constants corresponding to it:

B2 Qualitatively plot the subset of $U$ and $V$ parameter values that result in different stability for $\rm ^{87}Rb^+$ and $\rm ^{86}Rb^+$ ions. Consider the case where the $\rm ^{87}Rb^+$ ions fly through the trap and the $\rm ^{86}Rb^+$ ions are ejected from the trap. Calculate the values of the characteristic points of the stability region for $\omega_\text{rf} = 3\cdot 10^7~\text{s}^{-1}$ and $r_0=1~\text{mm}$.