You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if the amplitudes are built up with bra-ket states. SymPy has some support for this:
importsympyasspfromsympy.physics.quantumimportqapplyfromsympy.physics.quantum.spinimportJzKetj, m, a, b, c=sp.symbols("j m alpha beta gamma")
qapply(Rotation(a, b, c) *JzKet(j, m))
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).
The text was updated successfully, but these errors were encountered:
It would be great if the amplitudes are built up with bra-ket states. SymPy has some support for this:
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 fromStateBase
) and also define something like aLorentzBoost
operator (just like the aboveRotation
).The text was updated successfully, but these errors were encountered: