Skip to content

Commit

Permalink
Allow negative time fits for the correlation function
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuarezr committed Sep 23, 2024
1 parent adca820 commit 78fb617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qutip/core/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 78fb617

Please sign in to comment.