Skip to content

Commit

Permalink
Bump compat entry for DataGraphs and remove dispatch on AbstractDataG…
Browse files Browse the repository at this point in the history
…raphs for connected_components.
  • Loading branch information
Benedikt Kloss committed Apr 16, 2024
1 parent cba04e7 commit 2b73463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorNetworks"
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
authors = ["Matthew Fishman <[email protected]> and contributors"]
version = "0.7"
version = "0.7.0"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions src/treetensornetworks/opsum_to_ttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -28,16 +27,14 @@ 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
#

"""
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...)
Expand Down

0 comments on commit 2b73463

Please sign in to comment.