Answer by Johu for How to apply a partial transpose to a list of matrices
Henrik's answer is hardcoded for transposing specific parts only, but for anyone working with quantum mechanics it would help a lot to have a general partial transpose available. Here is mine:First I...
View ArticleAnswer by Henrik Schumacher for How to apply a partial transpose to a list of...
I am not sure, but maybe this does what you want:r1 = Map[ m \[Function] Flatten[Transpose[Partition[m, {2, 2}]], {{1, 3}, {2, 4}}], rhooutlist ]; // AbsoluteTiming // First0.056507For each matrix in...
View ArticleHow to apply a partial transpose to a list of matrices
If I start with some 4x4 input matrix$\rho=\begin{pmatrix}0&0&0&0\\0&1&0&0\\0&0&0&0\\0&0&0&0\end{pmatrix}$and evolve this according to the unitary...
View Article