Skip to content

Commit

Permalink
environment_vertices -> state_vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Mar 20, 2024
1 parent 73680b6 commit 01a89fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formnetworks/abstractformnetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand All @@ -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))
)
Expand Down

0 comments on commit 01a89fa

Please sign in to comment.