Skip to content

Commit b296277

Browse files
JoeyT1994mtfishman
andauthored
Update src/caches/beliefpropagationcache.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent b098d44 commit b296277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/caches/beliefpropagationcache.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ function environment(bp_cache::BeliefPropagationCache, verts::Vector)
157157
return vcat(messages, central_tensors)
158158
end
159159

160-
function factors(bp_cache::BeliefPropagationCache, vertices::Vector)
160+
function factors(bp_cache::BeliefPropagationCache, vertices)
161161
tn = tensornetwork(bp_cache)
162-
return ITensor[tn[vertex] for vertex in vertices]
162+
return map(vertex -> tn[vertex], vertices)
163163
end
164164

165165
function factor(bp_cache::BeliefPropagationCache, vertex)

0 commit comments

Comments
 (0)