Updates:
        Summary: FockState wraps its arguments with tuple()
        Status: Started
        Labels: Quantum

Comment #2 on issue 2237 by [email protected]: FockState wraps its arguments with tuple()
http://code.google.com/p/sympy/issues/detail?id=2237

I noticed the same problem while working on matching. The root of the problem is that FockState wraps its arguments in a tuple. The easiest way to solve it is to use Tuple instead, which requires implementing Tuple concatenation. I already made a preliminary patch: https://github.com/rlamy/sympy/commit/5c6f9fe7b6e2eb311284e46e6424d3e1f353e810

Another way to go about it would be that FockState stored its arguments directly, without wrapping, but this would require more changes to secondquant.py.

--
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.

Reply via email to