-
Notifications
You must be signed in to change notification settings - Fork 635
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
Incomplete documentation in Solving Problems with Time-dependent Hamiltonians page #1538
Comments
You're right, the table listing the keyword does not show up in the final documentation and they are not up-to-date... |
@Ericgig thanks! found the keywords. I am having some issue with the state being returned though and I am unsure how to work around them. I basically want to calculate expect(Oper, args["state"]) which gives me a dimension mismatch, if I try doing (Oper*args["state"]).tr() to find the expectation value, it tells me there is a shape mismatch. I initially start with Oper and psi0 shape as (8,8) but the args["state"] returns a shape of (64,1). Any idea how to get around this issue? states in the 1d vector or the 2d matrix form also doesn't help leading to similar dimension mismatch errors. I was trying to look into the source code but couldn't figure out how to unflatten the Qobj state |
In the latest version, the In your case, my guess is that you have Or you could reshape the state to |
The table is now present https://qutip.org/docs/latest/guide/dynamics/dynamics-time.html#accesing-the-state-from-solver. Closing this, but please let me know if I missed something. |
Hi everyone, the table in https://qutip.org/docs/latest/guide/dynamics/dynamics-time.html#accesing-the-state-from-solver confuses me. What is 'name'? Can I chose it? I tried using custom names which did not work for me. Instead, using the keywords as explained in the section in https://qutip.org/docs/latest/apidoc/classes.html?highlight=qobjevo#qobjevo without any 'name' worked for me. |
Thank you for reporting. |
http://qutip.org/docs/latest/guide/dynamics/dynamics-time.html
Under section Accessing the state from solver, it says the state of the system can be obtained using args for the time dependent Hamiltonian, but I couldn't figure out what that key was to use the state of system in the time dependent Hamiltonian , an example would be good.
The text was updated successfully, but these errors were encountered: