Skip to content

Commit 8577e2f

Browse files
authored
More reorganization of exports
1 parent 5b2d027 commit 8577e2f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/TensorKit.jl

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module TensorKit
77

88
# Exports
99
#---------
10-
# Types:
10+
# Reexport common sector types:
1111
export Sector, AbstractIrrep, Irrep
1212
export FusionStyle, UniqueFusion, MultipleFusion, MultiplicityFreeFusion, SimpleFusion, GenericFusion
1313
export UnitStyle, SimpleUnit, GenericUnit
@@ -17,6 +17,7 @@ export ProductSector
1717
export FermionParity, FermionNumber, FermionSpin
1818
export FibonacciAnyon, IsingAnyon
1919

20+
# Export common vector space, fusion tree and tensor types
2021
export VectorSpace, Field, ElementarySpace # abstract vector spaces
2122
export InnerProductStyle, NoInnerProduct, HasInnerProduct, EuclideanInnerProduct
2223
export ComplexSpace, CartesianSpace, GeneralSpace, GradedSpace # concrete spaces
@@ -30,21 +31,19 @@ export DiagonalTensorMap, BraidingTensor
3031
export TruncationScheme
3132
export SpaceMismatch, SectorMismatch, IndexError # error types
3233

33-
# general vector space methods
34+
# Export general vector space methods
3435
export space, field, dual, dim, reduceddim, dims, fuse, flip, isdual
3536
export unitspace, zerospace, oplus, ominus,
3637
export insertleftunit, insertrightunit, removeunit
37-
38-
# partial order for vector spaces
3938
export infimum, supremum, isisomorphic, ismonomorphic, isepimorphic
4039

41-
# methods for sectors and properties thereof
42-
export unit, rightunit, leftunit, allunits, isunit
43-
export sectortype, sectors, hassector, Nsymbol, Fsymbol, Rsymbol, Bsymbol,
44-
frobeniusschur, frobenius_schur_phase, frobenius_schur_indicator,
45-
twist, otimes, sectorscalartype, deligneproduct
40+
# Reexport methods for sectors and properties thereof
41+
export sectortype, sectors, hassector
42+
export unit, rightunit, leftunit, allunits, isunit, otimes
43+
export Nsymbol, Fsymbol, Rsymbol, Bsymbol, frobenius_schur_phase, frobenius_schur_indicator, twist, sectorscalartype, deligneproduct
44+
45+
# Export methods for fusion trees
4646
export fusiontrees, braid, permute, transpose
47-
export ZNSpace, SU2Irrep, U1Irrep, CU1Irrep
4847
# other fusion tree manipulations, should not be exported:
4948
# export insertat, split, merge, repartition, artin_braid,
5049
# bendleft, bendright, foldleft, foldright, cycleclockwise, cycleanticlockwise
@@ -55,9 +54,9 @@ export ℤ₂, ℤ₃, ℤ₄, U₁, SU, SU₂, CU₁
5554
export fℤ₂, fU₁, fSU₂
5655
export ℤ₂Space, ℤ₃Space, ℤ₄Space, U₁Space, CU₁Space, SU₂Space
5756

58-
# tensor maps
57+
# Export tensor map methods
5958
export domain, codomain, numind, numout, numin, domainind, codomainind, allind
60-
export spacetype, sectortype, storagetype, scalartype, tensormaptype
59+
export spacetype, storagetype, scalartype, tensormaptype
6160
export blocksectors, blockdim, block, blocks
6261

6362
# random methods for constructor

0 commit comments

Comments
 (0)