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

ODE-based steadystate solving method #84

Closed
ytdHuang opened this issue Apr 29, 2024 · 3 comments · Fixed by #159
Closed

ODE-based steadystate solving method #84

ytdHuang opened this issue Apr 29, 2024 · 3 comments · Fixed by #159
Assignees
Labels
enhancement New feature or request UnitaryHack2024 UnitaryHack 2024

Comments

@ytdHuang
Copy link
Member

ytdHuang commented Apr 29, 2024

The current existing steadystate solving methods doesn't depend on the initial condition (state), but there are some cases which leads to different stationary states because of the initial states.

By the multiple-dispatch feature of Julia, we can have a new steadystate method with a given initial state.
The stationary state can be obtained based on DiffEqCallbacks.jl and the solvers in OrdinaryDiffEq.jl.

For the terminate condition of finding the stationary state, it would be better to use:

either the following condition is true
$$\lVert\frac{\partial |\rho\rangle\rangle}{\partial t}\rVert \leq \textrm{reltol} \times\lVert\frac{\partial |\rho\rangle\rangle}{\partial t}+|\rho\rangle\rangle\rVert$$

or

$$\lVert\frac{\partial |\rho\rangle\rangle}{\partial t}\rVert \leq \textrm{abstol}$$

@ytdHuang ytdHuang added the enhancement New feature or request label Apr 29, 2024
@ytdHuang ytdHuang added the UnitaryHack2024 UnitaryHack 2024 label May 7, 2024
@aarontrowbridge
Copy link
Contributor

I have begun working on this issue as well. Do you have a degenerate example system in mind to test on?

@ytdHuang
Copy link
Member Author

ytdHuang commented Jun 5, 2024

I have begun working on this issue as well. Do you have a degenerate example system in mind to test on?

I don't have a concrete example now.

By utilizing the ODE method, the result is guaranteed to be unique (with the given Liouvillian and initial state).

However, the SteadyStateDirectSolver based on LinearSolve.jl doesn't guarantee to have a unique solution.

The result obtained from the ODE solver should be the same as the one obtained from mesolve (with long enough time evolution).

Besides, I think someone else made a PR #159 ?

@ilkclord
Copy link
Contributor

ilkclord commented Jun 5, 2024

This is a comment to allow the Unitary Hack bots to find the PR above ( #159 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UnitaryHack2024 UnitaryHack 2024
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants