-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
sympy can't handle symbolic Sum of JzKets #23820
Labels
Comments
Can you show a complete code example to reproduce this including imports? What should the correct answer be? It might be a bug in Sum rather than qapply. The quantum module is currently unmaintained. Feel free to submit a PR to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to create a linear combination of sympy.physics.quantum.spin.JzKets using
state = sm.Sum((2**m)*qt.spin.JzKet(J, m), (m, -J, J))
and tried to find it's norm using(sympy.physics.quantum.qapply(qt.Dagger(state)*state).doit())
The output is
which is clearly incorrect. Cleary qapply() doesn't understand a Sum object.
The text was updated successfully, but these errors were encountered: