levisim.multiphysics.multitrap.linear_amplifier_mixin¶
Linear Amplifier Model methods of MultiTrap: LINEAR_AMPLIFIER_MODEL, HYBRID_LINEAR_AMPLIFIER_MODEL and TNT_LINEAR_AMPLIFIER_MODEL (methods 1-3 of QuantumLinearTheoryMethod)
All three solve the linearised quantum Langevin equations dc/dt = A·c + c_in for the full vector of operators c = (a, a†, …, bjn, bjn†, …) by inverting (-iω·I - A) at each frequency. They take the positions (and, for the LAM, the light operators) by slicing c; the TNT LAM builds every spectrum at once as T·N·T†.
- class levisim.multiphysics.multitrap.linear_amplifier_mixin.LinearAmplifierMixin[source]¶
Bases:
objectDrift matrix A, the transfer matrix T(ω) = (-iω·I - A)⁻¹, and the noise vectors and TNT spectra built from them (methods 1-3)
A mixin for levisim.multiphysics.multitrap.MultiTrap: it reads the dimensions, cavity, labels and noise correlations set up by MultiTrapBase.
- setup_linear_amplifier_model_matrices()[source]¶
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
- T_matrix(ω)[source]¶
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(ω)
- c_noise_vector(ω)[source]¶
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
- linear_amplifier_light_noise_vectors(ω)[source]¶
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(ω)).
- linear_amplifier_hybridised_positions(ω)[source]¶
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.
- property quantum_operator_spectral_density_array¶
Calculate all spectra ‘at once’ using ‘TNT’ Linear Amplifier Model (TNT LAM)
Scc†(ω) = T(ω) @ N @ T(ω)†
- 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)
- 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)