You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6837d66
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/src/man/extension.md
+27-37Lines changed: 27 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ end
16
16
17
17
`i` and `j` specify which subcategory $\mathcal{C}_{ij}$ we are considering, and `label` selects a particular simple object within that subcategory.
18
18
`Name` selects which multifusion category to work with, and is a `Symbol`.
19
-
As of now, only `:A4` is available, referring to the multifusion category consisting of $\mathsf{Rep(A_4)}$ as the largest fusion category, and all its Morita dual fusion categories and corresponding bimodule categories.
19
+
As of now, only `:A4` is available, referring to the multifusion category consisting of $\mathsf{Rep(\mathbb{A}_4)}$ as the largest fusion category, and all its Morita dual fusion categories and corresponding bimodule categories.
20
20
The fusion of these `BimoduleSector`s is then defined by the fusion rules of the multifusion category.
21
21
In particular,
22
22
````julia
@@ -28,62 +28,52 @@ a ⊗ b # empty unless j == k
28
28
The fusion rules are read in via the artifact labeled "fusiondata", and are extracted at runtime when calling the fusion of two `BimoduleSector`s (or `Nsymbol`) for the first time.
29
29
These data are cached in a hash table for later use.
30
30
31
-
A consequence of the multifusion structure is the colorings used in the graphical calculus of fusions.
32
-
A natural introduction is the notion of a *left* and *right* unit of some (simple) object in the multifusion category.
31
+
The graphical calculus of multifusion categories naturally uses colorings to distinguish between the different fusion categories and bimodule categories.
32
+
The notion of a *left* and *right* unit of some (simple) object is introduced not only as the simple object(s) which fuse trivially with the considered object, but also to uniquely identify these colorings.
33
33
These are called with the functions `TensorKitSectors.leftunit` and `TensorKitSectors.rightunit`.
34
-
Clearly, for the usual case of just one fusion category, these both coincide with the unique unit object.
35
-
For this reason, the`TensorKitSectors.UnitStyle` trait is introduced to differentiate between fusion categories and multifusion categories, returning `SimpleUnit()` and `GenericUnit()`, respectively.
34
+
For the usual case of just one fusion category, these both coincide with the unique unit object.
35
+
The`TensorKitSectors.UnitStyle` trait is introduced to differentiate between fusion categories and multifusion categories, returning `SimpleUnit()` and `GenericUnit()`, respectively.
36
36
This trait is used to specialise certain functions within TensorKit (see below).
37
37
`TensorKitSectors.allunits` is also introduced to return all the simple unit objects of the (multi)fusion category.
38
38
This function must be defined for every multifusion category to be compatible with TensorKit.
39
39
40
-
Via the fusion rules, the left and right units of all `BimoduleSector`s along with their duals are also extracted and cached.
41
-
The fusion behavior that must be imposed for the entire `BimoduleSector` is the most general one that appears in the fusion between any two `BimoduleSector`s.
42
-
In particular, if one of the diagonal fusion categories has fusion rules with multiplicities, then the entire `BimoduleSector` must be set to have `TensorKitSectors.FusionStyle(::Type{<:BimoduleSector}) = GenericFusion()`.
43
-
This is the case for the $A_4$ `BimoduleSector`, since $\mathsf{Rep(A_4)}$ is one of the diagonal fusion categories and has fusion rules with multiplicities.
40
+
Via the fusion rules, the left and right units of all `BimoduleSector`s along with their duals are extracted and cached.
41
+
The imposed fusion properties for the `BimoduleSector` type is the most general one that appears in the fusion between any two `BimoduleSector`s.
42
+
For example, if one of the diagonal fusion categories has fusion rules with multiplicities, then the entire `BimoduleSector` type must be set to have `TensorKitSectors.FusionStyle(::Type{<:BimoduleSector}) = GenericFusion()`.
43
+
This is the case for the $\mathbb{A}_4$ `BimoduleSector`, since $\mathsf{Rep(\mathbb{A}_4)}$ is one of the diagonal fusion categories and has fusion rules with multiplicities.
44
+
Besides the fusion rules, the F-symbols are also read in from the artifact, and are stored in a hash table for later use.
44
45
45
-
Going beyond the ring structure, the F-symbols are also read in from the artifact, and are stored in a hash table for later use.
46
-
The F-symbols are then used to perform F-moves on `BimoduleSector`s, which is required to perform recouplings of fusion trees when doing e.g. contractions of tensors with these categories grading the vector spaces.
47
-
48
-
Due to the nature of the multifusion category, it is currently not possible to define a non-trivial braiding on the `BimoduleSector`s, so these are set to be non-braided: `TensorKitSectors.BraidingStyle(::Type{<:BimoduleSector}) = NoBraiding()`.
49
-
This is especially important when working with matrix product states, as all algorithms are required to remain planar, since no (half-)braiding is available to perform crossings of fusion trees.
46
+
It is currently not possible to define a non-trivial braiding on the `BimoduleSector`s, so these are set to be non-braided: `TensorKitSectors.BraidingStyle(::Type{<:BimoduleSector}) = NoBraiding()`.
47
+
This is especially important when working with matrix product states, as all algorithms are required to remain planar since no (half-)braiding is available to perform crossings of fusion trees.
50
48
51
49
## As a symmetry in TensorKit
52
50
Since `BimoduleSector`s are `Sector`s, they can be used as symmetries in TensorKit.
53
51
This way, we can construct symmetric tensors with the symmetries of the multifusion category, which are more general than those of the fusion categories.
54
-
In particular, the vector spaces graded by these `BimoduleSector`s are not only graded by the simple objects of the fusion categories, but also by the simple objects of the bimodule categories.
55
-
This allows for more general tensor network simulations of quantum many-body systems with symmetries which go beyond those of fusion categories.
56
-
57
-
Certain changes within TensorKit were required to make it compatible with the multifusion categorical structure.
58
-
In particular, the presence of a simple unit object for every fusion category on the diagonal of the multifusion category, along with the off-diagonal nature of the simple objects of the bimodule categories, required some internal changes to the way unit objects were treated in TensorKit.
59
-
Most notably, the unit object is no longer unique, and thus it is of utmost importance that the correct one is considered when performing tensor contractions at the level of the fusion trees.
60
-
This is achieved precisely through colorings and the use of `leftunit` and `rightunit`.
61
-
For this reason, every fusion tree manipulation which previously involved "the" unit object, now involves the `leftunit` and `rightunit` of some neighboring sector in the manipulation to identify the correct color.
52
+
In particular, the vector spaces graded by these `BimoduleSector`s may contain simple objects of not only the fusion subcategories, but also the bimodule categories.
53
+
54
+
Certain changes within TensorKit were required to make it compatible with the multifusion categorical structure, largely due to the fact that "the" unit object is semi-simple.
55
+
It is thus important that the correct unit object is considered when manipulating fusion trees; this is achieved through identifying colorings and the use of `leftunit` and `rightunit`.
56
+
Every fusion tree manipulation which previously involved "the" unit object, now involves the `leftunit` and `rightunit` of some neighboring sector.
62
57
An important example of this is explained in the previous section on [Opposite module categories](@ref opposite_module_categories), namely the mapping of a splitting vertex to a fusion vertex via a B-move.
63
58
64
-
When manipulating spaces graded by `BimoduleSector`s, one needs to also be careful of which unit spaces can compose with other graded spaces on which side.
65
-
This introduces the functions `TensorKit.leftunitspace` and `TensorKit.rightunitspace`, which check whether the coloring of the (in general) composite object grading the space is uniform, then return the one-dimensional space with the unique left/right unit object consistent with that coloring.
59
+
Just like how colorings at the level of the simple objects (`BimoduleSector`s) check whether certain fusions are allowed, vector spaces graded by these simple objects also have to be checked for compatibility, since these essentially represent in general the direct sum of simple objects.
60
+
`TensorKit.leftunitspace` and `TensorKit.rightunitspace` are the `GradedSpace` equivalents to `leftunit` and `rightunit`, which check whether the coloring of the composite object grading the space is uniform, after which they return the one-dimensional space with the corresponding `leftunit` or `rightunit`.
66
61
Clearly, `leftunitspace` and `rightunitspace` coincide for fusion categories; this defaults to `TensorKit.unitspace`.
67
-
For multifusion categories, the latter function returns the space with the semisimple unit object grading it.
68
-
`leftunitspace` and `rightunitspace` are used with the functions `TensorKit.insertleftunit` and `TensorKit.insertrightunit`.
69
-
There, based on the index where a unit space is wished to be inserted, a `leftunitspace` or `rightunitspace` is added such that the resulting space remains consistent with the fusion rules of the multifusion category.
70
-
Similarly, `TensorKit.removeunit` is used to remove unit spaces, and will explicitly check whether the space contains only unit objects of any color with `TensorKit.isunitspace`.
62
+
TensorKit does not allow to construct the `unitspace` of a multifusion category directly with this function, since this would construct a `GradedSpace` with ambiguous coloring, which is currently not supported by TensorKit and downstream packages.
63
+
`leftunitspace` and `rightunitspace` are used within the functions `TensorKit.insertleftunit` and `TensorKit.insertrightunit`, which also check coloring compatibility.
64
+
Similarly, `TensorKit.removeunit` is used to remove unit spaces, and `TensorKit.isunitspace` checks this property.
71
65
72
66
## MultiTensorKit compatibility with MPSKit
73
67
74
-
This section will briefly explain the changes within MPSKit which are required to make it compatible with MultiTensorKit.
75
-
For a more practical explanation, users are kindly guided towards the [Example section](@ref implementation).
76
-
77
68
The main change within MPSKit is very similar to the fusion tree manipulations in TensorKit, namely the use of `leftunit` and `rightunit` to identify the correct unit object.
78
-
In the case of MPSKit, trivial spaces are used everywhere, from the boundary of a finite matrix product state to the virtual spaces of a Hamiltonian written as an matrix product operator.
79
-
Additionally, multiple tensor contractions made use of braiding tensors to perform crossings of legs of the MPSs/MPOs.
80
-
Since no (half-)braiding is available for the `BimoduleSector`s, all algorithms had to be made planar, and thus all braiding tensors were removed.
81
-
Since all braidings were trivial, this was dealt with by simply removing the braiding tensors and replacing the crossing of legs with a termination and reintroduction of the legs without crossing by aid of `removeunit`, `insertleftunit` and `insertrightunit`.
69
+
In the case of MPSKit, trivial spaces are used everywhere, from the boundary of a finite matrix product state to the virtual spaces of a Hamiltonian written as a matrix product operator.
70
+
Since no (half-)braiding is available for the `BimoduleSector`s, all algorithms are made planar, and thus all braiding tensors are removed.
71
+
Previous braidings involving unit spaces are replaced by a termination and reintroduction of the legs without crossing, which is achieved by the use of `removeunit`, `insertleftunit` and `insertrightunit`.
82
72
83
73
At the level of the MPS, the correct unit object can be identified through the use of `leftunit(ψ::AbstractMPS)` and `rightunit(ψ::AbstractMPS)`.
84
74
When the virtual space of the MPS is graded by a diagonal `BimoduleSector`, i.ea unitary fusion category, then these all coincide with the unique unit object of that fusion category.
85
-
However, when the virtual space is graded by an off-diagonal `BimoduleSector`, i.e. a bimodule category, then the left and right units are different, and thus it is important to identify the correct one when performing MPS algorithms.
86
-
For example, Hamiltonians should always have the same coloring as the right unit of the MPS, since they are contracted at the physical level of the MPS.
75
+
However, when the virtual space is graded by an off-diagonal `BimoduleSector`, i.e. a bimodule category, then the left and right units are different.
76
+
In the canonical fusion tree basis of the MPS, the right coloring is that on the side with the physical legs, such that Hamiltonians and other physical operators always have the same coloring as the right unit of the MPS.
87
77
Similarly, excitations of an MPS are labeled by `BimoduleSector`s with the same coloring as the left unit of the MPS, since the auxiliary charge leg of the excitation is attached on the other side of the MPS to the virtual level.
0 commit comments