Suppose I have an index with quantum numbers, e.g.
i
(dim=9|id=689|"Link,u") <Out>
1: QN("Sz",0) => 4
2: QN("Sz",-2) => 4
3: QN("Sz",-4) => 1
How do I extract information about which index values are in which QN blocks? For example, I can see i=>6 is in the QN(“Sz”,-2) block, but I can’t find a function that tells me this, say qn(i,6) == QN(“Sz”,-2). Alternatively, say I wanted the range of index values that correspond to QN(“Sz”,-2), here 5:9. Is there something like qnrange(i,QN(“Sz”,-2)) == 5:9 ?
A specific example is examining the Schmidt decomposition for a link: one might like to print out or work with the Schmidt values organized by QN. Also, one might like to extract some of the Schmidt vectors by QN.