Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9079

Re: partial transpose

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: partial transpose
Date 2012-03-16 11:32 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jjv8d3$pfd$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 3/15/12 at 12:26 AM, kjsalini@gmail.com (jay) wrote:

>how to find partial transpose of a density matrix

How about defining what you mean by a partial transpose?

Perhaps something like:

In[5]:= a = RandomInteger[10, {5, 5}]

Out[5]= {{9, 2, 6, 5, 3}, {5, 2, 10, 6, 2}, {4, 7, 8, 6, 9}, {4, 10,
  8, 3, 4}, {0, 0, 0, 9, 2}}

In[6]:= mask =
  Unitize[1 - SparseArray[{Band[{3, 3}] -> Unitize[a[[;; 3, ;; 3]]]}]];

In[7]:= a mask +
  SparseArray[{Band[{3, 3}] -> Transpose[a[[3 ;;, 3 ;;]]]}] // Normal

Out[7]= {{9, 2, 6, 5, 3}, {5, 2, 10, 6, 2}, {4, 7, 8, 8, 0}, {4, 10,
  6, 3, 9}, {0, 0, 9, 4, 2}}

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: partial transpose Bill Rowe <readnews@sbcglobal.net> - 2012-03-16 11:32 +0000

csiph-web