Skip to content

Commit f7f5fe0

Browse files
committed
Comment
1 parent 11a37c0 commit f7f5fe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ITensorNetworksTensorOperationsExt/ITensorNetworksTensorOperationsExt.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using TensorOperations: TensorOperations, optimaltree
77

88
function ITensorNetworks.contraction_sequence(::Algorithm"optimal", tn::ITensorList)
99
network = collect.(inds.(tn))
10+
#Converting dims to Float64 to minimize overflow issues
1011
inds_to_dims = Dict(i => Float64(dim(i)) for i in unique(reduce(vcat, network)))
1112
seq, _ = optimaltree(network, inds_to_dims)
1213
return seq

0 commit comments

Comments
 (0)