Skip to content

Fix the U(1) implementation of the sixvertex model - #88

Merged
leburgel merged 6 commits into
mainfrom
vv-fixsixvertex
Nov 24, 2026
Merged

leburgel merged 6 commits into
mainfrom
vv-fixsixvertex

Conversation

@VictorVanthilt

@VictorVanthilt VictorVanthilt commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

See TNRKit#220
As i stole the sixvertex tensor line-for-line from here, the same applies here.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/models/transfermatrices.jl 75.51% <100.00%> (+2.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leburgel

Copy link
Copy Markdown
Member

This makes U1 consistent, but all three used b as the turning weight, the opposite of Baxter's convention. It turns out the original implementation switched b and c between the Trivial and CU1 implementations and the U1 implementation, but the U1 tensor was actually the correct convention. This inconsistency was carried over when MPSKit changed its leg order convention and the permute was added in the sixvertex methods. So with your fix the proper conventions are only satisfied without the permute.

I dropped the permute, added a reference so people can look up what this MPO actually corresponds to, and added a test to verify the Baxter-style convention.

Drop the permute in all three implementations, so the tensors match TNRKit's
and `c` is the turning vertex as in Baxter (1982). Define the weights in the
docstring, set up DocumenterCitations, and test a frozen ferroelectric point
that fails when `b` and `c` are swapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@borisdevos

Copy link
Copy Markdown
Member

The same can probably be done in the MPSKit tests. Also I guess we should update the actions here as well to also only run on ubuntu in PRs

@lkdvos lkdvos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for small comment, good for me.

Comment thread test/sixvertex.jl Resolved
`convert(Array, ⋅)` need not give the same basis for different
symmetries, so compare tr(Rᵏ) of the periodic four-site row transfer
matrix instead of the dense tensors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leburgel
leburgel merged commit a1be069 into main Nov 24, 2026
8 of 9 checks passed
@leburgel
leburgel deleted the vv-fixsixvertex branch November 24, 2026 20:13
leburgel added a commit to QuantumKitHub/MPSKit.jl that referenced this pull request Nov 25, 2026
Drop the permute in the `sixvertex` test helper so `c` is the turning
weight, matching MPSKitModels (QuantumKitHub/MPSKitModels.jl#88). All
tests use the default weights `a = b = c = 1`, where nothing changes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@VictorVanthilt

Copy link
Copy Markdown
Member Author

I like this solution a lot, thanks @leburgel!

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.

4 participants