tensornetwork.Index¶
-
class
tensornetwork.Index(charges: Union[List[tensornetwork.block_sparse.charge.BaseCharge], tensornetwork.block_sparse.charge.BaseCharge], flow: Union[List[bool], bool])¶ An index class to store indices of a symmetric tensor.
-
__init__(charges: Union[List[tensornetwork.block_sparse.charge.BaseCharge], tensornetwork.block_sparse.charge.BaseCharge], flow: Union[List[bool], bool]) → None¶ Initialize an
Indexobject.
Methods
__init__(charges, …)Initialize an Indexobject.copy()returns: flip_flow()Flip the flow if Index.Attributes
chargesReturn the fused charges of the index. dimflat_chargesA list containing the elementary indices flat_flowsA list containing the elementary indices -
charges¶ Return the fused charges of the index. Note that flows are merged into the charges.
-