|
| 1 | +# |
| 2 | +# Characteristic equation used in implicit differentiation of symmetric boundary MPS |
| 3 | +# contractions |
| 4 | +# |
| 5 | + |
| 6 | +""" |
| 7 | + generate_boundary_mps_characteristic_equation( |
| 8 | + env::SymmetricBoundaryMPSEnv, (VLfp, VRfp)::Tuple{<:EdgeTensor, <:RightProjector} |
| 9 | + ) |
| 10 | +
|
| 11 | +Takes the fixed-point values of a converged symmetric boundary MPS contraction, given by the |
| 12 | +environment `env`, along with the left null space `VLfp` of its left-gauged MPS tensor and |
| 13 | +the right null space `VRfp` of its right-gauged MPS tensor, and generates a function |
| 14 | +``F(s, l, r, c, gl, gr)`` which characterizes the convergence of the boundary MPS contraction |
| 15 | +in terms of the characteristic equation ``F(s, l, r, c, gl, gr) = 0``. |
| 16 | +
|
| 17 | +Here, ``s`` corresponds to a state variable (e.g. an `InfinitePEPS` that is being optimized), |
| 18 | +``c``, ``gl`` and ``gr`` directly represent the MPS bond tensor and the left and right |
| 19 | +environments, while ``l`` and ``r`` parametrize differentiable left- and |
| 20 | +right-gauged MPS tensors as ``AL = AL_{fp} + V_{L,fp} * l`` and |
| 21 | +``AR = AR_{fp} + (r * V_{R,fp})``. |
| 22 | +
|
| 23 | +``F`` returns a tuple of five tensors, corresponding to an equation for each of ``l``, ``r``, |
| 24 | +``c``, ``gl`` and ``gr``. The first three are obtained by projecting the effective site |
| 25 | +operator applied to the center-gauged MPS tensor onto the respective tangent directions, and |
| 26 | +the last two express that the environments are fixed points of the MPS-network-MPS transfer |
| 27 | +matrix. All equations are normalized by the eigenvalue ``λ`` of the effective site operator. |
| 28 | +
|
| 29 | +See also [`generate_symmetric_characteristic_equation`](@ref). |
| 30 | +""" |
| 31 | +function generate_boundary_mps_characteristic_equation( |
| 32 | + env::SymmetricBoundaryMPSEnv, (VLfp, VRfp)::Tuple{TE, TP} |
| 33 | + ) where {TE <: EdgeTensor, TP <: RightProjector} |
| 34 | + ALfp, ARfp, Cfp, = _unpack(env) |
| 35 | + |
| 36 | + # constant preconditioner |
| 37 | + # NOTE: this relies on the bond tensor having been diagonalized, which |
| 38 | + # `leading_boundary` takes care of |
| 39 | + iCfp = sdiag_pow(real(DiagonalTensorMap(Cfp)), -1) |
| 40 | + |
| 41 | + function boundary_mps_characteristic_equation(state, l, r, c, gl, gr) |
| 42 | + network = InfiniteSquareNetwork(state) |
| 43 | + O = network[1, 1] |
| 44 | + |
| 45 | + # prepare appropriately parametrized MPS tensors |
| 46 | + AL = ALfp + VLfp * l |
| 47 | + AR = ARfp + repartition_left(r * VRfp) |
| 48 | + ARR = repartition_right(AR) # 'right isometry' form |
| 49 | + |
| 50 | + # construct the center tensor in a symmetric way |
| 51 | + AC = (absorb_right(AL, c) + absorb_left(AR, c)) / 2 |
| 52 | + |
| 53 | + # main partial contractions to reuse |
| 54 | + AC´L = ∂AC(AC, gl, O, gr) # 'left isometry' form |
| 55 | + AC´R = repartition_right(AC´L) # 'right isometry' form |
| 56 | + λ = dot(AC, AC´L) |
| 57 | + |
| 58 | + F1 = VLfp' * AC´L * iCfp / λ - l |
| 59 | + F2 = iCfp * AC´R * VRfp' / λ - r |
| 60 | + F3 = (AL' * AC´L + AC´R * ARR') / (2 * λ) - c |
| 61 | + F4 = MPSKit.transfer_left(gl, O, AL, AL) / λ - gl |
| 62 | + F5 = MPSKit.transfer_right(gr, O, AR, AR) / λ - gr |
| 63 | + |
| 64 | + return F1, F2, F3, F4, F5 |
| 65 | + end |
| 66 | + |
| 67 | + return boundary_mps_characteristic_equation |
| 68 | +end |
0 commit comments