Skip to content

Fix changebonds for FiniteMPS with composite physical spaces - #514

Open
leburgel wants to merge 2 commits into
mainfrom
lb/changebonds_fix
Open

Fix changebonds for FiniteMPS with composite physical spaces#514
leburgel wants to merge 2 commits into
mainfrom
lb/changebonds_fix

Conversation

@leburgel

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.

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)

1 participant