Skip to content

Commit df6d8a3

Browse files
committed
some more docs for constructing tensors from data
1 parent 79afae5 commit df6d8a3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/src/man/tensors.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,22 @@ for (c,b) in blocks(t3)
333333
println()
334334
end
335335
```
336+
To construct the proper `data`, one has to know where to find each sector in the range
337+
`1:dim(V)` of every index `i` with associated space `V`, as well as the internal structure
338+
of the representation space when the corresponding sector `c` has `dim(c)>1`, i.e. in the
339+
case of `FusionStyle(c) isa NonAbelian`. Currently, the only non-abelian sectors are
340+
`Irrep[SU₂]` and `Irrep[CU₁]`, for which the internal structure is the natural one.
341+
342+
There are some tools available to facilate finding the proper range of sector `c` in space
343+
`V`, namely `axes(V, c)`. This also works on a `ProductSpace`, with a tuple of sectors. An
344+
example
345+
```julia
346+
V = SU2Space(0=>3, 1=>2, 2=>1)
347+
P = V V V
348+
axes(P, (SU2Irrep(1), SU2Irrep(0), SU2Irrep(2)))
349+
```
350+
Note that the length of the range is the degeneracy dimension of that sector, times the
351+
dimension of the internal representation space, i.e. the quantum dimension of that sector.
336352

337353
### Constructing similar tensors
338354

0 commit comments

Comments
 (0)