Struct PathStepInfo

Struct Documentation

struct Jet::PathStepInfo

PathStepInfo is a POD that represents the contraction metadata associated with a node in a TensorNetwork.

Public Members

size_t id

Unique ID for this path step.

size_t parent

ID of the path step immediately succeeding this path step.

std::pair<size_t, size_t> children

IDs of the path steps immediately preceding this path step.

std::string name

Name of this path step.

std::vector<std::string> node_indices

Indices of the node associated with this step step.

std::vector<std::string> tensor_indices

Indices of the tensor associated with this path step.

std::vector<std::string> tags

Tags of the node associated with this path step.

std::vector<std::string> contracted_indices

Indices that are contracted during this path step.

Public Static Attributes

static constexpr size_t MISSING_ID = std::numeric_limits<size_t>::max()

ID of a missing path step.