Skip to content

Commit

Permalink
Rename prepare_einexpr to to_einexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Feb 6, 2024
1 parent 43341ee commit d43f771
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using ITensorNetworks:
contraction_sequence
using EinExprs: EinExprs, EinExpr, einexpr, SizedEinExpr

function prepare_einexpr(tn::ITensorNetwork)
function to_einexpr(tn::ITensorNetwork)
IndexType = Any
VertexType = vertextype(tn)

Expand All @@ -33,7 +33,7 @@ function prepare_einexpr(tn::ITensorNetwork)
end

function EinExprs.einexpr(tn::ITensorNetwork; optimizer::EinExprs.Optimizer)
expr, _ = prepare_einexpr(tn)
expr, _ = to_einexpr(tn)
return einexpr(optimizer, expr)
end

Expand Down

0 comments on commit d43f771

Please sign in to comment.