Skip to content

Commit

Permalink
Removed steady state solver
Browse files Browse the repository at this point in the history
Removed the steady state solver to add it in as a separate PR later.
  • Loading branch information
magnamancer committed May 6, 2024
1 parent 586c585 commit e84b4d6
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions qutip/solver/flimesolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def flimesolve(
time_sense : float
Value of the secular approximation to use when constructing the rate
matrix R(t). Default value of zero uses the fully time-independent/most
strict secular approximation, values greater than zero have time
strict secular approximation, values greater than zero have time
dependence. The default integration method change depending
on this value, "diag" for `0`, "adams" otherwise.
Expand Down Expand Up @@ -661,19 +661,6 @@ def run(
stats["run time"] = time() - _time_start
return results

def steadystate(self):
"""
Uses the time-independent part of the Rate matrix to find the
steady state of the system. Note: This only uses the full secular
approximation.
"""
monomat = self.RateDic[0].full()
val, vec = np.linalg.eig(monomat)

idx = np.where(np.amin(abs(val)))

return Qobj(np.reshape(vec[:, idx], (self.Hdim, self.Hdim)))

def _argument(self, args):
if args:
raise ValueError("FLiMESolver cannot update arguments")

0 comments on commit e84b4d6

Please sign in to comment.