UPDATE: update ρ_A real time simulations to latest known parameters

This commit is contained in:
Valentin Boettcher 2024-08-12 12:55:51 -04:00
parent 392a560f00
commit 2c865dfc0f
3 changed files with 12 additions and 9 deletions

View file

@ -112,7 +112,7 @@ def plot_power_spectrum(
) )
peak_info = find_peaks( peak_info = find_peaks(
freq, average_power_spectrum, ringdown_params, prominence=0.1 freq, average_power_spectrum, ringdown_params, prominence=0.1 / 2
) )
peak_info, lm_result = refine_peaks(peak_info, ringdown_params, height_cutoff=0.05) peak_info, lm_result = refine_peaks(peak_info, ringdown_params, height_cutoff=0.05)
peak_info.power = average_power_spectrum peak_info.power = average_power_spectrum
@ -262,9 +262,9 @@ def generate_data(
# %% save # %% save
if __name__ == "__main__": if __name__ == "__main__":
fig = generate_data( fig = generate_data(
g_0=1, g_0=0.5,
η_factor=5, η_factor=5,
noise_amplitude=2e-3, noise_amplitude=2e-4,
N=2, N=2,
eom_ranges=(1.1, 1.35), eom_ranges=(1.1, 1.35),
eom_steps=100, eom_steps=100,

View file

@ -5,13 +5,14 @@ import itertools
# %% interactive # %% interactive
def make_params(ω_c=0.1 / 2, N=10, gbar=1 / 3, compensate=2): def make_params(ω_c=0.1, N=10, gbar=1 / 3, compensate=1):
""" """
Make a set of parameters for the system with the current Make a set of parameters for the system with the current
best-known settings. best-known settings.
""" """
return Params( return Params(
η=0.5, η=0.2,
η_hybrid=0.2,
Ω=13, Ω=13,
δ=1 / 4, δ=1 / 4,
ω_c=ω_c, ω_c=ω_c,
@ -40,8 +41,8 @@ def decay_rwa_analysis():
that still kinda works.). that still kinda works.).
""" """
ω_c = 0.1 / 2 ω_c = 0.1
Ns = [5, 10, 20] Ns = [5, 10]
gbar = 1 / 4 gbar = 1 / 4
fig = make_figure("decay_test", figsize=(15, len(Ns) * 3)) fig = make_figure("decay_test", figsize=(15, len(Ns) * 3))
@ -105,7 +106,7 @@ def decay_rwa_analysis():
fig.tight_layout() fig.tight_layout()
fig.suptitle( fig.suptitle(
f"Decay test for η={params.η}MHz, Ω={params.Ω}MHz, δ/Ω={params.δ}, ω_c/Ω={params.ω_c}, g_0/ω_c={params.g_0/params.ω_c:.2f}" f"Decay test for η/2π={params.η}MHz, Ω/2π={params.Ω}MHz, δ/Ω={params.δ}, ω_c/Ω={params.ω_c}, g_0/ω_c={params.g_0/params.ω_c:.2f}"
) )
save_figure(fig, "001_decay_test", extra_meta=dict(params=param_dict, Ns=Ns)) save_figure(fig, "001_decay_test", extra_meta=dict(params=param_dict, Ns=Ns))

View file

@ -542,4 +542,6 @@ def correct_for_decay(solution, params):
:returns: The corrected solution amplitudes. :returns: The corrected solution amplitudes.
""" """
return solution.y * np.exp(params.η / 2 * solution.t[None, :])
runtime = RuntimeParams(params)
return solution.y * np.exp(-runtime.Ωs.imag[:, None] * solution.t[None, :])