Skip to content

Commit

Permalink
Fix Data Graph Type
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Mar 7, 2024
1 parent b11a0f6 commit 4067de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gauging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ site_tensors(ψ::VidalITensorNetwork) = ψ.itensornetwork
bond_tensors::VidalITensorNetwork) = ψ.bond_tensors
bond_tensor::VidalITensorNetwork, e) = bond_tensors(ψ)[e]

data_graph_type(TN::Type{VidalITensorNetwork}) = data_graph_type(site_tensors(TN))
function data_graph_type(TN::Type{<:VidalITensorNetwork})
return data_graph_type(fieldtype(TN, :itensornetwork))
end
data_graph::VidalITensorNetwork) = data_graph(site_tensors(ψ))
function copy::VidalITensorNetwork)
return VidalITensorNetwork(copy(site_tensors(ψ)), copy(bond_tensors(ψ)))
Expand Down

0 comments on commit 4067de0

Please sign in to comment.