-
Notifications
You must be signed in to change notification settings - Fork 32
Improve accuracy of ODE solvers for general cases #586
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
Conversation
|
This PR need to wait for PR #581 to be merged first. |
ace8a23 to
d661452
Compare
|
The tests are failing |
edfebcd to
e5f04cf
Compare
|
Ok, errors fixed. The benchmarks show that |
albertomercurio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I would add some tests that check that tstops are indeed not generated when the propagator is constant. Just to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Benchmark Results'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.
| Benchmark suite | Current: 553f6ed | Previous: c0270e7 | Ratio |
|---|---|---|---|
Autodiff/sesolve/Reverse (Enzyme) |
412546417 ns |
309461206 ns |
1.33 |
Time Evolution/time-independent/sesolve |
2552871 ns |
1737074.5 ns |
1.47 |
Time Evolution/time-dependent/sesolve/QobjEvo |
62704184 ns |
47184340 ns |
1.33 |
Time Evolution/time-dependent/sesolve/Tuple |
62721466 ns |
47102182.5 ns |
1.33 |
This comment was automatically generated by workflow using github-action-benchmark.
Checklist
Thank you for contributing to
QuantumToolbox.jl! Please make sure you have finished the following tasks before opening the PR.make test.juliaformatted by running:make format.docs/folder) related to code changes were updated and able to build locally by running:make docs.CHANGELOG.mdshould be updated (regarding to the code changes) and built by running:make changelog.Request for a review after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work.
Description
The changes in this PR:
sesolvedefault algorithm toVern7(lazy=false)mesolveandmcsolveand other related solver default algorithm toDP5tstopsfor all ODE solvers if the problem is time-dependent.