Module hdf5

Module hdf5 

Source
Expand description

Import and export of tensors or tensor networks as HDF5 files.

The files follow this structure:

tensors/
    tensor: n-dimensional dataset
        attrs:
            - bids
            - tids

There is a single tensors/ group containing multiple tensor datasets. Each tensor is a flattened tensor with dimensions shape. The tid is the unique positive integer used to identify each tensor, with the output tensor, identified by -1, containing output bond dimensions and no tensor data. The bids are a list of integers corresponding to the bond ids of in each tensor.

Functionsยง

load_data
Loads a single tensor from a HDF5 file.
load_tensor
Loads a tensor network from a HDF5 file.
store_data
Stores a single tensor in a HDF5 file.