Template Function sequant::open_atoms

Function Documentation

template<typename Set>
Set sequant::open_atoms(Set const &part, Set const &rest, auto const &external)

The index atoms a part of a tensor network keeps open.

An atom is open in a part iff the part carries it and either the rest of the network carries it or it is external.

Parameters:
  • part – The atoms carried by the part (see carried_atoms).

  • rest – The atoms carried by the rest of the network.

  • external – The external indices of the whole network.

Returns:

The open atoms of the part.