Skip to content

Fix changebonds for FiniteMPS with composite physical spaces - #514

Merged
lkdvos merged 6 commits into
mainfrom
lb/changebonds_fix
Aug 26, 2026
Merged

Fix changebonds for FiniteMPS with composite physical spaces#514
lkdvos merged 6 commits into
mainfrom
lb/changebonds_fix

Conversation

@leburgel

@leburgel leburgel commented Aug 17, 2026

Copy link
Copy Markdown
Member

Description

Fixes #494, using the fix @lkdvos suggested there.

I added tests using the one-sided MPO-MPS application that was added for finite temperature support. Unfortunately, these don't pass due to an issue with the corresponding contractions for space types with non-trivial braiding. Changing the space type to ComplexSpace fixes things, but it's probably better to keep using PlanarTrivial in the tests`.

I reported the issue in QuantumKitHub/BlockTensorKit.jl#68.

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 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/algorithms/changebonds/optimalexpand.jl 0.00% 1 Missing ⚠️
src/algorithms/changebonds/randexpand.jl 0.00% 1 Missing ⚠️
src/algorithms/changebonds/sketchedexpand.jl 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/algorithms/changebonds/optimalexpand.jl 23.59% <0.00%> (ø)
src/algorithms/changebonds/randexpand.jl 28.57% <0.00%> (ø)
src/algorithms/changebonds/sketchedexpand.jl 0.00% <0.00%> (ø)
🚀 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 Author

It seems some inference checks in the excitation tests broke. These seemed to pass on the previous commit here, do you think the loss of inference could be related to the BlockTensorKit updates @lkdvos?

@lkdvos

lkdvos commented Aug 26, 2026

Copy link
Copy Markdown
Member

It must be, I'll try and investigate that separately. In any case, this is not related here because I'm seeing these failures on other PRs as well, so will merge this one.

@lkdvos
lkdvos merged commit 811ecf6 into main Aug 26, 2026
21 of 28 checks passed
@lkdvos
lkdvos deleted the lb/changebonds_fix branch August 26, 2026 13:00
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.

SketchedExpand doesn't work on FiniteMPS with a composite physical space (multiple site indices)

2 participants