Skip to content

Refactor boundary MPS contractions to directly use MPSKit.InfiniteMPO#125

Merged
lkdvos merged 5 commits intomasterfrom
lb/refactor_boundary_mps
Feb 4, 2025
Merged

Refactor boundary MPS contractions to directly use MPSKit.InfiniteMPO#125
lkdvos merged 5 commits intomasterfrom
lb/refactor_boundary_mps

Conversation

@leburgel
Copy link
Member

@leburgel leburgel commented Feb 3, 2025

Refactors the support for boundary MPS contractions after QuantumKitHub/MPSKit.jl#244. This moves away from using custom structs for transfer matrices corresponding to PEPS and PEPO sandwiches, and instead implements these as MPSKit.InfiniteMPO instances. All we now require is some custom constructors to map the appropriate collections of networks to the corresponding MPOs, and implement the expected interface (here, just the actual contraction methods and virtual space utilities) for the different element types.

Given how this turned out, I think we should move to a similar approach for representing all 2D contractible networks which just wraps a matrix of effective local MPO tensors, just like InfiniteMPO now just wraps a vector of generic effective MPO tensors. See also #116.

@leburgel leburgel self-assigned this Feb 3, 2025
@leburgel leburgel marked this pull request as draft February 3, 2025 13:37
@codecov
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/operators/transfermatrix.jl 88.00% 3 Missing ⚠️
Files with missing lines Coverage Δ
src/PEPSKit.jl 87.50% <ø> (ø)
src/algorithms/contractions/vumps_contractions.jl 22.54% <ø> (-3.38%) ⬇️
src/environments/vumps_environments.jl 100.00% <ø> (+8.41%) ⬆️
src/operators/transfermatrix.jl 71.42% <88.00%> (-1.71%) ⬇️

@leburgel leburgel changed the title [WIP] Refactor boundary MPS contractions to directly use MPSKit.InfiniteMPO Refactor boundary MPS contractions to directly use MPSKit.InfiniteMPO Feb 3, 2025
@leburgel leburgel marked this pull request as ready for review February 3, 2025 22:09
@leburgel leburgel requested a review from lkdvos February 4, 2025 07:59
@leburgel leburgel assigned lkdvos and unassigned leburgel Feb 4, 2025
@lkdvos lkdvos merged commit a142e4e into master Feb 4, 2025
27 checks passed
@lkdvos lkdvos deleted the lb/refactor_boundary_mps branch February 4, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants