From a5008ee5816a5b3e629524418519a8eb75c7a03e Mon Sep 17 00:00:00 2001 From: Joseph Tindall <51231103+JoeyT1994@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:01:49 -0500 Subject: [PATCH] Update src/beliefpropagation/beliefpropagation.jl --- src/beliefpropagation/beliefpropagation.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beliefpropagation/beliefpropagation.jl b/src/beliefpropagation/beliefpropagation.jl index edd80ce9..5be6cfaa 100644 --- a/src/beliefpropagation/beliefpropagation.jl +++ b/src/beliefpropagation/beliefpropagation.jl @@ -26,7 +26,7 @@ function message_tensors( ) mts = message_tensors_skeleton(subgraphs) for e in edges(subgraphs) - inds_e = [i for i in commoninds(subgraphs[src(e)], subgraphs[dst(e)])] + inds_e = commoninds(subgraphs[src(e)], subgraphs[dst(e)]) itensors = itensor_constructor(inds_e) mts[e] = ITensorNetwork(itensors) mts[reverse(e)] = dag(mts[e])