From 78fb617cfed088022ffca0d436591fb994cc3afd Mon Sep 17 00:00:00 2001 From: mcditooss Date: Mon, 23 Sep 2024 16:51:16 +0200 Subject: [PATCH] Allow negative time fits for the correlation function --- qutip/core/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutip/core/environment.py b/qutip/core/environment.py index cfe0384056..e3e4414082 100644 --- a/qutip/core/environment.py +++ b/qutip/core/environment.py @@ -1819,11 +1819,11 @@ def _fft(f, wMax, tMax): def _cf_real_fit_model(tlist, a, b, c, d=0): - return np.real((a + 1j * d) * np.exp((b + 1j * c) * tlist)) + return np.real((a + 1j * d) * np.exp((b + 1j * c) * np.abs(tlist))) def _cf_imag_fit_model(tlist, a, b, c, d=0): - return np.imag((a + 1j * d) * np.exp((b + 1j * c) * tlist)) + return np.imag((a + 1j * d) * np.exp((b + 1j * c) * np.abs(tlist))) def _default_guess_cfreal(tlist, clist, full_ansatz):