You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g::SimpleGraph{Int}# g is used to store the connections between the tensors
4
+
site_tensors::Vector{TA}# the tensors are stored as vector of arrays, corresponding to vertices of the graph. The virtual bounds are in order of its neighbors, the last dimension is the open dimension
5
+
gauge_tensors::Vector{TA}# corresponding to edges of the graph, listed in the order of edges(g), and enforce e.src < e.dst
6
+
gauge_tensors_map::Dict{Tuple{Int, Int}, Int}# maps between the edge and the index of the gauge tensor
Base.show(io::IO, ansatz::TensorNetworkAnsatz{TA}) where {TA} =print(io, "TensorNetworkAnsatz{$(TA)} with $(nv(ansatz.g)) sites and $(ne(ansatz.g)) edges")
35
+
36
+
functioninner_product(bra::TensorNetworkAnsatz{TA}, ket::TensorNetworkAnsatz{TA}; optimizer =GreedyMethod()) where {TA}
0 commit comments