Skip to content
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

Formulate amplitudes with SymPy bra-ket states #257

Open
redeboer opened this issue Mar 15, 2022 · 0 comments
Open

Formulate amplitudes with SymPy bra-ket states #257

redeboer opened this issue Mar 15, 2022 · 0 comments
Labels
❔ Question Discuss this matter in the team

Comments

@redeboer
Copy link
Member

It would be great if the amplitudes are built up with bra-ket states. SymPy has some support for this:

import sympy as sp
from sympy.physics.quantum import qapply
from sympy.physics.quantum.spin import JzKet

j, m, a, b, c = sp.symbols("j m alpha beta gamma")
qapply(Rotation(a, b, c) * JzKet(j, m))

image

Note that this only works for states in a rest frame, but theoretically, one could provide implementations for a JzKet state with dynamics (by deriving from StateBase) and also define something like a LorentzBoost operator (just like the above Rotation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ Question Discuss this matter in the team
Projects
Status: 🆕 Icebox
Development

No branches or pull requests

1 participant