Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium WrongResult
New issue 3372 by [email protected]: Pauli algebra problems
http://code.google.com/p/sympy/issues/detail?id=3372
Product of Pauli matrices unfortunately don't simplify automatically. It
would be a much better experience if they did, but we can live with that
for a moment. Worse is that the function provided to perform the
simplification gives wrong results.
In [1]: from sympy.physics.paulialgebra import Pauli, evaluate_pauli_product
In [2]: Pauli(1)*Pauli(2)
Out[2]: I*sigma3
So far this works fine.
In [3]: -I*Pauli(1)*Pauli(2)
Out[3]: -I*sigma1*sigma2
The above should simplify automatically to sigma3. But fine, we have a
function to perform that simplification:
In [4]: evaluate_pauli_product(_)
Out[4]: -sigma3
But wait, that's wrong!
In [5]: evaluate_pauli_product(_)
Out[5]: sigma3
Hmmm... something is up with the sign returned by evaluate_pauli_product.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.