levisim.multiphysics.multitrap.analytic_mixin

Analytic methods of MultiTrap: ANALYTIC_INSIDE_CAVITY and ANALYTIC_CAVITY_OUTPUT (methods 6-7 of QuantumLinearTheoryMethod)

Both eliminate the cavity field in closed form, so that the light only ever sees the collective modes Q, Q† through the response sums D(0), D(±2) and the normalisation M_norm (see AnalyticMixin.analytic_kernel), and never invert an N×N matrix. They share the hybridised positions and differ only in which end of the input-output relations is solved first: ANALYTIC_INSIDE_CAVITY gives the intracavity light from the 𝔽 transduction functions, ANALYTIC_CAVITY_OUTPUT the output light.

class levisim.multiphysics.multitrap.analytic_mixin.AnalyticMixin[source]

Bases: object

Collective coupling gbar, the closed-form response sums D(n), P and M_norm, the 𝔽 / 𝔽̄ transduction functions, and the analytic noise vectors (methods 6-7)

A mixin for levisim.multiphysics.multitrap.MultiTrap: it reads the dimensions, cavity and couplings set up by MultiTrapBase.

property gbar

The total coupling rate for the phase-dependent collective modes Q,Q† [2π·Hz]

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)²]

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 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]

analytic_kernel(ω)[source]

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| ~ 1e7 in 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 identity

P = 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]

D(n, ω)[source]

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]

P(ω)[source]

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(ω)[source]

Alternative definition of P as a sum of contributions from each dimension [complex (2π·Hz)²]

P_via_Pj_2(ω)[source]

Alternative definition of P as a sum of contributions from each dimension [complex (2π·Hz)²]

P_via_Pjk(ω)[source]

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, ω)[source]

Component of P contributed by a given pair of dimensions [complex (2π·Hz)²]

M_norm(ω)[source]

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(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_3(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_4(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_5(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_6(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_7(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_2_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_3_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_4_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_5_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_6_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_7_2(ω)[source]

Alternative formulation of M_norm [complex]

M_norm_N(option, ω)[source]

Alternative formulation of M_norm [complex]

M_norm_N_2(option, ω)[source]

Alternative formulation of M_norm [complex]

Fa(ω)[source]

Transduction function to collective mode Q from annihilation operator of cavity input noise photons a_in

Q ∝ Fa·a_in [complex 1/√(2π·Hz)]

FFa_dag(ω)[source]

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)]

Fa_dag(ω)[source]

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)]

FFa(ω)[source]

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)]

FQ(ω)[source]

Transduction function to collective mode Q from annihilation operator of collective thermal noise mode Q_TOT

Q ∝ FQ·Q_TOT [complex]

FQ_dag(ω)[source]

Transduction function to collective mode Q from creation operator of collective thermal noise mode Q_TOT†

Q ∝ FQ_dag·Q_TOT† [complex]

FFQ(ω)[source]

Transduction function to collective mode Q† from annihilation operator of collective thermal noise mode Q_TOT

Q† ∝ FFQ·Q_TOT [complex]

FFQ_dag(ω)[source]

Transduction function to collective mode Q† from creation operator of collective thermal noise mode Q_TOT†

Q† ∝ FFQ_dag·Q_TOT† [complex]

analytic_thermal_noise_vector(coefficients, ω)[source]

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]

analytic_inside_cavity_light_noise_vectors(ω)[source]

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_cavity_output_light_noise_vectors(ω)[source]

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_output_light_noise_vectors(ω)[source]

The output light noise vectors a_out(ω), a_out†(ω) of ANALYTIC_CAVITY_OUTPUT, in closed form

analytic_response_matrix(ω)[source]

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_hybridisation_matrix(ω)[source]

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, ω)[source]

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)]