Skip to content

Commit

Permalink
Started fixing wrong kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Nov 2, 2023
1 parent 9f08a33 commit b110bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/abstractitensornetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ function svd(
)
tn = copy(tn)
left_inds = uniqueinds(tn, edge)
U, S, V = svd(tn[src(edge)], left_inds; lefttags=u_tags, right_tags=v_tags, kwargs...)
U, S, V = svd(tn[src(edge)], left_inds; lefttags=u_tags, righttags=v_tags, kwargs...)

rem_vertex!(tn, src(edge))
add_vertex!(tn, U_vertex)
Expand Down Expand Up @@ -562,7 +562,7 @@ function _truncate_edge(tn::AbstractITensorNetwork, edge::AbstractEdge; kwargs..
tn = copy(tn)
left_inds = uniqueinds(tn, edge)
ltags = tags(tn, edge)
U, S, V = svd(tn[src(edge)], left_inds; lefttags=ltags, ortho="left", kwargs...)
U, S, V = svd(tn[src(edge)], left_inds; lefttags=ltags, kwargs...)
tn[src(edge)] = U
tn[dst(edge)] *= (S * V)
return tn
Expand Down
4 changes: 1 addition & 3 deletions src/gauging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ function vidal_gauge(
mts = belief_propagation(
ψψ, mts; contract_kwargs=(; alg="exact"), niters, target_precision=target_canonicalness
)
return vidal_gauge(
ψ, mts; eigen_message_tensor_cutoff, regularization, niters, svd_kwargs...
)
return vidal_gauge(ψ, mts; eigen_message_tensor_cutoff, regularization, svd_kwargs...)
end

"""Transform from an ITensor in the Vidal Gauge (bond tensors) to the Symmetric Gauge (message tensors)"""
Expand Down

0 comments on commit b110bb7

Please sign in to comment.