Linear stability of a system

Every quantity levisim calculates for a MultiTrap - the optical and position spectra by all seven methods, and the steady-state covariance of levisim.multiphysics.covariance - belongs to the stationary state of the linearised Langevin equations \(\dot{\hat{\mathbf c}} = \mathbf A \hat{\mathbf c} + \hat{\mathbf c}_\text{in}\). That state exists only if every eigenvalue \(\lambda\) of the drift matrix \(\mathbf A\) has a negative real part. If one does not, the mode it belongs to grows as \(e^{\mathrm{Re}\,\lambda\, t}\) until the linearisation breaks down, while the spectra are still finite numbers that describe nothing physical (Eigenvalue stability of coupled resonators explains why). This page shows how to check, and which of the ready-made systems are unstable.

The stability report

Each MultiTrap diagonalises its drift matrix once, when it is built, and reports:

Attribute

Meaning

drift_eigenvalues

the eigenvalues \(\lambda\) of \(\mathbf A\), largest real part first [s⁻¹]; \(\lvert\mathrm{Im}\,\lambda\rvert\) is a normal-mode angular frequency and \(-\mathrm{Re}\,\lambda\) its amplitude damping rate

max_growth_rate

\(\max \mathrm{Re}\,\lambda\) [s⁻¹]: minus the damping of the least-damped mode if stable, the growth rate of the fastest-growing mode if not

is_stable

whether every \(\mathrm{Re}\,\lambda\) is below stability_tolerance (\(10^{-8}\) of the largest \(\lvert A_{ij}\rvert\), which absorbs round-off in the decay rates of dark modes)

least_stable_mode

\((\Omega, \mathrm{Re}\,\lambda)\) of the eigenvalue with the largest real part, \(\Omega = \lvert\mathrm{Im}\,\lambda\rvert\) in levisim’s angular units (divide by kHz)

unstable_modes

\((\Omega, \mathrm{Re}\,\lambda)\) of every growing mode, each conjugate pair once; empty if stable

mtrap.info prints the verdict, the largest \(\mathrm{Re}\,\lambda\) and every growing mode, and building an unstable system logs a WARNING from the same numbers:

from levisim.multiphysics.multitrap import MultiTrap
from levisim.multiphysics.utils.shelf import DEFAULT_cavity_kwargs, DEFAULT_gas_kwargs
from levisim.core.units import kHz

mtrap = MultiTrap(num_traps=2, Cartesian_axes_per_trap=2,
                  gas_kwargs=DEFAULT_gas_kwargs, cavity_kwargs=DEFAULT_cavity_kwargs)
mtrap.is_stable                                           # False
[(Ω / kHz, rate) for Ω, rate in mtrap.unstable_modes]    # [(134.92..., 2677.5...)]

steady_state_covariance raises for an unstable system. A parameter sweep should record max_growth_rate alongside each spectrum, as the demo notebook 06_parameter_sweeps does.

Which ready-made systems are stable

Generated by docs/guide/scripts/stability_table.py for every toy preset of levisim.multiphysics.utils.shelf (in the shapes the shelf and the tests build them) and for the physical defaults (built-in tweezers, with phases \(\phi_n\) = 0°, 90°, 20°), each with the shelf’s gas and cavity keyword arguments and with the constructor defaults. The number in brackets counts the growing normal modes. The phase sign convention does not enter the drift matrix, so the shelf’s tweezer_phase_sign_convention = -1 systems behave as the \(+1\) ones listed.

Shelf kwargs: DEFAULT_gas_kwargs (P = 1e-06 mbar) and DEFAULT_cavity_kwargs (L = 0.96 cm, finesse 40,000, Δ/2π = -450 kHz, κ/2π = 390.4 kHz). Constructor defaults: Gas() (P = 4e-03 mbar) and Cavity() (L = 1.223 cm, finesse 30,000, Δ/2π = -180 kHz, κ/2π = 408.5 kHz; in a physical MultiTrap the cavity is driven at the tweezer frequency). The mode column is the frequency of the least-damped (stable) or fastest-growing (unstable) normal mode.

System

shelf kwargs: verdict (growing modes)

max Re λ (s⁻¹)

mode |Im λ|/2π (kHz)

constructor defaults: verdict (growing modes)

max Re λ (s⁻¹)

mode |Im λ|/2π (kHz)

physical defaults, 1×2

stable

-2713

154.59

stable

-7709

155.23

physical defaults, 2×1

stable

-1924

154.22

unstable (1)

+474.2

152.10

physical defaults, 2×2

unstable (1)

+2678

134.92

unstable (1)

+9233

134.55

physical defaults, 1×3

stable

-0.003629

35.06

stable

-13.61

35.06

physical defaults, 3×2

unstable (1)

+3060

134.70

unstable (1)

+1.268e+04

134.28

FORTRAN_toy_params, 8×2

stable

-96.76

207.68

stable

-262

207.66

PHASE_EQUAL_toy_params, 1×2

stable

-411.1

306.36

stable

-1128

306.25

PHASE_EQUAL_toy_params, 2×2

stable

-350.3

306.54

stable

-1021

306.46

PHASE_EQUAL_toy_params, 3×2

stable

-320.3

306.61

stable

-948.5

306.53

PHASE_EQUAL_toy_params, 4×2

stable

-302.7

306.65

stable

-902.8

306.58

PHASE_DEPENDENT_toy_params, 1×2

stable

-411.1

306.36

stable

-1128

306.25

PHASE_DEPENDENT_toy_params, 2×2

stable

-264.8

306.47

unstable (2)

+1089

299.90

PHASE_DEPENDENT_toy_params, 3×2

unstable (2)

+625.8

290.70

unstable (2)

+1.76e+04

287.14

PHASE_DEPENDENT_toy_params, 4×2

unstable (3)

+8705

281.30

unstable (4)

+4.101e+04

276.49

OFF_NODE_toy_params_pairs, 1×1

stable

-2.978e+04

298.88

stable

-2.869e+04

305.83

OFF_NODE_toy_params_pairs, 2×1

unstable (1)

+616.6

304.38

unstable (1)

+6231

302.69

OFF_NODE_toy_params_pairs, 1×2

stable

-607.2

304.32

stable

-809.6

304.16

OFF_NODE_toy_params_pairs, 2×2

unstable (1)

+574

301.04

unstable (2)

+7935

297.66

OFF_NODE_toy_params_pairs, 3×2

unstable (1)

+575.7

294.03

unstable (2)

+1.177e+04

289.76

OFF_NODE_toy_params_pairs, 1×3

unstable (1)

+4.409e+05

0.00

unstable (1)

+4.121e+05

0.00

OFF_NODE_toy_params_pairs, 2×3

unstable (3)

+5.354e+05

0.00

unstable (3)

+4.665e+05

38.75

OFF_NODE_toy_params_pairs, 3×3

unstable (2)

+6.392e+05

0.00

unstable (2)

+5.506e+05

50.27

OFF_NODE_toy_params_equal_spacing, 1×1

stable

-2.111e+04

243.64

stable

-3.628e+04

249.51

OFF_NODE_toy_params_equal_spacing, 2×1

stable

-2.42e+04

293.76

stable

-2.948e+04

250.28

OFF_NODE_toy_params_equal_spacing, 1×2

stable

-2.444e+04

293.78

stable

-3.249e+04

300.51

OFF_NODE_toy_params_equal_spacing, 2×2

stable

-1.007e+04

294.48

stable

-6509

267.61

OFF_NODE_toy_params_equal_spacing, 3×2

stable

-4053

285.89

unstable (1)

+4167

259.57

OFF_NODE_toy_params_equal_spacing, 1×3

unstable (1)

+4.085e+05

0.00

unstable (1)

+3.817e+05

0.00

OFF_NODE_toy_params_equal_spacing, 2×3

unstable (2)

+5.074e+05

0.00

unstable (1)

+4.471e+05

37.50

OFF_NODE_toy_params_equal_spacing, 3×3

unstable (2)

+6.109e+05

0.00

unstable (1)

+5.313e+05

49.53

OFF_NODE_toy_params_equal_spacing_simple, 1×1

stable

-2.978e+04

298.88

stable

-2.869e+04

305.83

OFF_NODE_toy_params_equal_spacing_simple, 2×1

stable

-3202

300.21

unstable (1)

+2581

297.41

OFF_NODE_toy_params_equal_spacing_simple, 1×2

stable

-4447

300.18

stable

-6091

298.79

OFF_NODE_toy_params_equal_spacing_simple, 2×2

stable

-2092

293.15

unstable (1)

+6631

289.68

OFF_NODE_toy_params_equal_spacing_simple, 3×2

stable

-1874

294.71

unstable (1)

+7759

275.48

OFF_NODE_toy_params_equal_spacing_simple, 1×3

unstable (1)

+4.409e+05

0.00

unstable (1)

+4.116e+05

0.00

OFF_NODE_toy_params_equal_spacing_simple, 2×3

unstable (2)

+5.328e+05

0.00

unstable (2)

+4.645e+05

38.74

OFF_NODE_toy_params_equal_spacing_simple, 3×3

unstable (2)

+6.313e+05

0.00

unstable (2)

+5.465e+05

50.42

Three kinds of instability appear. With two or more particles whose motions are close in frequency and whose tweezer phases differ (the physical 2×2 and 3×2 defaults, PHASE_DEPENDENT with three or four particles, OFF_NODE_toy_params_pairs with two or more), the cavity-mediated coupling has a non-reciprocal part \(\propto \sin(\phi_2 - \phi_1)\) that anti-damps one collective mode near the mechanical frequencies. With three axes per particle off the node (every OFF_NODE preset in \(N\times 3\)), the strong \(z\) coupling toy_gz = 170 kHz pulls the slow \(z\) motion (\(\Omega_z = \Omega_x/10 \approx\) 30 kHz) through zero frequency: the optical spring exceeds the trap stiffness and the eigenvalue becomes real and positive (\(\mathrm{Im}\,\lambda = 0\)), a static instability rather than a growing oscillation. And the constructor-default cavity, closer to resonance (\(\Delta/2\pi\) = -180 kHz instead of -450 kHz), couples the motions more strongly, so that systems which are stable with the shelf’s cavity (the physical 2×1, PHASE_DEPENDENT 2×2, and several OFF_NODE spacings) become unstable with it.

The phase window of the default 2×2 system

Two particles from the physical defaults, each moving in \(x\) and \(y\), with the second tweezer’s phase \(\phi_2\) swept and \(\phi_1 = 0\). The window repeats every 180°: adding 180° to \(\phi_2\) flips the sign of the couplings \(G_{j_2} \propto e^{i\phi_2}\) of the second particle, which is undone by relabelling its operators \(\hat b_{j_2} \to -\hat b_{j_2}\), a similarity transformation of \(\mathbf A\) that leaves its eigenvalues unchanged.

  • shelf kwargs: unstable for 54.40° < φ2 < 125.60° and 234.40° < φ2 < 305.60° (φ1 = 0°, sampled every 0.25° over 0-360° and refined by root finding); at φ2 = 0°: max Re λ = -259.9 s⁻¹ on the mode at 136.86 kHz; at φ2 = 30°: max Re λ = -294 s⁻¹ on the mode at 136.53 kHz; at φ2 = 90°: max Re λ = +2678 s⁻¹ on the mode at 134.92 kHz. The largest growth rate, +2678 s⁻¹, is at φ2 = 90.00°.

  • constructor defaults: unstable for 35.57° < φ2 < 144.43° and 215.57° < φ2 < 324.43° (φ1 = 0°, sampled every 0.25° over 0-360° and refined by root finding); at φ2 = 0°: max Re λ = -923.6 s⁻¹ on the mode at 136.83 kHz; at φ2 = 30°: max Re λ = -653.2 s⁻¹ on the mode at 136.09 kHz; at φ2 = 90°: max Re λ = +9233 s⁻¹ on the mode at 134.55 kHz. The largest growth rate, +9233 s⁻¹, is at φ2 = 90.00°.

The README’s quickstart therefore sets \(\phi_2 = 30^\circ\) rather than the built-in 90°.