Repository navigation
Conversation
|
Shall we say C4v boundary MPS? "symmetric" feels ambiguous to me. |
Sure, does |
56d1c97 to
c26ff3a
Compare
8aa3792 to
d1a5d6e
Compare
d1a5d6e to
530ceb6
Compare
|
Might be easier for review to move C4v version to a follow-up PR? And does this supersede #82? |
Yes, this is a long-overdue alternative to #82. Making MPSKit Zygote-compatible was never really on the table, and re-implementing differentiable boundary MPS routines withing PEPSKit.jl was not a viable solution. This uses plain MPSKit for the forward pass and handles the reverse pass through implicit differentiation, which solves both of the previous obstructions. For now this is just a placeholder so I can keep track. I'll split off reasonable chunks for review, hopefully soon. |
|
BTW, once Enzyme support is added, which appears to handle planar contractions well, will we be able to get fixed-point differentiation to work for VU/OMPS? |
Adds boundary MPS contractions of infinite square networks through
leading_boundary, together with their gradient through implicit differentiation, so that they can be used infixedpoint.C4vBoundaryMPSwithC4vBoundaryMPSEnv: a single boundary MPS for single-site networks with rotation and Hermitian reflection symmetry.BoundaryMPSwithBoundaryMPSEnv: a top and a bottom boundary MPS and their mixed environments, for any unit cell. The bottom MPS is the top MPS of the network rotated by 180 degrees, and every tensor of the environment sits at the position of the correspondingCTMRGEnvedge.leading_boundary(VUMPS, VOMPS, and GradientGrassmann forC4vBoundaryMPS).reduced_densitymatrixmachinery: arbitrary patches throughboundary_contraction_expr, and the 1x1, 2x1 and 1x2 fast paths through the CTMRG density-matrix contractions, which are split off into separate functions for this.ImplicitGradientrules for both, from the characteristic equations of the boundary MPS fixed point on any unit cell.fixedpointselectsImplicitGradientby default for boundary MPS environments;FixedPointGradientis not supported.