Skip to content

Commit 3573d95

Browse files
author
Jack Dunham
committed
Remove ITensorBase dep
1 parent 50819fb commit 3573d95

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ DerivableInterfaces = "6c5e35bf-e59e-4898-b73c-732dcc4ba65f"
1313
DiagonalArrays = "74fd4be6-21e2-4f6f-823a-4360d37c7a77"
1414
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
1515
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
16-
ITensorBase = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
1716
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1817
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1918
NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
@@ -40,7 +39,6 @@ DerivableInterfaces = "0.5.5"
4039
DiagonalArrays = "0.3.23"
4140
Dictionaries = "0.4.5"
4241
Graphs = "1.13.1"
43-
ITensorBase = "0.2.14"
4442
LinearAlgebra = "1.10"
4543
MacroTools = "0.5.16"
4644
NamedDimsArrays = "0.8"

src/beliefpropagation/beliefpropagationcache.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using Dictionaries: Dictionary, set!, delete!
33
using Graphs: AbstractGraph, is_tree, connected_components
44
using NamedGraphs: convert_vertextype
55
using NamedGraphs.GraphsExtensions: default_root_vertex, forest_cover, post_order_dfs_edges, is_path_graph
6-
using ITensorBase: ITensor, dim
76
using NamedGraphs.PartitionedGraphs: QuotientView, QuotientEdge, quotient_graph
87

98
struct BeliefPropagationCache{V, N <: AbstractGraph{V}, ET, MT} <:

src/beliefpropagation/beliefpropagationproblem.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ function default_message(::Type{<:Algorithm"bp"}, network, edge)
5252

5353
#TODO: Get datatype working on tensornetworks so we can support GPU, etc...
5454
links = linkinds(network, edge)
55-
data = ones(dim.(links)...)
56-
57-
t = ITensor(data, links)
58-
return t
55+
data = ones(Tuple(links))
56+
return data
5957
end
6058

6159
updated_message(alg, bpc, edge) = not_implemented()

0 commit comments

Comments
 (0)