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

Fix heom steady state #2333

Merged
merged 3 commits into from Feb 29, 2024
Merged

Fix heom steady state #2333

merged 3 commits into from Feb 29, 2024

Conversation

nwlambert
Copy link
Member

Description
Two small bugs crept in in the conversion of the steady_state solver in the HEOM method to QuTiP v5. Firstly, the system state was returned without Fortran ordering (so it was effectively returned transposed), and the line which was supposed to enforce hermiticity used a conj() instead of an adjoint() so it just deleted the imaginary parts of the off-diagonals instead.

I think none of the notebooks or tests were sensitive to these two compounding issues, but it is fairly easy to make an example which is. This is also added as a rudimentary test, comparing output of the long-time dynamics to the steadystate. I didn't include any parameters to change in that test, but can do so if its useful.

As a comment, the steady-state solver could probably be written to be more like the standard steadystate solver. But maybe better that is done alongside an effort to make the heom solver more data-layer flexible.

When returning the system state two errors crept into v5 that were not in v47;  the ordering of the state was not specified as Fortran ordering, and a conjugate was used instead of an adjoint in ensuring hermiticity of states.   Both are fixed, and a small test is added.
Just some small pep8 fixes.
Add towncrier entry.
Copy link
Contributor

@hodgestar hodgestar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me. I hope these weren't too difficult to find!

@hodgestar
Copy link
Contributor

The CI errors all appear to the result of the coveralls.io service being down. Happy for this to be merged with the failures.

@Ericgig
Copy link
Member

Ericgig commented Feb 28, 2024

Is this ready to merge?

@nwlambert
Copy link
Member Author

Yes, I think so, thanks!

@Ericgig Ericgig merged commit 4234aa5 into qutip:master Feb 29, 2024
8 of 12 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants