This PR implements printing operations for Tr operators and partial trace operations. Also cycle permutes are fixed for consistency. Some changes added to Density class to enable partial trace operations. Also, new set of Notebook examples have been provided.
You can merge this Pull Request by running: git pull https://github.com/gdevanla/sympy trace_permute_equals Or you can view, comment on it, or merge it online at: https://github.com/sympy/sympy/pull/1396 -- Commit Summary -- * Fix cyclic permutation to be consistent * resolved conflicts * Basic examples for Tr initialization * Add basic doit() examples * Trace and partial trace for tensor products * Added notebook examples for Density, partial trace * Fixed doc string -- File Changes -- M examples/notebooks/density.ipynb (157) A examples/notebooks/trace.ipynb (264) M sympy/core/tests/test_trace.py (34) M sympy/core/trace.py (84) M sympy/physics/quantum/density.py (21) M sympy/physics/quantum/tensorproduct.py (13) M sympy/physics/quantum/tests/test_density.py (33) M sympy/physics/quantum/tests/test_tensorproduct.py (52) M sympy/printing/latex.py (5) M sympy/printing/pretty/pretty.py (7) M sympy/printing/pretty/tests/test_pretty.py (7) M sympy/printing/str.py (3) M sympy/printing/tests/test_latex.py (7) M sympy/printing/tests/test_str.py (6) -- Patch Links -- https://github.com/sympy/sympy/pull/1396.patch https://github.com/sympy/sympy/pull/1396.diff --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1396 -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.