Skip to content

Commit 941380e

Browse files
committed
Don't use copy
1 parent ccf8384 commit 941380e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/caches/abstractbeliefpropagationcache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function tensornetwork(bpc::AbstractBeliefPropagationCache)
101101
end
102102

103103
function factors(bpc::AbstractBeliefPropagationCache, verts::Vector)
104-
return ITensor[copy(bpc[v]) for v in verts]
104+
return ITensor[bpc[v] for v in verts]
105105
end
106106

107107
function factors(

0 commit comments

Comments
 (0)