Skip to content

Commit

Permalink
Remove stray build_projectors
Browse files Browse the repository at this point in the history
  • Loading branch information
leburgel committed Jan 8, 2025
1 parent 7b66878 commit 2bf9dac
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/algorithms/ctmrg/ctmrg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,31 +92,6 @@ function _singular_value_distance((S₁, S₂))
end
end

function build_projectors(
U::AbstractTensorMap{E,2,1},
S::AbstractTensorMap{E,1,1},
V::AbstractTensorMap{E,1,2},
Q::AbstractTensorMap{E,2,2},
Q_next::AbstractTensorMap{E,2,2},
) where {E<:ElementarySpace}
isqS = sdiag_pow(S, -0.5)
P_left = Q_next * V' * isqS
P_right = isqS * U' * Q
return P_left, P_right
end
function build_projectors(
U::AbstractTensorMap{E,2,1},
S::AbstractTensorMap{E,1,1},
V::AbstractTensorMap{E,1,2},
Q::EnlargedPartitionFunctionCorner,
Q_next::EnlargedPartitionFunctionCorner,
) where {E<:ElementarySpace}
isqS = sdiag_pow(S, -0.5)
P_left = left_projector(Q.E_1, Q.C, Q.E_2, V, isqS, Q.partfunc)
P_right = right_projector(Q_next.E_1, Q_next.C, Q_next.E_2, U, isqS, Q_next.partfunc)
return P_left, P_right
end

"""
calc_convergence(envs, CS_old, TS_old)
calc_convergence(envs_new::CTMRGEnv, envs_old::CTMRGEnv)
Expand Down

0 comments on commit 2bf9dac

Please sign in to comment.