Skip to content

Conversation

@Yue-Zhengyuan
Copy link
Member

@Yue-Zhengyuan Yue-Zhengyuan commented Jan 21, 2026

This PR adds a utility function gauge_transform for iPEPS and its CTMRGEnv, which transforms the iPEPS or its environment using the gauge matrices XXinv (e.g., produced by BP gauge fixing) on the virtual bonds of the iPEPS.

It is tested by checking that the (1-site) reduced density matrices constructed from CTMRG are unchanged after an arbitrary gauge transformation.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/PEPSKit.jl 100.00% <ø> (ø)
src/algorithms/ctmrg/gaugetrans.jl 100.00% <100.00%> (ø)
src/states/infinitepeps.jl 76.19% <100.00%> (+2.46%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Yue-Zhengyuan
Copy link
Member Author

Of course, there are some immediate generalizations to handle gauge freedoms in InfiniteSquareNetwork and its CTMRGEnv. But they'd better be added when someone encounters them in concrete applications. For now the only usage in my mind is BP gauge fixing for iPEPS norm network; after the fixing it is natural to transform its CTMRGEnv accordingly.

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.

1 participant