Skip to content

Angular momentum operators #318

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Angular momentum operators #318

wants to merge 5 commits into from

Conversation

kburns
Copy link
Member

@kburns kburns commented Apr 16, 2025

No description provided.

if regindex_in[1:] == regindex_out[1:]:
return self._radial_matrix(radial_basis, regindex_in[0], regindex_out[0], regtotal_in, regtotal_out, ell)
else:
raise ValueError("This should never happen")

Choose a reason for hiding this comment

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

If I can suggest something: in the error message give some more information why this has happened. Otherwise, it is not so helpful... For example

ValueError(f"This should never happen, got {refined_in=}")

elif regindex_in0 == R0 and regindex_out0 == Rp:
return 1j * radial_basis.xi(-1, ell+regtotal_in) * radial_basis.operator_matrix('R+', ell, regtotal_in)
else:
raise ValueError("This should never happen")

Choose a reason for hiding this comment

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

same as before :-)

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