Well, these two modules do not have anything in common, they are not meant
to be inter-operable.

The matrixexpr do not have a notion of basis, vector space or linear
operator. `MatrixSymbol` is meant to represent a matrix, not an operator
(though if you wish, you can make the mental assumption that you are
working in certain basis and just consider all matrices to be operators).

The quantum module has all this (different bases, Hilbert spaces,
operators, etc). If that is what you need just use it.

There is also the `diffgeom` module for differential geometry which you
might find useful depending on what exactly you want to do.


On 24 July 2013 10:22, Sreeraj Rajendran <[email protected]> wrote:

> Stefan,
>
> My imports
> from sympy.physics.quantum import TensorProduct
> from sympy import MatrixSymbol
>
>
> On Wednesday, July 24, 2013 1:35:38 PM UTC+5:30, Stefan Krastanov wrote:
>
>> From what submodules of sympy are you importing these classes?
>>
>>
>> On 24 July 2013 09:38, Sreeraj Rajendran <[email protected]> wrote:
>>
>>>
>>> Hi,
>>>
>>> With
>>>  X = MatrixSymbol('X', 3, 3)
>>>  Y = MatrixSymbol('Y', 3, 3)
>>>
>>>  TensorProduct(X,Y) throws me the following error
>>>  AttributeError: 'MatrixSymbol' object has no attribute 'args_cnc'
>>>
>>> TensorProduct(Matrix(X),**Matrix(Y)) works fine.
>>> Is tensorproduct over matrixsymbols is currently under development or am
>>> I doing something terribly wrong?
>>>
>>> --
>>> Regards
>>> Sreeraj Rajendran
>>> http://home.iitb.ac.in/~**rsreeraj <http://home.iitb.ac.in/%7Ersreeraj>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "sympy" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sympy+un...@**googlegroups.com.
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/sympy<http://groups.google.com/group/sympy>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to