Skip to content

Commit

Permalink
Fix einexpr call
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Aug 23, 2023
1 parent 218fafd commit 66b1061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TensorNetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Search a contraction path for the given [`TensorNetwork`](@ref) and return it as
See also: [`contract`](@ref).
"""
EinExprs.einexpr(tn::TensorNetwork; optimizer = Greedy, outputs = inds(tn, :open), kwargs...) =
einexpr(optimizer, EinExpr(tensors(tn), outputs); kwargs...)
einexpr(optimizer, EinExpr(outputs, map(t -> (array = parent(t), inds = inds(t)), tensors(tn))); kwargs...)

Check warning on line 448 in src/TensorNetwork.jl

View check run for this annotation

Codecov / codecov/patch

src/TensorNetwork.jl#L447-L448

Added lines #L447 - L448 were not covered by tests

# TODO sequence of indices?
# TODO what if parallel neighbour indices?
Expand Down

0 comments on commit 66b1061

Please sign in to comment.