jet.bindings.PathInfo¶
-
class
PathInfo
¶ Bases:
pybind11_builtins.pybind11_object
PathInfo represents a contraction path in a tensor network.
- Parameters
tn (TensorNetwork) – Tensor network associated with the contraction path.
path (List[Tuple[int, int]]) – Pairs of integers representing a contraction path through the tensor network.
Attributes
Mapping from indices to their dimension.
Number of leaf steps in this path
List of node ID pairs representing the contraction path.
Steps of this path.
-
index_to_size_map
¶ Mapping from indices to their dimension.
-
num_leaves
¶ Number of leaf steps in this path
-
path
¶ List of node ID pairs representing the contraction path.
-
steps
¶ Steps of this path.
Methods
total_flops
(self)Computes the total number of floating-point operations needed to contract the tensor network along this path
total_memory
(self)Computes the total memory required to contract the tensor network along this path.
-
total_flops
(self: jet.bindings.PathInfo) → float¶ Computes the total number of floating-point operations needed to contract the tensor network along this path
- Returns
Total number of floating-point operations.
- Return type
float
-
total_memory
(self: jet.bindings.PathInfo) → float¶ Computes the total memory required to contract the tensor network along this path.
- Returns
Total number of elements in the contracted tensors.
- Return type
float