levisim.multiphysics.multitrap¶
Quantum linear theory of several levitated particles coherently scattering into one cavity (MultiTrap)
MultiTrap is assembled from a base class and three mixins, one per family of QuantumLinearTheoryMethod, each in its own module of this package:
base.MultiTrapBase - builds the system (trap physics or toy parameters, dimensions, noise correlations), prints its information, owns the spectrum entry points, and dispatches each method to its mixin (the light and position noise vectors call each other across the mixins, so the dispatch cannot live in any one of them)
linear_amplifier_mixin.LinearAmplifierMixin - methods 1-3: drift matrix, T(ω), c(ω), TNT arrays
hybridisation_mixin.HybridisationMixin - methods 4-5: derangement and hybridisation matrices, deranged determinant and adjugate (numerical inversion or power series), x1D noise vector
analytic_mixin.AnalyticMixin - methods 6-7: gbar, D(n), P, M_norm, the 𝔽 / 𝔽̄ transduction functions and the closed-form noise vectors
omega_model.ΩModel - the toy-parameter mechanical frequency models
Import MultiTrap and ΩModel from here, as before the split.
- class levisim.multiphysics.multitrap.MultiTrap(**kwargs)[source]¶
Bases:
LinearAmplifierMixin,HybridisationMixin,AnalyticMixin,MultiTrapBaseClass to calculate Quantum Linear Theory for a multi-particle cavity trap
The calculations of the seven QuantumLinearTheoryMethod values come from the three mixins (LinearAmplifierMixin, HybridisationMixin, AnalyticMixin); the construction, the spectrum entry points and the method dispatch from MultiTrapBase. See the package docstring of levisim.multiphysics.multitrap for what lives where.
- D(n, ω)¶
Phase-dependent collective coupling and mechanical susceptibility rate
D(0) = Gᵀ·W·G*, D(2) = Gᵀ·W·G, D(-2) = G*ᵀ·W·G* (see `analytic_kernel`)
which without intra-bead coupling (W = diag(μ)) are D(0) = Σ gjn²·μjn and D(±2) = Σ gjn²·μjn·exp(±2iθjn). Only n = 0, ±2 appear in the closed form. [complex 2π·Hz]
- FFQ(ω)¶
Transduction function to collective mode Q† from annihilation operator of collective thermal noise mode Q_TOT
Q† ∝ FFQ·Q_TOT [complex]
- FFQ_dag(ω)¶
Transduction function to collective mode Q† from creation operator of collective thermal noise mode Q_TOT†
Q† ∝ FFQ_dag·Q_TOT† [complex]
- FFa(ω)¶
Transduction function to collective mode Q†
Q† ∝ FFa·a_in i.e. from annihilation operator of cavity input noise photons a_in [complex 1/√(2π·Hz)]
- FFa_dag(ω)¶
Transduction function to collective mode Q† from creation operator of cavity input noise photons a_in†
Q† ∝ FFa_dag·a_in† [complex 1/√(2π·Hz)]
- FQ(ω)¶
Transduction function to collective mode Q from annihilation operator of collective thermal noise mode Q_TOT
Q ∝ FQ·Q_TOT [complex]
- FQ_dag(ω)¶
Transduction function to collective mode Q from creation operator of collective thermal noise mode Q_TOT†
Q ∝ FQ_dag·Q_TOT† [complex]
- Fa(ω)¶
Transduction function to collective mode Q from annihilation operator of cavity input noise photons a_in
Q ∝ Fa·a_in [complex 1/√(2π·Hz)]
- Fa_dag(ω)¶
Transduction function to collective mode Q from creation operator of cavity input noise photons a_in†
Q ∝ Fa_dag·a_in† [complex 1/√(2π·Hz)]
- M_norm(ω)¶
Normalisation function for transducing all input noises into the collective modes Q, Q†
M_norm = 1 + ηm·D(0) - ξC·P, i.e. the determinant of the 2×2 light-only problem. NOTE: this used to show a larger relative difference than the alternative forms below because P was evaluated as D(0)² - D(2)·D(-2), which cancels catastrophically on a mechanical resonance (e.g. 7.8e-10 relative error at ω = Ωy2 for the 2×2 PHASE_DEPENDENT toy system). The alternative forms sum K(ω), which is already built from sin² of phase differences. With P from analytic_kernel the error is at machine precision. [complex]
- M_norm_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_2_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_3(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_3_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_4(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_4_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_5(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_5_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_6(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_6_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_7(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_7_2(ω)¶
Alternative formulation of M_norm [complex]
- M_norm_N(option, ω)¶
Alternative formulation of M_norm [complex]
- M_norm_N_2(option, ω)¶
Alternative formulation of M_norm [complex]
- P(ω)¶
Phase-dependent function that equals zero when all phases are equal
P = D(0)² - D(2)·D(-2), evaluated in the cancellation-free form 2i·hᵀ·I·h̃ (see analytic_kernel). Without intra-bead coupling this equals 4·Σ_(j<k) gj²·μj·gk²·μk·sin²(θj - θk), i.e. P_via_Pjk and P_via_Pj; those alternative forms (and M_norm_2 … M_norm_N_2, and the K/H/U/N functions of Dimension) do NOT include intra-bead coupling. [complex (2π·Hz)²]
- P_via_Pj(ω)¶
Alternative definition of P as a sum of contributions from each dimension [complex (2π·Hz)²]
- P_via_Pj_2(ω)¶
Alternative definition of P as a sum of contributions from each dimension [complex (2π·Hz)²]
- P_via_Pjk(ω)¶
Alternative definition of P as a sum of contributions from each pair of dimensions
Only pairs coupling to different quadratures contribute: pairs with equal coupling phases θ (x and y on the same bead, or any two x/y dimensions in tweezers of equal phase) give sin²(0) = 0 exactly and are skipped. Pairs on the SAME bead still contribute when one of them is z, since z couples to the phase quadrature (θz - θx = π/2). [complex (2π·Hz)²]
- Pjk(dim_pair, ω)¶
Component of P contributed by a given pair of dimensions [complex (2π·Hz)²]
- TOY_PARAMETER_KEYS = frozenset({'P', 'T', 'gjn_dict', 'm', 'r', 'toy_gx', 'toy_gxy', 'toy_gxz', 'toy_gy', 'toy_gyz', 'toy_gz', 'toy_Γ', 'use_Γ_formula', 'vth', 'Γjn_dict', 'Ω_model', 'Ωz_to_Ωx_multiplier', 'ρ', 'φ_even_n', 'φ_odd_n', 'φn_dict'})¶
- T_matrix(ω)¶
The transformation matrix of input noises into operator values
c(ω) ≡ T(ω) @ c_in(ω) with T(ω) ≡ (-iω·I - A(ω))⁻¹ (where I is the identity matrix)
Derived from the Fourier-transformed drift matrix relation
dc(t)/dt = A(t) @ c(t) + c_in(t) -iω.c(ω) = A(ω) @ c(ω) + c_in(ω) c(ω) = (-iω·I - A(ω))⁻¹ @ c_in(ω)
- all_position_power_spectra(method, zpf_scaled=True)¶
Invert the derangement matrix D to get the hybridisation matrix H This solves for the multi-dimensional hybridised position vector, x in terms of the 1D noise vectors, x1D
D @ x = x1D H ≡ D⁻¹ x = H @ x1D
- analytic_cavity_output_light_noise_vectors(ω)¶
The intracavity light noise vectors a(ω), a†(ω) of ANALYTIC_CAVITY_OUTPUT, by reversing the input-output relations a = (a_out - a_in)/(-√κ) on analytic_output_light_noise_vectors
- analytic_hybridisation_matrix(ω)¶
The hybridisation matrix D⁻¹ (inverse of derangement_matrix) from the closed form
The derangement matrix is D = diag(μjn/Mjn)·(W⁻¹ - iC), so D⁻¹ = H·diag(Mjn/μjn) with H from analytic_response_matrix; it equals np.linalg.inv(self.derangement_matrix(ω)) without inverting an N×N matrix. Ordered as self.labels on both axes. [complex]
- analytic_hybridised_positions(method, ω)¶
All hybridised position noise vectors from the analytic closed form
Each dimension’s thermal noise reaches the positions through H·diag(1/μ) (H from analytic_response_matrix), and the cavity input noise through the light force
q = W·i(G*·a + G·a†) per unit a_in, a_in†
written so that the resonant terms of D(0) and D(±2) do not have to cancel numerically. The positions are the same for both analytic methods (ANALYTIC_INSIDE_CAVITY and ANALYTIC_CAVITY_OUTPUT share this closed form). Rows are ordered as self.labels. [complex 1/√(2π·Hz)]
- analytic_inside_cavity_light_noise_vectors(ω)¶
The intracavity light noise vectors a(ω), a†(ω) of ANALYTIC_INSIDE_CAVITY, from the transduction functions Fa, Fa_dag, FFa, FFa_dag and the thermal brackets of analytic_kernel
- analytic_kernel(ω)¶
Frequency-dependent building blocks shared by every analytic-method function at ω
Eliminating the cavity field from the quantum Langevin equations
a(ω) = χC(ω)·[ i·Σ Gjn·qjn(ω) + √κ·a_in] a†(ω) = χC*(-ω)·[-i·Σ Gjn*·qjn(ω) + √κ·a_in†] qjn(ω) = μjn(ω)·[i(Gjn*·a + Gjn·a†) + ...] + √Γjn·Q_THERMjn(ω)
leaves, for the positions q (ordered as self.labels),
(W⁻¹ - iC)·q = sources, C = iχC·G*Gᵀ - iχC*·GG† (rank 2: the two light channels)
where W = (diag(1/μ) - i·g_intra)⁻¹ is the mechanical response matrix, μjn = χjn(ω) - χjn*(-ω), and g_intra holds the direct mechanical couplings gxy, gxz, gyz between the dimensions of the same bead (intra_bead_coupling_matrix). W is block diagonal per bead (W = diag(μ) when a bead’s dimensions are uncoupled), symmetric, and only needs one (axes × axes) inverse per bead - the closed form never inverts an N×N matrix. Each thermal drive enters through B⁻¹ = W·diag(1/μ). Because C has rank 2, the cavity field only ever sees three collective response sums
D(0) = Gᵀ·W·G*, D(2) = Gᵀ·W·G, D(-2) = G*ᵀ·W·G*
and the determinant of the remaining 2×2 light-only problem is the normalisation
M_norm = 1 + ηm·D(0) - ξC·P, P = D(0)² - D(2)·D(-2).
NOTE: P is NOT evaluated as D(0)² - D(2)·D(-2). When the frequency grid hits a mechanical resonance exactly,
|gjn²·μjn|~ 1e13 rad/s for the toy parameters, and that subtraction loses~ε·|D(0)|², i.e. ~1e-9 of P. With unequal tweezer phases this error was then amplified~|Mjn| ~ 1e7in the resonant dimension’s position (where the thermal drive and the cavity backaction nearly cancel), which was the 0.2-0.6% disagreement of the analytic position PSDs with LAM. The identityP = 2i·hᵀ·I·h̃, h = W·G, h̃ = W·G*, I = `coupling_quadrature_overlap_matrix`
involves no such subtraction, since I is exactly zero between dimensions coupling to the same quadrature. The same identity gives the brackets multiplying each dimension’s thermal noise in a and a† without cancellation:
F_Q·G + F_Q†·G* → B⁻ᵀ·[G - 2i·χC*(-ω)·Iᵀ·h ] FF_Q·G + FF_Q†·G* → B⁻ᵀ·[G* - 2i·χC(ω)·Iᵀ·h̃]
(with g_intra = 0, B⁻¹ = 1 and these are exactly the brackets of PRR 8).
The result for the last ω requested is cached, since the analytic noise vectors call D, P and M_norm several times per frequency. [dict of complex arrays and scalars]
- analytic_output_light_noise_vectors(ω)¶
The output light noise vectors a_out(ω), a_out†(ω) of ANALYTIC_CAVITY_OUTPUT, in closed form
- analytic_response_matrix(ω)¶
Closed-form mechanical response matrix H ≡ (W⁻¹ - iC)⁻¹ of all dimensions, including the cavity
(see analytic_kernel for W and C). The off-bead blocks follow from the Woodbury identity
H = W + W·Φ·W / M_norm, Φ = iC - 4ξC·I·W·I
but on a bead’s own block that sum cancels almost completely when one of its dimensions is driven on resonance (
|W| ~ |μ|is then up to ~1e7 times larger than the result). The on-bead blocks are therefore taken from the Schur complement instead,H_nn = (W_n⁻¹ - Φ_nn^(¬n) / M_norm^(¬n))⁻¹
where ^(¬n) means the same quantity built from all the OTHER beads only, with Φ_nn^(¬n) = iC_nn - 4ξC·I_n,¬n·W_¬n·I_¬n,n. This is one small (axes × axes) inverse per bead, so the closed form never inverts an N×N matrix. For a single uncoupled dimension it reduces to H_jj = μj·M_norm^(¬j)/M_norm: the dimension’s susceptibility, renormalised by the cavity with and without it. Ordered as self.labels on both axes. [complex (2π·Hz)⁻¹]
- analytic_thermal_noise_vector(coefficients, ω)¶
Noise vector Σ cjn·√Γjn·(χjn(ω)·bjn_in + χjn*(-ω)·bjn_in†) for per-dimension coefficients cjn
coefficients is ordered as self.labels; the light-noise entries (a_in, a_in†) are left at zero for the caller to fill. [complex 1/√(2π·Hz) × units of the coefficients]
- c_noise_vector(ω)¶
Calculates the vector of operators, without summing all the noises together
c ≡ (a, a†, ..., bjn, bjn†, ...)^⊤ c(ω) = T(ω) @ c_in(ω)
i.e. where each operator is a noise vector of all the input noises
- property coupling_phases¶
Phase θjn of each dimension’s complex light-mech coupling, Gjn = gjn·exp(iθjn)
θjn = Φjn_CS + φn, where Φjn_CS = 0 for x, y (amplitude quadrature) and π/2 for z (phase quadrature), and φn is the phase of the tweezer trapping bead n. This does not depend on tweezer_phase_sign_convention: that sign multiplies Dimension.φ_coupling and multiplies it again inside Gjn = gjn·exp(sign·i·φ_coupling), so it cancels (see Dimension.φ_coupling). Ordered as self.labels. [rad]
- property coupling_quadrature_overlap_matrix¶
Real antisymmetric matrix I_lp = Im(Gl*·Gp) = gl·gp·sin(θp - θl) over all pairs of dimensions
It measures how far apart (in quadrature angle) two dimensions couple to the cavity light, and is the only way the coupling phases enter the cavity-mediated terms that can cancel (P and the thermal transduction coefficients). It is evaluated from the phase difference so that it is EXACTLY zero for pairs that couple to the same quadrature (equal tweezer phases, or x and y on the same bead) - which is what keeps those terms free of catastrophic cancellation when one dimension is driven on resonance. Ordered as self.labels on both axes. [(2π·Hz)²]
- deranged_adjugate_matrix_entry(ij, ω)¶
The value of given adjugate entry of the derangement matrix at a given frequency
- deranged_determinant(ω)¶
The value of the deranged determinant at a given frequency
- derangement_matrix(ω)¶
The matrix that transforms x to x1D
x = R @ x + x1D D @ x = x1D D = I - R
Invert it to solve the fully hybridised position vector using the 1D noise vectors
x = D⁻¹ @ x1D
- property drift_eigenvalues¶
Eigenvalues λ of the drift matrix A, sorted by decreasing real part (largest growth first)
Re λ is minus the amplitude damping rate of the normal mode,
|Im λ|its angular frequency. [1/s, complex] (divide Im λ by kHz for the frequency in kHz)
- property g_RMS¶
Root-mean-square of all the dimensions’ light-mech coupling rates [2π·Hz]
- property gbar¶
The total coupling rate for the phase-dependent collective modes Q,Q† [2π·Hz]
- heterodyne_noise_vector(method, ω)¶
The output light annihilation operator, whose PSD levisim calls the heterodyne spectrum
S_het(ω) ≡ S_aout,aout(ω) =
〈|a_out(ω)|²〉, as in PRR 8, Eq. (5) and below, i.e. the spectrum in the frame of the local oscillator (Ωhet = 0). NOTE: this is a single PSD, not a sum of cross-spectral densities. A real heterodyne measurement with the local oscillator detuned by Ωhet records the two sidebands S_aout,aout(Ωhet - ω) + S_aout†,aout†(ω + Ωhet) (PRR 8, Sec. IV): a sum of two PSDs at shifted frequencies, which is not the PSD of any single noise vector at ω. That shift is not applied anywhere in levisim; cavity.Ωhet is currently unused. [1/√Hz]
- heterodyne_spectrum(method)¶
Calculates the heterodyne spectrum of output light from the cavity, S_het
S_het(ω) = S_aout,aout(ω) = 〈|a_out(ω)|²〉(see heterodyne_noise_vector)
- homodyne_and_heterodyne_noise_vectors(method, ω)¶
Returns both homodyne and heterodyne noise vectors (in order to only call output_light_noise_vectors once)
Identical to (homodyne_noise_vector, heterodyne_noise_vector). [1/√Hz, 1/√Hz]
- homodyne_and_heterodyne_spectra(method)¶
Calculates the homodyne and heterodyne spectra of output light from the cavity together
S_hom(ω) = 〈|h(ω)|²〉, S_het(ω) = 〈|a_out(ω)|²〉(see homodyne_noise_vector and heterodyne_noise_vector)
- homodyne_noise_vector(method, ω)¶
The homodyne quadrature of the output light, defined by the homodyne angle of the cavity
h(ω) = a_out(ω)·exp(iθ) + a_out†(ω)·exp(-iθ) = A_out(ω)·cos(θ) + P_out(ω)·sin(θ) (see homodyne_quadrature), θ = cavity.θhom [1/√Hz]
- homodyne_quadrature(a_out_hat, a_out_dag)¶
The output-light quadrature selected by the homodyne angle θ = cavity.θhom
h(ω) = A_out(ω)·cos(θ) + P_out(ω)·sin(θ) = a_out(ω)·exp(iθ) + a_out†(ω)·exp(-iθ) with A_out = a_out + a_out† and P_out = i(a_out - a_out†) (the phase quadrature convention used in Tania’s derivation; the opposite sign i(a† - a) would mirror θ → -θ). [same units as the noise vectors]
- homodyne_spectrum(method)¶
Calculates homodyne spectrum of output light from the cavity, S_hh
h = a_out·exp(iθ) + a_out†·exp(-iθ) = A_out·cos(θ) + P_out·sin(θ)
θ = homodyne angle (see homodyne_quadrature)
- hybridisation_function_value(label_jn, label_km, ω)¶
The hybridisation function Rjn,km(ω): the response of dimension jn to dimension km, via the cavity (on- and off-bead) and the mech-mech coupling gjk (on-bead only) [complex ·]
- hybridisation_function_values(ω)¶
All N² - N hybridisation functions at a given frequency, as {(label_jn, label_km): Rjk}
NOTE: the power series evaluate the same N² - N functions in every one of their terms (n!·n factors for the determinant of order n), so they are computed once per frequency here and looked up by hybridisation_term_value. Each value comes from the same hybridisation_function_value call as before, so the sums are bit-identical. [complex ·]
- hybridisation_hybridised_positions(method, ω)¶
All hybridised position noise vectors x = D⁻¹·x1D, with D⁻¹ from hybridisation_matrix
Used by NUMERICAL_HYBRIDISATION and POWER_SERIES_HYBRIDISATION. Rows are ordered as self.labels.
- hybridisation_matrix(method, ω)¶
The matrix that transforms the column vector of 1D position operators (as noise vectors) to the column vector of fully hybridised position operators (as noise vectors) i.e. the inverse of the derangement matrix
x = D⁻¹ @ x1D via x = R @ x + x1D D @ x = x1D D = I - R
- hybridisation_term_value(term, ω, R_values=None)¶
The value of a hybridisation term (a signed product of hybridisation functions) at a given frequency
R_values is an optional table from hybridisation_function_values(ω); without it each hybridisation function is evaluated directly. [complex ·]
- hybridised_position_noise_vector(label, method, ω)¶
The noise vector for the specific hybridised position operator qjn
qjn(ω) = bjn(ω) + bjn†(ω)
- hybridised_positions(method, ω)¶
Column vector of the solutions to the QLT equations of motion for each dimension’s position Each entry in the column vector is a noise vector
Dispatches to linear_amplifier_hybridised_positions (LINEAR_AMPLIFIER_MODEL and HYBRID_LINEAR_AMPLIFIER_MODEL), hybridisation_hybridised_positions (NUMERICAL_HYBRIDISATION and POWER_SERIES_HYBRIDISATION) and analytic_hybridised_positions (both analytic methods). TNT_LINEAR_AMPLIFIER_MODEL has no per-frequency noise vectors and raises ValueError.
- property info¶
Prints information on the MultiTrap instance
- property info_per_dimension¶
Prints information on each Dimension instance
- property info_per_trap¶
Prints information on each Trap instance
- property info_str¶
String describing the MultiTrap instance
- property intra_bead_coupling_matrix¶
Symmetric matrix of the direct mechanical couplings between dimensions of the same bead
Entry (j, k) is gxy, gxz or gyz when dimensions j and k belong to the same bead, and zero otherwise (levisim has no direct mechanical coupling between different beads), matching the mech-mech terms of the drift matrix. Ordered as self.labels on both axes. [2π·Hz]
- property is_stable¶
every Re λ ≤ stability_tolerance [bool]
- Type:
Whether the linearised dynamics have a steady state
- property least_stable_mode¶
its angular frequency Ω =
|Im λ|and its growth rate (positive) or minus its damping rate (negative) [2π·Hz, 1/s]- Type:
(Ω, Re λ) of the normal mode with the largest Re λ
- light_noise_vectors(method, ω)¶
The noise vectors for the annihilation and creation operators of photons in the shared light mode inside the cavity a(ω), a†(ω)
Dispatches to linear_amplifier_light_noise_vectors (LINEAR_AMPLIFIER_MODEL), analytic_inside_cavity_light_noise_vectors (ANALYTIC_INSIDE_CAVITY), analytic_cavity_output_light_noise_vectors (ANALYTIC_CAVITY_OUTPUT), and otherwise light_noise_vectors_from_positions.
- light_noise_vectors_from_positions(method, ω)¶
The intracavity light noise vectors a(ω), a†(ω) from the hybridised positions
a(ω) = χC(ω) [ i ∑ Gjn·qjn(ω) + √κ·a_in] a†(ω) = χC*(-ω)[-i ∑ Gjn*·qjn(ω) + √κ·a_in†]
(the creation operator couples through the conjugate Gjn*, since qjn is Hermitian), used by the methods that solve for the positions first: HYBRID_LINEAR_AMPLIFIER_MODEL, NUMERICAL_HYBRIDISATION and POWER_SERIES_HYBRIDISATION.
- linear_amplifier_hybridised_positions(ω)¶
All hybridised position noise vectors qjn(ω) = bjn(ω)† + bjn(ω) from the LAM solution c(ω)
Used by LINEAR_AMPLIFIER_MODEL and HYBRID_LINEAR_AMPLIFIER_MODEL. Rows are ordered as self.labels.
- linear_amplifier_light_noise_vectors(ω)¶
The intracavity light noise vectors a(ω), a†(ω) of the LINEAR_AMPLIFIER_MODEL
Goes straight to the LAM solution for the light field operators, which already accounts for the noises a_in, a_in† (the first two rows of c(ω) = T(ω)·c_in(ω)).
- property max_growth_rate¶
negative (minus the damping of the least-damped mode) for a stable system, positive (the growth rate of the fastest-growing mode, whose amplitude grows as exp(Re λ·t)) for an unstable one [1/s]
- Type:
Largest real part of the drift-matrix eigenvalues, max Re λ
- noise_vector_to_power_spectrum(noise_vector)¶
Convert a noise vector into its power spectrum
- noise_vectors_to_cross_spectrum(noise_vector_A, noise_vector_B)¶
Convert two noise vectors into their cross spectrum
- output_light_noise_vectors(method, ω)¶
The noise vectors for the annihilation and creation operators of photons leaving the cavity accounted for via input-output theory
a_out(ω) = -√κ·a(ω) + a_in(ω) a_out†(ω) = -√κ·a†(ω) + a_in†(ω)
ANALYTIC_CAVITY_OUTPUT has its own closed form (analytic_output_light_noise_vectors); every other method applies the relations above to light_noise_vectors.
- property position_cross_spectra_array¶
Calculates an array of the cross spectra of all pairs of dimensions’ zpf-scaled position operators, from the same TNT LAM array as position_power_spectra_array
S_qjqk(ω)[ii, jj, kk] = Σ Scc†(ω) over the 2 × 2 annihilation/creation index pairs of dimensions jj and kk, since qjn = bjn + bjn†. The diagonal is position_power_spectra_array (real), and S_qkqj = S_qjqk*. Same convention as position_cross_spectrum(label_A, label_B), i.e. 〈qA(ω)·qB(ω)†〉. [complex ·], shape (len(ω_range), num_dimensions, num_dimensions)
- position_cross_spectrum(label_A, label_B, method, zpf_scaled=True)¶
Calculates the cross correlation spectrum of the given dimensions
- property position_power_spectra_array¶
Calculates an array of the PSDs of all dimensions’ zpf-scaled position operators (see position_cross_spectra_array for all the cross spectra)
- position_power_spectrum(label, method, zpf_scaled=True)¶
Calculates the power spectrum of a given dimension
- power_series_position_noise_vector(label, ω)¶
The noise vector of one hybridised position from the power series, x = adj(D)/det(D)·x1D
Only the row of the adjugate for label is evaluated, rather than the whole matrix.
- property quantum_operator_spectral_density_array¶
Calculate all spectra ‘at once’ using ‘TNT’ Linear Amplifier Model (TNT LAM)
Scc†(ω) = T(ω) @ N @ T(ω)†
- setup_hybridisation(**kwargs)¶
Sets up the hybridisation functions and, if asked for, the power series of the deranged determinant and adjugate
Keyword arguments (from MultiTrap):
max_order: highest order of the power series (default and maximum 9, and at most the number of dimensions)
evaluation_order: order at which the power series is evaluated (default max_order)
load_in_power_series: load the power series found by find_power_series_file (power_series_dir=, then $LEVISIM_POWER_SERIES_DIR, then the shipped POWER_SERIES_DATA_DIR)
generate_power_series: generate the power series symbolically (slow above 6 dimensions)
compare_Rjk_calculations: check each hybridisation function against its alternative forms
- setup_levitated_physics(**kwargs)¶
Setup the physics of many beads levitated in tweezer traps
By default the tweezers and beads are the built-in lists below, cut to the first num_traps: 1064 nm tweezers at θ = 45° with phases φn = 0°, 90°, 20°, 30°, …, 80° and slightly different waists, and beads (default Bead material) of radius 60.1, 60.2, …, 60.9 nm, all at the node. Each list can be replaced through MultiTrap keyword arguments:
tweezers: list of Tweezer instances, one per trap
beads: list of Bead instances, one per trap
trap_kwargs: list of dicts of extra Trap keyword arguments, one per trap, e.g. override_Ω_dict to use measured mechanical frequencies, or cavity_drive_tweezer and cavity_drive_field_ratio for a bead that scatters into the cavity the light of another tweezer than the one trapping it (e.g. a bead in a 976 nm trap, which the cavity does not resonate with, scattering the out-of-focus field ζ·E0 of a 1064 nm tweezer; see Trap.cavity_drive_field). The coherent-scattering couplings then use that tweezer’s wavelength, polarisation angle θ and Rayleigh range, and the cavity frequency follows the cavity-drive tweezers
φn_dict: {n: φn} tweezer phases [rad] for any of the traps n = 1, …, num_traps; they replace the phase of that trap’s tweezer (given or built-in). The Tweezer instances passed in are not modified: a trap whose phase is replaced gets a copy of its tweezer.
photon_recoil: add the photon-recoil heating of each bead to the bath of each of its dimensions (default True with physical parameters; see the PHOTON RECOIL HEATING block of __init__)
If num_traps is not given, it is the length of the first of these lists that is given.
- setup_linear_amplifier_model_matrices()¶
Setup the drift matrix (A) and input noise vector (c_in) to help solve the quantum Langevin equations directly via a Linear Amplifier Model (LAM) approach
dc(t)/dt = A @ c(t) + c_in(t) Heisenberg (commutator with Hamiltonian) + Langevin (minus dissipation, plus input noise) = ( da/dt = i[H/ħ, a] - (κ/2)a + √κ·a_in da†/dt = i[H/ħ, a†] - (κ/2)a† + √κ·a_in† ... dbjn/dt = i[H/ħ, bjn] - (Γjn/2)bjn + √Γjn·bjn_in dbjn†/dt = i[H/ħ, bjn†] - (Γjn/2)bjn† + √Γjn·bjn†_in ... ) c ≡ vector of annihilation and creation operators c ≡ (a, a†, ..., bjn, bjn†, ...)^⊤ c_in ≡ noise column vector times the square root of the damping rate c_in ≡ (√κ·a_in, √κ·a_in†, ..., √Γjn·bjn_in, √Γjn·bjn_in†, ...)^⊤ A ≡ 'drift' matrix of couplings between them
- setup_linearised_coherent_scattering_physics(**kwargs)¶
Setup the linearised properties of tweezers levitating beads which are all coherently scattering into the same cavity
Linearisation splits the optical degrees of freedom into 2 parts
α ≡ a dominant, static, complex valued part a ≡ a small, dynamic, operator valued part a → α + a a† → α* + a† A → A0 + (a† + a) P → P0 + i(a† - a) α = 1/2 (A0 + iP0) α* = 1/2 (A0 - iP0)
To derive α (the mean static cavity photon field), consider the full Hamiltonian
H ≡ H_free + H_int H_free ≡ -ħΔ·a†a
NOTE: all tweezers are now included in a multi-particle setup!
Ed --> Etot = Ed1 + Ed2 + ... = ∑ Ed H_int ≡ ∑ V_CS = Σ -Ed·sin(θ)[cos(Φ)·(...)...]·(A ...) V_CS(0) = -Ed·sin(θ)·cos(Φ).A
Heisenberg’s EoMs + dissipation
da/dt = i[H/ħ, a] - (κ/2)a da/dt = (iΔ - κ/2)a + ∑ i[V_CS/ħ, a]
Static part exists at origin
dα/dt = 0 = (iΔ - κ/2)α + ∑ i[V_CS(0)/ħ, a] i[V_CS(0)/ħ, a] = -iωd·sin(θ)·cos(Φ)·[A, a] = +iωd·sin(θ)·cos(Φ), since [A, a] = -1 dα/dt = 0 = (iΔ - κ/2)α + ∑ iωd·sin(θ)·cos(Φ) α = -∑ iωd·sin(θ)·cos(Φ) / (iΔ - κ/2) α = +∑ ωd·sin(θ)·cos(Φ) · [(-Δ + iκ/2) / (Δ² + (κ/2)²]
- setup_toy_parameters(**params)¶
Setup ‘toy’ parameters to insert into the model directly, without need to calculate them with underlying physics
- property stability_info_str¶
Lines describing the linear stability, as printed in info_str
- property stability_tolerance¶
1e-8 of the largest
|A|entryIt ignores round-off in the decay rates of dark modes, which can be as small as the gas damping. [1/s]
- Type:
Largest Re λ still counted as stable
- property toy_params_info¶
Prints information on the toy parameters
- property toy_params_info_str¶
String describing the toy model parameters
- property trap_dimension_indices¶
For each trap (in order), the indices into self.labels of the dimensions of its bead [list of int arrays]
- property unstable_modes¶
Ω =
|Im λ|is the mode’s angular frequency and Re λ > stability_tolerance its growth rate. Each conjugate pair of eigenvalues λ, λ* counts once (through the member with Im λ > 0); a purely real eigenvalue (Ω = 0, a static instability) counts on its own. Empty for a stable system. [2π·Hz, 1/s]- Type:
The growing normal modes, as a list of (Ω, Re λ) pairs, fastest-growing first
- warn_about_unknown_toy_parameters(params)¶
Logs a WARNING naming any toy_params key that nothing reads
Unknown keys used to be ignored silently, so a renamed or misspelt key (e.g. ‘φ2’ for ‘φ_even_n’, ‘gs’ for ‘gjn_dict’, or ‘Ω_gap’ with the ‘pairs’ model) changed the physics without any message. Parameters of an ΩModel kind other than the chosen one count as unknown, since they have no effect.
- x1D_noise_vector(ω)¶
Column vector of the 1D solutions to the QLT equations of motion for each dimension, as a noise vector
Submodules
Analytic methods of MultiTrap: ANALYTIC_INSIDE_CAVITY and ANALYTIC_CAVITY_OUTPUT (methods 6-7 of QuantumLinearTheoryMethod) |
|
Shared state and method dispatch of MultiTrap |
|
Hybridisation methods of MultiTrap: NUMERICAL_HYBRIDISATION and POWER_SERIES_HYBRIDISATION (methods 4-5 of QuantumLinearTheoryMethod) |
|
Linear Amplifier Model methods of MultiTrap: LINEAR_AMPLIFIER_MODEL, HYBRID_LINEAR_AMPLIFIER_MODEL and TNT_LINEAR_AMPLIFIER_MODEL (methods 1-3 of QuantumLinearTheoryMethod) |
|
Models for the x and y mechanical frequencies of a toy-parameter MultiTrap (ΩModel) |