Skip to content

[fix] Update edge tensors accordingly in leading boundary with IDMRG2 - #516

Merged
lkdvos merged 2 commits into
mainfrom
bd-idmrg2bug
Aug 19, 2026
Merged

[fix] Update edge tensors accordingly in leading boundary with IDMRG2#516
lkdvos merged 2 commits into
mainfrom
bd-idmrg2bug

Conversation

@borisdevos

@borisdevos borisdevos commented Aug 18, 2026

Copy link
Copy Markdown
Member

Description

Leading boundary with IDMRG2 forgot to update one of the tensors in the right-to-left sweep, which caused space mismatches.
The test I added could've been put in the old bugs section, but where I put it has most of the code already compiled so it's less straining for CI.

This was not caught before I guess because in other cases the rank just saturates immediately, so pre-updated data in the sweeps don't space mismatch.

Checklist

  • Tests pass locally (julia --project=test test/runtests.jl, or the relevant subset)
  • Documentation updated, if this PR changes public API (docstrings, docs/src/)
  • Runic formatter is run
  • Changelog entry added under [Unreleased] in docs/src/changelog.md, if this PR is user-facing (new feature, behavior change, bug fix, deprecation, or removal)

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

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

@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.

Thanks!

@lkdvos
lkdvos merged commit 56c0111 into main Aug 19, 2026
28 of 30 checks passed
@lkdvos
lkdvos deleted the bd-idmrg2bug branch August 19, 2026 07:28
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