Skip to content

Migrate ITensorNetworksNext to ITensorBase v0.6#121

Merged
mtfishman merged 5 commits into
mainfrom
mf/itensorbase-v0.6
Jun 22, 2026
Merged

Migrate ITensorNetworksNext to ITensorBase v0.6#121
mtfishman merged 5 commits into
mainfrom
mf/itensorbase-v0.6

Conversation

@mtfishman

@mtfishman mtfishman commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

Migrates ITensorNetworksNext to ITensorBase v0.6, which replaces the named-array core with the new AbstractITensor{DimName} model. Tensor network vertices hold ITensors built on that model across the contraction, belief-propagation, and operator-application layers. This requires ITensorBase 0.6.2 (ITensor/ITensorBase.jl#181) for name-based comparison of graded tensors and TensorAlgebra 0.9.7 (ITensor/TensorAlgebra.jl#179) for contraction labels that keep their element type.

The lazy expression layer is renamed from LazyNamedDimsArrays to LazyITensors, and its symbolic leaf is reworked into a SymbolicITensor that builds lazy products directly and carries named structure with no array payload. The delta-tensor generators no longer depend on DiagonalArrays: a dense diagonaltensor/delta helper places values on the hyperdiagonal over either plain or named axes.

Relocating the lazy and symbolic core into ITensorBase will follow in a later PR.

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.33%. Comparing base (e312bd5) to head (feff26d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/LazyITensors/lazyitensor.jl 60.41% 19 Missing ⚠️
src/LazyITensors/lazybroadcast.jl 0.00% 9 Missing ⚠️
src/LazyITensors/symbolicitensor.jl 77.50% 9 Missing ⚠️
src/LazyITensors/itensorbaseextensions.jl 30.00% 7 Missing ⚠️
src/LazyITensors/evaluation_order.jl 0.00% 2 Missing ⚠️
src/TensorNetworkGenerators/ising_network.jl 50.00% 1 Missing ⚠️
src/abstracttensornetwork.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
- Coverage   74.79%   74.33%   -0.46%     
==========================================
  Files          24       23       -1     
  Lines        1079     1087       +8     
==========================================
+ Hits          807      808       +1     
- Misses        272      279       +7     
Flag Coverage Δ
docs 0.00% <0.00%> (ø)

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.

@mtfishman mtfishman changed the title [WIP] Migrate ITensorNetworksNext to ITensorBase v0.6 Migrate ITensorNetworksNext to ITensorBase v0.6 Jun 22, 2026
@mtfishman mtfishman marked this pull request as ready for review June 22, 2026 17:44
@mtfishman mtfishman enabled auto-merge (squash) June 22, 2026 17:44
@mtfishman mtfishman force-pushed the mf/itensorbase-v0.6 branch from b50823b to feff26d Compare June 22, 2026 18:05
@mtfishman mtfishman merged commit bf9bca0 into main Jun 22, 2026
16 of 18 checks passed
@mtfishman mtfishman deleted the mf/itensorbase-v0.6 branch June 22, 2026 18:16
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