Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steady state solver implementation #207

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/quanguru/QuantumToolbox/evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,26 @@ def steadyStateLio(Liouvillian_, LioExp: bool = False, allVecVals: bool = False)

def steadyStateHam(Hamiltonian: Optional[Matrix] = None, collapseOperators: Optional[List] = None,
decayRates: Optional[List] = None, _double: bool = False) -> Matrix: # pylint: disable=dangerous-default-value
# TODO : write docstrings
"""
Steady state solver for that constructs a Liouvillian from given Hamiltonian, a list of jump/collapse operators
and a list of the corresponding decay rates. An additional option `double` is used for different definitions of the
dissipator.

Parameters
----------
Hamiltonian : Optional[Matrix], optional
_description_, by default None
collapseOperators : Optional[List], optional
_description_, by default None
decayRates : Optional[List], optional
_description_, by default None
_double : bool, optional
_description_, by default False

Returns
-------
Matrix
_description_
"""
Liou = Liouvillian(Hamiltonian, collapseOperators=collapseOperators, decayRates=decayRates, _double=_double)
return steadyStateLio(Liou)