Merged
Conversation
RichRick1
approved these changes
Apr 27, 2026
Collaborator
RichRick1
left a comment
There was a problem hiding this comment.
I really like this tutorial! What I really like is that you compared results with original ones obtained from Richardson paper.
Looks good to merge!
| ~~~~~~~~~~~~~~~~~~ | ||
| The **Picket-Fence Model** is a special case of the Richardson-Gaudin model with equally spaced site energies and constant pairing interaction. | ||
|
|
||
| It can be implemented by setting :math:`\mu_p = (p - \frac{N-1}{2}) + G` and :math:`J_{pq}^{\text{eq}} = G`. |
Collaborator
There was a problem hiding this comment.
I believe it should be only diagonal term of J_pq^{eq}. Should be fixed now
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The educational goal of this picket-fence tutorial is see how one can match the numerical benchmarks from Richardson (1966) paper (link in the notebook) with moha. This paper is as far as I understand one of the first ones in the field and I chose it because approximate methods like BCS are inaccurate for small system sizes, so it helps to have some pre-computed values. The code maps the pairing Hamiltonian to the library's spin-based HamRG class to get the one-body levels and interaction strengths right. We identify the states through their spin symmetry and occupation patterns, singlets for pair moves and triplets for single moves, while applying the energy shifts used in the original paper. The notebook now reproduces the values from Tables 1, 2, and 4 from the Richardson paper across the a range of coupling strengths, for N=4. Actually N=8 also works but requires more compute, I think it's best to keep it light for the tutorial. I've also attempted to integrate with the website, hope that works.