Renaming and lifting tensor networks #
Two operations that keep the contraction of a tensor network under control while its types or its coefficient ring change.
- Renaming (
TensorNetwork.reindex). Transport a network along bijections of its vertices and of its edges. The contraction is unchanged (TensorNetwork.contraction_reindex). The contraction recursion of [OAI26k] (§D.4.6–§D.4.7, pp. 63–64) uses it to number the vertices and edges of a child network byFin. - Lifting the entries (
TensorNetwork.mapFun). Apply an arbitrary function to every tensor entry. When the function is a section of a ring homomorphismf, reducing the lifted network alongfrecovers the original (TensorNetwork.map_mapFun), so its contraction reduces to the original contraction (TensorNetwork.contraction_map_mapFun). This is the manuscript's canonical lift of entries specified modulo2 ^ p(§D.4.1, p. 58); any section works.
Main definitions #
Cslib.Circuits.Frontier.TensorNetwork.reindex: renaming the vertices and edges.Cslib.Circuits.Frontier.TensorNetwork.mapFun: mapping every entry by a function.
Main results #
Cslib.Circuits.Frontier.TensorNetwork.contraction_reindex: renaming preserves the contraction, andcard_reindex_src,card_reindex_tgtthe degrees.Cslib.Circuits.Frontier.TensorNetwork.map_mapFun: reducing a lift alongfrecovers the network.Cslib.Circuits.Frontier.TensorNetwork.contraction_map_mapFun: the contraction of a lift reduces to the contraction.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.1 (p. 58) and §D.4.6 (p. 63).
Renaming the vertices and edges #
The network transported along bijections eV of the vertices and eE of the edges: edge
eE e runs from eV (N.src e) to eV (N.tgt e), and vertex eV v carries the tensor of v.
Renaming keeps the number of edges leaving each vertex.
Renaming keeps the number of edges entering each vertex.
Renaming preserves the contraction.
Lifting the entries #
The tensor network with every tensor entry mapped by the function f. Unlike
TensorNetwork.map, f need not be a ring homomorphism; a section of a reduction map lifts the
entries.
Reducing a lift recovers the network: for a section σ of f, mapping the entries by
σ and then by f changes nothing.
The contraction of a lift reduces to the contraction: for a section σ of f, f maps
the contraction of the lifted network to the contraction of the network.