tensor product
- To: mathgroup at smc.vnet.net
- Subject: [mg61738] tensor product
- From: André Hautot <AHautot at ulg.ac.be>
- Date: Thu, 27 Oct 2005 05:54:32 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In quantum physics one often needs the matrix representation of tensor
products
Outer[Times,{{1,2},{3,4}},{{a,b},{c,d}}]//MatrixForm
outputs something like this:
{{{{a,b},{c,d}},{{2a,2b},{2c,2d}},{{{3a,3b},{3c,3d}},{{4a,4b},{4c,4d}}}}
what I need is
{{a,b,2a,2b},{c,d,2c,2d},{3a,3b,4a,4b},{3c,3d,4c,4d}}
How to get this?
Thanks in advance
ahautot at ulg.ac.be
- Follow-Ups:
- Re: tensor product
- From: Pratik Desai <pdesai1@umbc.edu>
- Re: tensor product
- From: Pratik Desai <pdesai1@umbc.edu>
- Re: tensor product