From 6c48bbd55a43c5406536a4163c49e0e55eb4272a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= <15837247+mofeing@users.noreply.github.com> Date: Wed, 7 Feb 2024 02:31:15 +0100 Subject: [PATCH] Update ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl Co-authored-by: Matt Fishman --- .../src/ITensorNetworksEinExprsExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl b/ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl index 9af3060a..2c37b2b6 100644 --- a/ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl +++ b/ext/ITensorNetworksEinExprsExt/src/ITensorNetworksEinExprsExt.jl @@ -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)) end end