Skip to content

Commit

Permalink
Update ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fishman <[email protected]>
  • Loading branch information
mofeing and mtfishman authored Feb 7, 2024
1 parent f399b78 commit 6c48bbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end

function to_contraction_sequence(expr, tensor_inds_to_vertex)
EinExprs.nargs(expr) == 0 && return tensor_inds_to_vertex[Set(expr.head)]
return map(to_contraction_sequence, EinExprs.args(expr))
return map(expr -> to_contraction_sequence(expr, tensor_inds_to_vertex), EinExprs.args(expr))

Check warning on line 55 in ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl

View workflow job for this annotation

GitHub Actions / format

[JuliaFormatter] reported by reviewdog 🐶 Raw Output: ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl:55:- return map(expr -> to_contraction_sequence(expr, tensor_inds_to_vertex), EinExprs.args(expr)) ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl:55:+ return map( ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl:56:+ expr -> to_contraction_sequence(expr, tensor_inds_to_vertex), EinExprs.args(expr) ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl:57:+ )
end

end

0 comments on commit 6c48bbd

Please sign in to comment.