One thing to be aware of is that the general Trace has to be able to handle partial traces of tensor products. This logic is implemented in this branch:
https://github.com/sympy/sympy/pull/1396 And is somewhat specialized to the stuff in quantum, although it doesn't *depend* on quantum. Cheers, Brian On Thu, Jul 12, 2012 at 12:33 PM, Matthew Rocklin <[email protected]> wrote: >> So do you think that the same object should trace over MatrixExpr, Matrix, >> and the physics classes? It seems to me that it should. > > > Yes. I think that we can easily write a sufficiently general version of > Trace, something like the Transpose object in this branch > https://github.com/mrocklin/sympy/blob/transpose-decentralize/sympy/matrices/expressions/transpose.py -- Brian E. Granger Cal Poly State University, San Luis Obispo [email protected] and [email protected] -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
