Identifiable up to rearrangement

Is the following post-processing of the trace enough to fix this problem?

For each value of matrix \mathcal{A} in the trace,

  1. Calculate indices = np.argsort(np.sum(A, axis=0))
  2. Reorder the matrix by A = A[indices, :][:, indices]