Skip to content

Remove the lazy and symbolic ITensor layer, and rename dim to findname - #270

Merged
mtfishman merged 2 commits into
mainfrom
mf/remove-lazy
Oct 6, 2026
Merged

mtfishman merged 2 commits into
mainfrom
mf/remove-lazy

Conversation

@mtfishman

@mtfishman mtfishman commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes LazyNamedTensor, SymbolicNamedTensor and the contraction-order finding built on them, along with five dependencies. Order finding moves up to ITensorNetworksNext (ITensor/ITensorNetworksNext.jl#203), its only consumer. Also renames dim to findname, since it returns a position rather than a size.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.46%. Comparing base (673b6be) to head (485249f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #270      +/-   ##
==========================================
+ Coverage   78.13%   82.46%   +4.32%     
==========================================
  Files          30       21       -9     
  Lines        1834     1471     -363     
==========================================
- Hits         1433     1213     -220     
+ Misses        401      258     -143     
Flag Coverage Δ
docs 32.63% <33.33%> (+6.55%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

`dim(a, n)` returns the position of the dimension named `n`, but the name says
size everywhere else in the ecosystem. `find*` in Base returns a location and is
non-strict, which is already how this behaves for a name that is absent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman changed the title [WIP] Remove the lazy and symbolic ITensor layer [WIP] Remove the lazy and symbolic ITensor layer, and rename dim to findname Oct 5, 2026
@mtfishman mtfishman changed the title [WIP] Remove the lazy and symbolic ITensor layer, and rename dim to findname Remove the lazy and symbolic ITensor layer, and rename dim to findname Oct 6, 2026
@mtfishman
mtfishman marked this pull request as ready for review October 6, 2026 00:46
@mtfishman
mtfishman merged commit e0d14d8 into main Oct 6, 2026
28 checks passed
@mtfishman
mtfishman deleted the mf/remove-lazy branch October 6, 2026 21:19
mtfishman added a commit to ITensor/ITensorNetworksNext.jl that referenced this pull request Oct 7, 2026
…actionTree` (#203)

## Summary

Contraction orders become an explicit `ContractionTree` over the
network's keys, and `prod_tensors` is the single way to contract, taking
either a tree or an algorithm that finds one. This removes
`contract_network`. Order finding moves here from ITensorBase
(ITensor/ITensorBase.jl#270), its only consumer,
so the lazy layer there could be removed.

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant