ITensor / ITensorNetworks.jl

A package with general tools for working with higher-dimensional tensor networks based on ITensor.
MIT License
63 stars 13 forks source link

More functionality for `PartitionedGraph` wrapping `ITensorNetwork` #127

Open mtfishman opened 10 months ago

mtfishman commented 10 months ago

A follow up to #126, which introduces PartitionedGraph wrapping an ITensorNetwork as a data structure to help with implementing the belief propagation code.

An unfortunate consequence of that design is that functions that work on regular ITensorNetwork may not work on one wrapped in a PartitionedGraph, such as:

It would be good to assess how to make those functions work in an elegant way. scalartype could maybe work if we made ITensorNetwork iterable over the vertex data, in which case scalartype would iterate over the ITensors of the network.