From 2b734634e2ad20ceb4ac11a283fb98887d50322d Mon Sep 17 00:00:00 2001 From: Benedikt Kloss Date: Tue, 16 Apr 2024 11:01:12 -0400 Subject: [PATCH] Bump compat entry for DataGraphs and remove dispatch on AbstractDataGraphs for connected_components. --- Project.toml | 4 ++-- src/treetensornetworks/opsum_to_ttn.jl | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 2ce895f0..f9893795 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorNetworks" uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7" authors = ["Matthew Fishman and contributors"] -version = "0.7" +version = "0.7.0" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" @@ -45,7 +45,7 @@ ITensorNetworksEinExprsExt = "EinExprs" AbstractTrees = "0.4.4" Combinatorics = "1" Compat = "3, 4" -DataGraphs = "0.1.7" +DataGraphs = "v0.1.13" DataStructures = "0.18" Dictionaries = "0.4" Distributions = "0.25.86" diff --git a/src/treetensornetworks/opsum_to_ttn.jl b/src/treetensornetworks/opsum_to_ttn.jl index 7c9dd383..7fd22851 100644 --- a/src/treetensornetworks/opsum_to_ttn.jl +++ b/src/treetensornetworks/opsum_to_ttn.jl @@ -6,7 +6,6 @@ using ITensors.NDTensors: Block, maxdim, nblocks, nnzblocks using ITensors.Ops: Op, OpSum using NamedGraphs: degrees, is_leaf, vertex_path using StaticArrays: MVector -using DataGraphs: AbstractDataGraph using NamedGraphs: boundary_edges # convert ITensors.OpSum to TreeTensorNetwork @@ -28,8 +27,6 @@ function split_at_vertex(g::AbstractGraph, v) return Set.(connected_components(_g)) end -split_at_vertex(g::AbstractDataGraph, v) = split_at_vertex(underlying_graph(g), v) - # # Tree adaptations of functionalities in ITensors.jl/src/physics/autompo/opsum_to_mpo.jl # @@ -37,7 +34,7 @@ split_at_vertex(g::AbstractDataGraph, v) = split_at_vertex(underlying_graph(g), """ ttn_svd(os::OpSum, sites::IndsNetwork, root_vertex, kwargs...) -Construct a dense TreeTensorNetwork from a symbolic OpSum representation of a +Construct a TreeTensorNetwork from a symbolic OpSum representation of a Hamiltonian, compressing shared interaction channels. """ function ttn_svd(os::OpSum, sites::IndsNetwork, root_vertex; kwargs...)