You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BREAKING] Drop IndsNetwork/graph ITensorNetwork ctors and ttn/mps generic ctors
Remove the IndsNetwork-, AbstractNamedGraph-, and AbstractSimpleGraph-based
ITensorNetwork constructor families (state/value, function-callback, undef,
plain-graph variants), the broken-stub ITensorNetwork{V}(g::NamedGraph), and
the generic ttn(args...)/mps(args...)/mps(f, ::Vector{<:Index})/
mps(::Vector{<:Index}) wrappers that delegated to them. Also remove
visualize(::IndsNetwork).
Internal callers that built `ITensorNetwork(::IndsNetwork)`-style placeholders
now build `ITensorNetwork(tensors, graph::NamedGraph)` directly: bilinearform-
network, the directsum branch in abstracttreetensornetwork, opsum_to_ttn, and
ttn(::ITensor, ::IndsNetwork). set_ortho_region and the QR/SVD-decomposition
ttn use TreeTensorNetwork(tn) instead of ttn(tn::ITensorNetwork).
Bug fix: trivial_space was used in abstractindsnetwork.jl and
abstractitensornetwork.jl without being imported from ITensorsExtensions —
imports added.
test/utils.jl: rename state_tensornetwork → tensornetworkstate, drop
default_tensornetwork (callers use random_tensornetwork for structural
setups), and switch tensornetworkstate / random_tensornetwork to construct
via ITensorNetwork(tensors, graph) so graph edge order is preserved.
Test files rewritten to use the new helpers and the surviving ctor surface;
the exhaustive parameterised "Product state constructors" testset (which
covered the deleted state-arg ctor surface) is dropped.
Docs updated: itensor_networks.md and tree_tensor_networks.md show the
canonical (tensors, graph) construction; deprecated_methods.md entries for
the removed ctors are removed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments