It would be interesting to see if we can get away with just having a TreeTensorNetwork/TTN type that is treated as an operator or a state depending on the context.
In many ways the MPO/MPS types in ITensors.jl are nearly the same, and it can be awkward having both around.
If we really need to distinguish them for the sake of dispatch, we could have a wrapper type like Map(ttn) or Operator(ttn), which could be like an ITensorNetworkMap: https://github.com/ITensor/ITensors.jl/blob/v0.3.20/src/ITensorNetworkMaps/ITensorNetworkMaps.jl
Originally posted by @mtfishman in #18 (comment)
It would be interesting to see if we can get away with just having a
TreeTensorNetwork/TTNtype that is treated as an operator or a state depending on the context.In many ways the
MPO/MPStypes in ITensors.jl are nearly the same, and it can be awkward having both around.If we really need to distinguish them for the sake of dispatch, we could have a wrapper type like
Map(ttn)orOperator(ttn), which could be like anITensorNetworkMap: https://github.com/ITensor/ITensors.jl/blob/v0.3.20/src/ITensorNetworkMaps/ITensorNetworkMaps.jlOriginally posted by @mtfishman in #18 (comment)