Add differential equation solver (High level QKODE) for Quantum Kernels#317
Add differential equation solver (High level QKODE) for Quantum Kernels#317MoritzWillmann merged 53 commits intosQUlearn:developfrom
Conversation
David-Kreplin
left a comment
There was a problem hiding this comment.
Thank you very much, good progress so far!
I added QKODE and ODE_loss to the documentation. Unfortunately, this causes many errors when building the documentation.
The ode_solver.ipynb notebook needs to be restarted. I reduced the number of iterations to 3 to check if the documentation works. It looks fine, but the original cumbersome optimization needs to be restarted. Somehow, the original one has not been run either which caused a problem in the documentation build.
Unfortunately, example_qkode seems broken. VS Code can only display the text version, but not the notebook.
The programming code itself looks fine :).
- shortened lines with more than 100 characters -removed unnecessary param_init for the kernels -removed Optional flag
….ipynb to commit 56204a1
|
Hi David, Thank you very much for the comments and sorry that it took me so long to answer (no rush to rereview :) ). I implemented most of your suggestion and left a comment in the ones that were not trivial.
Regarding Thanks again! Best regards, |
0a38161 to
da3dfc8
Compare
…nto QKODE_develop
Everything has been fixed, no need for David to do a re-review
|
Looking good, LGTM 😄 Thanks @RobertoFlorez @DennisKleinhans and @David-Kreplin for your contributions |
Hi!
This is the implementation for the differential equation solver using QK (as done in https://arxiv.org/abs/2203.08884). It should accept linear and non-linear 1st order and 2nd order differential equations that depend on one variable. Furthermore, it should be able to support precomputed kernels (i.e. classical kernels also work for it).
I also created an example (example_kode.ipynb) of how to use the interface, and modified+renamed the previous QNN ODE tutorial to include also QKs.
Overall the implementation is somewhat similar to the QNN ODE solver.
Feel free to give me feedback and let me know what should be improved.
Thank you very much for your help! 🚀
Roberto