Skip to content

Add ENR JC Chain to v4 & v5 tutorials #106

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

Merged
merged 10 commits into from
Nov 8, 2024

Conversation

Langhaarzombie
Copy link
Contributor

Adds the Excitation Number Restricted (ENR) example to the tutorials for v4 and v5. The original notebook can be found here. It was previously not mentioned on the webiste.

Note: @nwlambert wanted to take a second look at the partial trace function. Its implementation in the notebook can probably be improved.

Copy link
Member

@nwlambert nwlambert left a comment

Choose a reason for hiding this comment

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

thanks max, its looking good. i have a few minor comments.

for the enr_ptrace, yeah would be better if we can incorporate this into the normal ptrace itself, support data layer, etc. but we can do that later, alongside those additional enr functions, and with some help from eric

btw, the tests are failing for some broken link in another notebook, boxi and rushi were maybe gonna fix it

@Langhaarzombie Langhaarzombie marked this pull request as ready for review October 11, 2024 00:52
@nwlambert
Copy link
Member

It all looks good to me! Not much we can do about the failing tests, I will just merge.

@nwlambert
Copy link
Member

decided to get the tests working before merging, we can update the branch and hopefully just check the pep8 checks and the tests work

- Added old enr state notebook from _qutip-notebooks_ and did changes as listed below
- Rewrote description to add details about the physics
- Fixed errors that came from the new version
- Cleared up code
- Added Markdown structure
- removed regular notebook file
- and me as an author (:
- added notebook
- fixed errors that resulted from version change
- removed unused packages and variables
- fixed typos and incorrect formatting of md
- added examples that commutation is no preserved
- v5 test more concise
- replaced %time with qutip internal time measurement
- shortened many lines
- fixed typos
@nwlambert nwlambert merged commit 522e7b7 into qutip:main Nov 8, 2024
1 of 3 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.

2 participants