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

A confusion aroused by the sample 4 from official manual #348

Open
draftman9 opened this issue Nov 14, 2022 · 1 comment
Open

A confusion aroused by the sample 4 from official manual #348

draftman9 opened this issue Nov 14, 2022 · 1 comment

Comments

@draftman9
Copy link

draftman9 commented Nov 14, 2022

I am trying to study this pkg by reproducing the official manual. When I tryied the sample 4, I was confused by the function $H_t$ :
image

And I found it in the official website:

timeevolution.master_dynamic(tspan, rho0, f; )
f: Function f(t, rho) -> (H, J, Jdagger) or f(t, rho) -> (H, J, Jdagger, rates)

I think the $\rho$(rho) is unnecessary because I found the variable was not used in the $H_t$ function and the program ran well when I changed it into xxxx that would not be used in the $H_t$ function.
image

So I am really confused by the unused $\rho$(rho). Is there anything I neglected?

@ChristophHotter
Copy link
Member

Hi @draftman9,
Yes this might be a little bit confusing, but it is simply syntax:
The third argument of master_dynamic needs to be a function which has two arguments. The first argument is the time variable and the second the (current) density matrix of the system (since the Hamiltonian, jumps or rates could depend on it). The names of theses variables do not matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants