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


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

Re: partial transpose

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-03-16 11:32 +0000
Last post2012-03-16 11:32 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#9079 — Re: partial transpose

FromBill Rowe <readnews@sbcglobal.net>
Date2012-03-16 11:32 +0000
SubjectRe: partial transpose
Message-ID<jjv8d3$pfd$1@smc.vnet.net>
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}}

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web