From 01a89fa1ed4d69dfd0b560e2cf720213db7d9341 Mon Sep 17 00:00:00 2001 From: Joey Date: Wed, 20 Mar 2024 11:44:50 +0000 Subject: [PATCH] environment_vertices -> state_vertices --- src/formnetworks/abstractformnetwork.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formnetworks/abstractformnetwork.jl b/src/formnetworks/abstractformnetwork.jl index 07a2a0fd..b2e27fb9 100644 --- a/src/formnetworks/abstractformnetwork.jl +++ b/src/formnetworks/abstractformnetwork.jl @@ -63,7 +63,7 @@ function environment( alg=default_environment_algorithm(), kwargs..., ) - tn_vertices = environment_vertices(f, state_vertices) + tn_vertices = state_vertices(f, state_vertices) if alg == "bp" partitions = group(v -> state_vertex(f, v), vertices(f)) return environment(tensornetwork(f), tn_vertices; alg, partitions, kwargs...) @@ -72,7 +72,7 @@ function environment( end end -function environment_vertices(f::AbstractFormNetwork, state_vertices::Vector; kwargs...) +function state_vertices(f::AbstractFormNetwork, state_vertices::Vector; kwargs...) return setdiff( vertices(f), vcat(bra_vertices(f, state_vertices), ket_vertices(f, state_vertices)) )