bsc-quantic / Tenet.jl

Composable Tensor Network library in Julia
https://bsc-quantic.github.io/Tenet.jl/
Apache License 2.0
22 stars 1 forks source link

Incorporate `labels` representation for physical indices of each `Tensor` within a `State` #49

Closed jofrevalles closed 1 year ago

jofrevalles commented 1 year ago

Summary

Enhance the meta field of a Tensor within a State by including a representation of the labels associated with each index, specifically emphasizing their physical representation (e.g., left, right). This can be implemented using a dictionary where each index corresponds to its respective label. This feature will be useful for manipulating the Tensors of a States in a more general fashion.

For instance, in a MatrixProductState, a typical Tensor has three indices: left, right, and physical (represented by :l, :r, and :p, respectively). We could represent the physical labels using a dictionary like :l => :label1, :r => :label2, :p => :label3, where :label1, :label2, and :label3 correspond to the labels of the left, right, and physical indices, respectively.