jaxquantum icon indicating copy to clipboard operation
jaxquantum copied to clipboard

added enr_ feature

Open GyunghunK opened this issue 1 year ago • 5 comments

Added the energy restricted space (enr) feature to jaxquantum. The code structure follows the QuTip implementation of the same feature.

GyunghunK avatar Nov 07 '24 22:11 GyunghunK

Thanks for the PR @GyunghunK ! Please pull the new changes from the main branch in this repo to your branch, so that this can be merged in smoothly. Then, you will not be any number of commits behind EQuS/jaxquantum:main, as shown in the screenshot. You can do this manually via the git CLI or you can just press the "3 commits behind" text in the screenshot and it will automatically create a PR that pulls in recent changes from EQuS/jaxquantum:main into your branch. Let me know if you have any questions on how to do that.

Screenshot 2024-12-31 at 20 49 55

Phionx avatar Jan 01 '25 01:01 Phionx

Happy new year Shantanu! I have merged the main branch to this one. Please check it out!

ghost avatar Jan 01 '25 23:01 ghost

Great @GyunghunK , thanks for the quick update and happy new year to you too!

The code itself looks good to me.

Before I merge this, could you please add to the docs in two spots?

  1. Motivation and example usage of enr: https://github.com/EQuS/jaxquantum/blob/main/docs/advanced/enr.md Please expand on this computational technique a bit more than in the jupyter notebook so that it's clear when the ENR basis is worth using. If you can, a runtime or memory simulation would be awesome (and very useful!).

  2. Docs on how to run tests: https://github.com/EQuS/jaxquantum/blob/main/docs/getting_started/tests.md Please add a note on how to locally run the tests you added.

You may have to merge main into your branch again before you see these files.

Phionx avatar Jan 03 '25 04:01 Phionx

Hey @GyunghunK , can you please merge main into this branch and check if your tests still pass? If so, please let me know and I'll merge it. If you can add the motivating example I mentioned in my last comment, that would be great. Even if not, I'd like to merge this in and close this PR. Thanks!

Phionx avatar May 06 '25 01:05 Phionx

Sorry for the delay. I have merged the main and checked the notebook and tests regarding the enr submodule. Thank you!

ghost avatar May 19 '25 01:05 ghost