Hello,
I’m currently facing the following issue:
Suppose I have a qn-conserving ITensor (matrix) with incoming and outgoing legs. Each Index has the same set of QNs; How to get effectively the matrix in array format for a given QN, for example for QN(0)? Is it possible to delete all other QN sectors with the corresponding data, except of the given one?
EDITED:
I found the following solution:
Q=Array(ITensors.blockview(ITensors.tensor(R),nzblocks(R)[1]))
Thank you,
Best regards,
Murod