Skip to content

Commit f29d8cd

Browse files
mtfishmanclaude
andcommitted
Simplify TreeTensorNetwork(ITensorNetwork{Any}(tensors)) test pattern
`Dict{Any, ITensor}` has `keytype = Any`, so `TreeTensorNetwork(tensors)` already produces a TTN with `V = Any` — the explicit `ITensorNetwork{Any}(...)` wrap is redundant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c634c01 commit f29d8cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_ttn_position.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
# `ITensorNetwork` has a single edge (and is therefore a valid tree).
5252
link = Index(1, "Link")
5353
tensors = Dict{Any, ITensor}(v => ITensor(link) for v in vertices(named_path_graph(2)))
54-
operator = TreeTensorNetwork(ITensorNetwork{Any}(tensors))
54+
operator = TreeTensorNetwork(tensors)
5555
environments = Dictionary{NamedEdge{Any}, ITensor}()
5656
@test ProjTTN(pos, operator, environments) isa ProjTTN{Any, Indices{Any}}
5757
end

0 commit comments

Comments
 (0)