Skip to content

Release v0.17.2 - #550

Merged
lkdvos merged 8 commits into
mainfrom
release-v0.17.2
Sep 21, 2026
Merged

lkdvos merged 8 commits into
mainfrom
release-v0.17.2

Conversation

@lkdvos

@lkdvos lkdvos commented Sep 20, 2026

Copy link
Copy Markdown
Member

TensorKit.jl v0.17.2

A performance-and-correctness patch release fixing an up-to-80x adjoint permute! slowdown, a @planar contraction bug, and a batch of small bugs found in a pre-release audit.

Highlights

Closes #537, #538, #539, #540, #541, #542, #543, #544, #545, #546

Full Changelog

See CHANGELOG for the complete list of changes.

lkdvos and others added 6 commits September 20, 2026 13:28
Consolidates the Unreleased section (which already included the real
entries added by #526/#532 on merge) with entries for the remaining
PRs merged since v0.17.1 (#487-#535), and retitles it as 0.17.2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- isunitspace: require dim(V) == 1 for GenericUnit sectors (#537)
- GradedSpace ⊕/supremum: check unit homogeneity of the result (#538)
- isconj(::ComplexSpace): return isdual(V) instead of always true (#539)
- multi_associator: return a vector, not a scalar, on early-exit for
  GenericFusion (#540)
- split(f, 0): use leftunit(f.coupled) instead of indexing an empty
  uncoupled tuple (#541)
- repartition: return a Pair in the identity branch, matching every
  other branch (#542)
- Mooncake scalar_pullback: accumulate into the tangent instead of
  overwriting it (#543)
- rand/randn/randexp/randisometry(rng, T, space): fix one(domain) typo (#544)
- pinv(::DiagonalTensorMap): fix inverted atol/rtol defaulting and
  empty-tensor throw (#545)
- t1 / t2: promote to a float scalartype, matching t1 \ t2 (#546)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- split(f, 0): also guard innerlines_extended construction, which
  still indexed the empty uncoupled tuple for a 0-leg tree
- pinv(::DiagonalTensorMap): use eps (not sqrt(eps)) for the default
  rtol, matching _default_rtol's convention and dense LinearAlgebra.pinv

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- pinv(::DiagonalTensorMap): reuse _default_rtol instead of
  duplicating its formula
- Add regression tests for split(f, 0) on a genuine 0-leg tree and
  for multi_associator's early-exit branch on a GenericFusion sector

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@lkdvos

lkdvos commented Sep 20, 2026 •

Copy link
Copy Markdown
Member Author

This is a PR with the release, along with a number of small fixes for issues that got uncovered by doing a generic 🤖-audit. I'm still running the MPSKit testsuite locally to make sure things are now settled correctly, but after that confirmation I think this is ready to release.

@lkdvos
lkdvos requested review from Jutho and kshyatt September 20, 2026 20:35
@codecov

codecov Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.28571% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ext/TensorKitMooncakeExt/tensoroperations.jl 0.00% 7 Missing ⚠️
src/spaces/complexspace.jl 0.00% 1 Missing ⚠️
src/tensors/tensor.jl 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/fusiontrees/basic_manipulations.jl 99.32% <100.00%> (+<0.01%) ⬆️
src/fusiontrees/duality_manipulations.jl 95.86% <100.00%> (ø)
src/planar/planaroperations.jl 71.85% <100.00%> (+1.53%) ⬆️
src/spaces/gradedspace.jl 90.90% <100.00%> (+0.22%) ⬆️
src/spaces/vectorspaces.jl 70.07% <100.00%> (ø)
src/tensors/diagonal.jl 89.35% <100.00%> (+0.36%) ⬆️
src/tensors/linalg.jl 83.23% <100.00%> (ø)
src/spaces/complexspace.jl 89.13% <0.00%> (ø)
src/tensors/tensor.jl 81.28% <0.00%> (ø)
ext/TensorKitMooncakeExt/tensoroperations.jl 83.72% <0.00%> (-5.17%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread ext/TensorKitMooncakeExt/tensoroperations.jl Outdated
Comment thread src/spaces/complexspace.jl
Comment thread src/planar/planaroperations.jl
Comment thread src/planar/planaroperations.jl
@lkdvos
lkdvos merged commit 3b28545 into main Sep 21, 2026
54 of 78 checks passed
@lkdvos
lkdvos deleted the release-v0.17.2 branch September 21, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment