Closed Fangwq closed 10 months ago
Hi @Fangwq ,
I think there may be a couple issues with the code you present.
The representation of the matrix mapping from $\rho(h) \rightarrow \rho(h)$ should be
The plots in figure 2 and figure 3 are formed by taking the nullspace (rather than SVD), and then assigning colors to a basis for this nullspace, which when reshaped form an image.
I think instead the code should look something like
P = {{0, 0, 0, 1}, {1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}};
M = KroneckerProduct[P, P] - IdentityMatrix[Length[tensorProduct]];
nullSpace = NullSpace[M];
rank = Length[nullSpace];
leftMultiplied = Range[1, rank] . nullSpace; # (I don't remember the syntax for the multiplication)
reshapedMatrix = ArrayReshape[leftMultiplied, {4, 4}];
MatrixPlot[reshapedMatrix]
Let me know if this answers your question
The answer matches perfectly. Thank you for your clarification!
Hi, I try to draw figure 2 in the paper( for example, Convolutions in section 4.3). My code is written in Mathematica:
The result is very different from your paper. Any mistakes I make here? Thank you very much!