Package evaluation of ITensorNumericalAnalysis on Julia 1.13.0-DEV.140 (fac1ce7906*) started at 2025-03-02T16:59:21.921 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 7.65s ################################################################################ # Installation # Installing ITensorNumericalAnalysis... Resolving package versions... Updating `~/.julia/environments/v1.13/Project.toml` [666f501e] + ITensorNumericalAnalysis v0.2.0 Updating `~/.julia/environments/v1.13/Manifest.toml` [1520ce14] + AbstractTrees v0.4.5 [7d9f7c33] + Accessors v0.1.42 [79e6a3ab] + Adapt v4.2.0 [66dad0bd] + AliasTables v1.1.3 [dce04be8] + ArgCheck v2.4.0 [ec485272] + ArnoldiMethod v0.4.0 [4fba245c] + ArrayInterface v7.18.0 [4c555306] + ArrayLayouts v1.11.1 [198e06fe] + BangBang v0.4.4 [9718e550] + Baselet v0.1.1 [c3b6d118] + BitIntegers v0.3.2 [8e7c35d0] + BlockArrays v1.4.0 [d360d2e6] + ChainRulesCore v1.25.1 [861a8166] + Combinatorics v1.0.2 [f70d9fcc] + CommonWorldInvalidations v1.0.0 [34da2185] + Compat v4.16.0 [a33af91c] + CompositionsBase v0.1.2 [187b0558] + ConstructionBase v1.5.8 [9a962f9c] + DataAPI v1.16.0 [b5a273c3] + DataGraphs v0.2.5 [864edb3b] + DataStructures v0.18.20 [e2d170a0] + DataValueInterfaces v1.0.0 [244e2a9f] + DefineSingletons v0.1.2 [85a47980] + Dictionaries v0.4.4 [31c24e10] + Distributions v0.25.117 [ffbed154] + DocStringExtensions v0.9.3 [da5c29d0] + EllipsisNotation v1.8.0 [e2ba6199] + ExprTools v0.1.10 [e189563c] + ExternalDocstrings v0.1.1 [1a297f60] + FillArrays v1.13.0 [41a02a25] + Folds v0.2.10 [d9f16b24] + Functors v0.5.2 [c27321d9] + Glob v1.3.1 [86223c79] + Graphs v1.12.0 [f0d1745a] + HalfIntegers v1.6.0 [34004b35] + HypergeometricFunctions v0.3.27 ⌃ [0d1a4710] + ITensorMPS v0.3.6 [2919e153] + ITensorNetworks v0.11.26 [666f501e] + ITensorNumericalAnalysis v0.2.0 ⌅ [9136182c] + ITensors v0.7.13 [615f187c] + IfElse v0.1.1 [313cdc1a] + Indexing v1.1.1 [d25df0c9] + Inflate v0.1.5 [22cec73e] + InitialValues v0.3.1 [842dd82b] + InlineStrings v1.4.3 [3587e190] + InverseFunctions v0.1.17 [92d709cd] + IrrationalConstants v0.2.4 [28f27b66] + IsApprox v2.0.0 [c8e1da08] + IterTools v1.10.0 [82899510] + IteratorInterfaceExtensions v1.0.0 [692b3bcd] + JLLWrappers v1.7.0 ⌅ [0b1a1467] + KrylovKit v0.8.3 [8ac3fa9e] + LRUCache v1.6.1 [2ab3a3ac] + LogExpFunctions v0.3.29 [1914dd2f] + MacroTools v0.5.15 [128add7d] + MicroCollections v0.2.0 [e1d29d7a] + Missings v1.2.0 ⌅ [23ae76d9] + NDTensors v0.3.74 [678767b0] + NamedGraphs v0.6.4 [bac558e1] + OrderedCollections v1.8.0 [90014a1f] + PDMats v0.11.32 [65ce6f38] + PackageExtensionCompat v1.0.2 [aea7be01] + PrecompileTools v1.2.1 [21216c6a] + Preferences v1.4.3 [43287f4e] + PtrArrays v1.3.0 [1fd47b50] + QuadGK v2.11.2 [189a3867] + Reexport v1.2.2 [42d2dcc6] + Referenceables v0.1.3 [ae029012] + Requires v1.3.1 [79098fc4] + Rmath v0.8.0 [d3ce8812] + SerializedElementArrays v0.1.0 [efcf1570] + Setfield v1.1.2 [699a6c99] + SimpleTraits v0.9.4 [a2af1166] + SortingAlgorithms v1.2.1 [a9a3c162] + SparseArrayKit v0.4.0 [276daf66] + SpecialFunctions v2.5.0 [03a91e81] + SplitApplyCombine v1.2.3 [171d559e] + SplittablesBase v0.1.15 [aedffcd0] + Static v1.1.1 [0d7ed370] + StaticArrayInterface v1.8.0 [90137ffa] + StaticArrays v1.9.13 [1e83bf80] + StaticArraysCore v1.4.3 [10745b16] + Statistics v1.11.1 [82ae8749] + StatsAPI v1.7.0 [2913bbd2] + StatsBase v0.34.4 [4c63d2b9] + StatsFuns v1.3.2 [5e0ebb24] + Strided v2.2.0 [4db3bf67] + StridedViews v0.3.2 [31cdf514] + StructWalk v0.2.1 [fd094767] + Suppressor v0.2.8 [3783bdb8] + TableTraits v1.0.1 [bd369af6] + Tables v1.12.0 [6aa20fa7] + TensorOperations v5.1.4 [24d252fe] + ThreadedScans v0.1.0 [a759f4b9] + TimerOutputs v0.5.28 [28d57a85] + Transducers v0.4.84 [9d95972d] + TupleTools v1.6.0 ⌅ [409d34a3] + VectorInterface v0.4.9 [bd1ec220] + Zeros v0.3.0 [efe28fd5] + OpenSpecFun_jll v0.5.6+0 [f50d1b31] + Rmath_jll v0.5.1+0 [0dad84c5] + ArgTools v1.1.2 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [8ba89e20] + Distributed v1.11.0 [f43a241f] + Downloads v1.7.0 [7b1f6079] + FileWatching v1.11.0 [9fa8497b] + Future v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [ac6e5ff7] + JuliaSyntaxHighlighting v1.12.0 [b27032c2] + LibCURL v0.6.4 [76f85450] + LibGit2 v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.12.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [a63ad114] + Mmap v1.11.0 [ca575930] + NetworkOptions v1.3.0 [44cfe95a] + Pkg v1.12.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [1a1011a3] + SharedArrays v1.11.0 [6462fe0b] + Sockets v1.11.0 [2f01184e] + SparseArrays v1.12.0 [f489334b] + StyledStrings v1.11.0 [4607b0f0] + SuiteSparse [fa267f1f] + TOML v1.0.3 [a4e569a6] + Tar v1.10.0 [8dfed614] + Test v1.11.0 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1 [deac9b47] + LibCURL_jll v8.11.1+1 [e37daf67] + LibGit2_jll v1.9.0+0 [29816b5a] + LibSSH2_jll v1.11.3+1 [14a3606d] + MozillaCACerts_jll v2024.12.31 [4536629a] + OpenBLAS_jll v0.3.29+0 [05823500] + OpenLibm_jll v0.8.5+0 [458c3c95] + OpenSSL_jll v3.0.16+0 [bea87d4a] + SuiteSparse_jll v7.8.3+2 [83775a58] + Zlib_jll v1.3.1+2 [8e850b90] + libblastrampoline_jll v5.12.0+0 [8e850ede] + nghttp2_jll v1.64.0+1 [3f19e933] + p7zip_jll v17.5.0+2 Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m` Installation completed after 3.14s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompilation completed after 327.16s ################################################################################ # Testing # Testing ITensorNumericalAnalysis Status `/tmp/jl_ZFVqni/Project.toml` [85a47980] Dictionaries v0.4.4 [c27321d9] Glob v1.3.1 [86223c79] Graphs v1.12.0 ⌃ [0d1a4710] ITensorMPS v0.3.6 [2919e153] ITensorNetworks v0.11.26 [666f501e] ITensorNumericalAnalysis v0.2.0 ⌅ [9136182c] ITensors v0.7.13 [678767b0] NamedGraphs v0.6.4 [03a91e81] SplitApplyCombine v1.2.3 [9a3f8284] Random v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_ZFVqni/Manifest.toml` [1520ce14] AbstractTrees v0.4.5 [7d9f7c33] Accessors v0.1.42 [79e6a3ab] Adapt v4.2.0 [66dad0bd] AliasTables v1.1.3 [dce04be8] ArgCheck v2.4.0 [ec485272] ArnoldiMethod v0.4.0 [4fba245c] ArrayInterface v7.18.0 [4c555306] ArrayLayouts v1.11.1 [198e06fe] BangBang v0.4.4 [9718e550] Baselet v0.1.1 [c3b6d118] BitIntegers v0.3.2 [8e7c35d0] BlockArrays v1.4.0 [d360d2e6] ChainRulesCore v1.25.1 [861a8166] Combinatorics v1.0.2 [f70d9fcc] CommonWorldInvalidations v1.0.0 [34da2185] Compat v4.16.0 [a33af91c] CompositionsBase v0.1.2 [187b0558] ConstructionBase v1.5.8 [9a962f9c] DataAPI v1.16.0 [b5a273c3] DataGraphs v0.2.5 [864edb3b] DataStructures v0.18.20 [e2d170a0] DataValueInterfaces v1.0.0 [244e2a9f] DefineSingletons v0.1.2 [85a47980] Dictionaries v0.4.4 [31c24e10] Distributions v0.25.117 [ffbed154] DocStringExtensions v0.9.3 [da5c29d0] EllipsisNotation v1.8.0 [e2ba6199] ExprTools v0.1.10 [e189563c] ExternalDocstrings v0.1.1 [1a297f60] FillArrays v1.13.0 [41a02a25] Folds v0.2.10 [d9f16b24] Functors v0.5.2 [c27321d9] Glob v1.3.1 [86223c79] Graphs v1.12.0 [f0d1745a] HalfIntegers v1.6.0 [34004b35] HypergeometricFunctions v0.3.27 ⌃ [0d1a4710] ITensorMPS v0.3.6 [2919e153] ITensorNetworks v0.11.26 [666f501e] ITensorNumericalAnalysis v0.2.0 ⌅ [9136182c] ITensors v0.7.13 [615f187c] IfElse v0.1.1 [313cdc1a] Indexing v1.1.1 [d25df0c9] Inflate v0.1.5 [22cec73e] InitialValues v0.3.1 [842dd82b] InlineStrings v1.4.3 [3587e190] InverseFunctions v0.1.17 [92d709cd] IrrationalConstants v0.2.4 [28f27b66] IsApprox v2.0.0 [c8e1da08] IterTools v1.10.0 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.7.0 ⌅ [0b1a1467] KrylovKit v0.8.3 [8ac3fa9e] LRUCache v1.6.1 [2ab3a3ac] LogExpFunctions v0.3.29 [1914dd2f] MacroTools v0.5.15 [128add7d] MicroCollections v0.2.0 [e1d29d7a] Missings v1.2.0 ⌅ [23ae76d9] NDTensors v0.3.74 [678767b0] NamedGraphs v0.6.4 [bac558e1] OrderedCollections v1.8.0 [90014a1f] PDMats v0.11.32 [65ce6f38] PackageExtensionCompat v1.0.2 [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.4.3 [43287f4e] PtrArrays v1.3.0 [1fd47b50] QuadGK v2.11.2 [189a3867] Reexport v1.2.2 [42d2dcc6] Referenceables v0.1.3 [ae029012] Requires v1.3.1 [79098fc4] Rmath v0.8.0 [d3ce8812] SerializedElementArrays v0.1.0 [efcf1570] Setfield v1.1.2 [699a6c99] SimpleTraits v0.9.4 [a2af1166] SortingAlgorithms v1.2.1 [a9a3c162] SparseArrayKit v0.4.0 [276daf66] SpecialFunctions v2.5.0 [03a91e81] SplitApplyCombine v1.2.3 [171d559e] SplittablesBase v0.1.15 [aedffcd0] Static v1.1.1 [0d7ed370] StaticArrayInterface v1.8.0 [90137ffa] StaticArrays v1.9.13 [1e83bf80] StaticArraysCore v1.4.3 [10745b16] Statistics v1.11.1 [82ae8749] StatsAPI v1.7.0 [2913bbd2] StatsBase v0.34.4 [4c63d2b9] StatsFuns v1.3.2 [5e0ebb24] Strided v2.2.0 [4db3bf67] StridedViews v0.3.2 [31cdf514] StructWalk v0.2.1 [fd094767] Suppressor v0.2.8 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.12.0 [6aa20fa7] TensorOperations v5.1.4 [24d252fe] ThreadedScans v0.1.0 [a759f4b9] TimerOutputs v0.5.28 [28d57a85] Transducers v0.4.84 [9d95972d] TupleTools v1.6.0 ⌅ [409d34a3] VectorInterface v0.4.9 [bd1ec220] Zeros v0.3.0 [efe28fd5] OpenSpecFun_jll v0.5.6+0 [f50d1b31] Rmath_jll v0.5.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [8ba89e20] Distributed v1.11.0 [f43a241f] Downloads v1.7.0 [7b1f6079] FileWatching v1.11.0 [9fa8497b] Future v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.12.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.12.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [a63ad114] Mmap v1.11.0 [ca575930] NetworkOptions v1.3.0 [44cfe95a] Pkg v1.12.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [1a1011a3] SharedArrays v1.11.0 [6462fe0b] Sockets v1.11.0 [2f01184e] SparseArrays v1.12.0 [f489334b] StyledStrings v1.11.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.3.0+1 [deac9b47] LibCURL_jll v8.11.1+1 [e37daf67] LibGit2_jll v1.9.0+0 [29816b5a] LibSSH2_jll v1.11.3+1 [14a3606d] MozillaCACerts_jll v2024.12.31 [4536629a] OpenBLAS_jll v0.3.29+0 [05823500] OpenLibm_jll v0.8.5+0 [458c3c95] OpenSSL_jll v3.0.16+0 [bea87d4a] SuiteSparse_jll v7.8.3+2 [83775a58] Zlib_jll v1.3.1+2 [8e850b90] libblastrampoline_jll v5.12.0+0 [8e850ede] nghttp2_jll v1.64.0+1 [3f19e933] p7zip_jll v17.5.0+2 Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. Testing Running tests... WARNING: Method definition add(ITensorNetworks.AbstractITensorNetwork{V} where V, ITensorNetworks.AbstractITensorNetwork{V} where V) in module ITensorNetworks at /home/pkgeval/.julia/packages/ITensorNetworks/bwoNF/src/abstractitensornetwork.jl:861 overwritten in module ITensorNumericalAnalysis at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/fixes.jl:41. Running test file test_complexitensorfunction.jl test cosh in binary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:64 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:65 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:78 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test sinh in binary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:64 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:65 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:78 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test exp in binary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:64 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:65 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:78 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test cos in binary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:64 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:65 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:78 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test sin in binary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:64 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:65 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:78 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test cosh in trinary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:91 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:92 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:107 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test sinh in trinary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:91 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:92 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:107 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test exp in trinary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:91 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:92 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:107 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test cos in trinary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:91 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:92 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:107 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test sin in trinary: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:91 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:92 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:107 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test tanh: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:112 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:113 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:126 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test poly: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:131 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::ComplexF64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:38 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:132 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:150 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 test const: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:161 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:170 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test cosh: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:194 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:195 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:203 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test sinh: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:194 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:195 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:203 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test exp: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:194 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:195 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:203 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test cos: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:194 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:195 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:203 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test sin: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:194 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:160 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:195 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:203 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 test single point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:238 Test threw exception Expression: evaluate(ψ, [z10, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:237 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:238 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test single point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:240 Test threw exception Expression: evaluate(ψ, [z20, z10], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:237 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:240 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 Test threw exception Expression: evaluate(ψ, [z, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:247 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 Test threw exception Expression: evaluate(ψ, [z, 0.5], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:243 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:251 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:257 Test threw exception Expression: evaluate(ψ, [z10, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:257 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:258 Test threw exception Expression: evaluate(ψ, [z20, z10], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:258 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:260 Test threw exception Expression: evaluate(ψ, [0, 0], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Int64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:260 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:261 Test threw exception Expression: evaluate(ψ, [0, z20], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:261 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:269 Test threw exception Expression: evaluate(ψ, [z10, z20], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:269 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 Test threw exception Expression: evaluate(ψ, [z, p0], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:271 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:274 Test threw exception Expression: evaluate(ψ, [0, 0], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Int64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:274 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test sums of points and plane: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:275 Test threw exception Expression: evaluate(ψ, [0, z20], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, ComplexIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{ComplexF64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:14 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:229 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:265 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_complexitensorfunction.jl:275 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] 401.937332 seconds (217.62 M allocations: 15.377 GiB, 2.22% gc time, 87.52% compilation time: <1% of which was recompilation) Running test file test_indexmaps.jl 7.538298 seconds (2.44 M allocations: 141.242 MiB, 2.20% gc time, 98.76% compilation time) Running test file test_integration.jl integration of operator*function in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:15 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [inlined] [25] integrate(operator::ITensorNetwork{Tuple{Int64, Int64}}, fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}; alg::String, take_sum::Bool, kwargs::@Kwargs{}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/integration.jl:31 [26] integrate(operator::ITensorNetwork{Tuple{Int64, Int64}}, fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/integration.jl:20 [27] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:15 [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:16 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:23 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] macro expansion @ ./timing.jl:621 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [38] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:488 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [43] _start() @ Base ./client.jl:560 simple integration 2D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:28 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] integrate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}; alg::String, take_sum::Bool, kwargs::@Kwargs{}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/integration.jl:16 [24] integrate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/integration.jl:6 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:29 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:34 [inlined] [30] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [31] macro expansion @ ./timing.jl:621 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [36] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [37] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [38] top-level scope @ none:6 [39] eval(m::Module, e::Any) @ Core ./boot.jl:488 [40] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [41] _start() @ Base ./client.jl:560 partial integration 3D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:53 Test threw exception Expression: abs(evaluate(ψ_fx, x) - f_correct(x)) <= 1.0e-8 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:41 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_integration.jl:53 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] 97.577107 seconds (55.11 M allocations: 3.032 GiB, 1.87% gc time, 97.11% compilation time: <1% of which was recompilation) Running test file test_operators.jl test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f1x, x), 1.0 + 2.0 * pi * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f2x, x), 1.0 + -1.0 * (2.0pi) ^ 2 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f3x, x), 1.0 + -1.0 * (2.0pi) ^ 3 * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f4x, x), 1.0 + 1.0 * (2.0pi) ^ 4 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f1x, x), 1.0 + 2.0 * pi * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f2x, x), 1.0 + -1.0 * (2.0pi) ^ 2 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f3x, x), 1.0 + -1.0 * (2.0pi) ^ 3 * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f4x, x), 1.0 + 1.0 * (2.0pi) ^ 4 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f1x, x), 1.0 + 2.0 * pi * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f2x, x), 1.0 + -1.0 * (2.0pi) ^ 2 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f3x, x), 1.0 + -1.0 * (2.0pi) ^ 3 * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f4x, x), 1.0 + 1.0 * (2.0pi) ^ 4 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f1x, x), 1.0 + 2.0 * pi * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f2x, x), 1.0 + -1.0 * (2.0pi) ^ 2 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f3x, x), 1.0 + -1.0 * (2.0pi) ^ 3 * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f4x, x), 1.0 + 1.0 * (2.0pi) ^ 4 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f1x, x), 1.0 + 2.0 * pi * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:37 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f2x, x), 1.0 + -1.0 * (2.0pi) ^ 2 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:38 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f3x, x), 1.0 + -1.0 * (2.0pi) ^ 3 * cos(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:40 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on MPS: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 Test threw exception Expression: ≈(1.0 + evaluate(ψ_f4x, x), 1.0 + 1.0 * (2.0pi) ^ 4 * sin(2.0 * pi * x), rtol = 0.001) MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:16 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:42 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test differentiation in 1D on tree: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:47 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:48 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:60 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test differentiation_operator_on_3D_function: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:65 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:66 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:88 [inlined] [31] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [32] macro expansion @ ./timing.jl:621 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [38] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [39] top-level scope @ none:6 [40] eval(m::Module, e::Any) @ Core ./boot.jl:488 [41] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [42] _start() @ Base ./client.jl:560 test multiplication_operator_in_1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:98 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:99 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:110 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test multiplication_operator_in_2D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:117 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:118 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:135 [inlined] [31] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [32] macro expansion @ ./timing.jl:621 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [38] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [39] top-level scope @ none:6 [40] eval(m::Module, e::Any) @ Core ./boot.jl:488 [41] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [42] _start() @ Base ./client.jl:560 test operator_proj in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:147 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:148 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:160 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test shift operators in 1D on Tree: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:167 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:168 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:203 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test double shift operators in 1D on Tree: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:226 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:227 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:263 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test shift operators in 2D on Tree: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:288 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:289 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:327 [inlined] [31] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [32] macro expansion @ ./timing.jl:621 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [38] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [39] top-level scope @ none:6 [40] eval(m::Module, e::Any) @ Core ./boot.jl:488 [41] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [42] _start() @ Base ./client.jl:560 corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:367 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:353 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:365 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:367 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:367 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:353 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:365 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:367 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] boundary apply: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:370 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] #evaluate#102 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:110 [inlined] [26] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [inlined] [27] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, x::Float64) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:107 [28] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:353 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:371 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:374 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] macro expansion @ ./timing.jl:621 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [40] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [41] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [42] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [43] top-level scope @ none:6 [44] eval(m::Module, e::Any) @ Core ./boot.jl:488 [45] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [46] _start() @ Base ./client.jl:560 corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:381 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:394 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:381 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:394 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:381 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:394 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] corner boundary test: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 Test threw exception Expression: inner(p, Zo, p) ≈ 0.0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Tuple{Int64, Int64}, String}, Tuple{Int64, Int64}, ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Tuple{Int64, Int64}, String}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetworks.BilinearFormNetwork{Tuple{Tuple{Int64, Int64}, String}, ITensorNetwork{Tuple{Tuple{Int64, Int64}, String}}, String, String, String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [21] inner(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}; dual_link_index_map::Function, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:135 [22] inner @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:126 [inlined] [23] #inner#755 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:23 [inlined] [24] inner(ϕ::ITensorNetwork{Tuple{Int64, Int64}}, A::ITensorNetwork{Tuple{Int64, Int64}}, ψ::ITensorNetwork{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/inner.jl:16 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:381 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:394 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:397 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] boundary apply: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:402 Got exception outside of a @test MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:381 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:403 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:408 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] macro expansion @ ./timing.jl:621 [inlined] [35] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:15 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [37] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:13 [inlined] [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1860 [inlined] [39] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/runtests.jl:1881 [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:488 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [44] _start() @ Base ./client.jl:560 test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:424 Test threw exception Expression: evaluate(ψ_fx, [0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:424 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] test delta-kernel in 1D: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 Test threw exception Expression: evaluate(ψ_fx, [x]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:416 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:426 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:439 Test threw exception Expression: evaluate(ψ_f, [0.5, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:439 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 Test threw exception Expression: evaluate(ψ_f, [x, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:441 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:442 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:444 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] insersecting lines: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:438 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:445 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:452 Test threw exception Expression: evaluate(ψ_f, [0.5, 0.5]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:452 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:453 Test threw exception Expression: evaluate(ψ_f, [0.5, 0.1]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [inlined] [25] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [26] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [28] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [30] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [32] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [34] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:453 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 Test threw exception Expression: evaluate(ψ_f, [0.5, x], [1, 2]) ≈ 0 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:455 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 Test threw exception Expression: evaluate(ψ_f, [x, delta], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}; ignore_edges::Tuple{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:142 [5] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, partition_vertices::Vector{NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:136 [6] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}; contract_kwargs::@NamedTuple{sequence::String}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:280 [7] region_scalar(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}, pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:275 [8] (::ITensorNetworks.var"#419#420"{@Kwargs{}, ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGraph{Tuple{Int64, Int64}}}, Dictionary{Any, Any}, typeof(ITensorNetworks.default_message)}})(pv::NamedGraphs.PartitionedGraphs.PartitionVertex{Tuple{Int64, Int64}}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [9] iterate @ ./generator.jl:48 [inlined] [10] _collect @ ./array.jl:810 [inlined] [11] collect_similar @ ./array.jl:732 [inlined] [12] map @ ./abstractarray.jl:3361 [inlined] [13] map @ ~/.julia/packages/NamedGraphs/nzlcC/src/lib/OrderedDictionaries/src/ordereddictionary.jl:56 [inlined] [14] #vertex_scalars#417 @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:300 [inlined] [15] vertex_scalars (repeats 2 times) @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:295 [inlined] [16] scalar_factors_quotient @ ~/.julia/packages/ITensorNetworks/bwoNF/src/caches/beliefpropagationcache.jl:312 [inlined] [17] logscalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; cache!::Nothing, cache_construction_kwargs::@NamedTuple{partitioned_vertices::Dictionary{Tuple{Int64, Int64}, Vector{Tuple{Int64, Int64}}}}, update_cache::Bool, cache_update_kwargs::@NamedTuple{maxiter::Int64, tol::Float64}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:67 [18] logscalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:51 [inlined] [19] scalar(alg::NDTensors.BackendSelection.Algorithm{:bp, @NamedTuple{}}, tn::ITensorNetwork{Tuple{Int64, Int64}}; kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:81 [20] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:80 [inlined] [21] scalar(tn::ITensorNetwork{Tuple{Int64, Int64}}; alg::String, kwargs::@Kwargs{}) @ ITensorNetworks ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:38 [22] scalar @ ~/.julia/packages/ITensorNetworks/bwoNF/src/contract.jl:37 [inlined] [23] #evaluate#101 @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:104 [inlined] [24] evaluate(fitn::ITensorNetworkFunction{Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, IndsNetworkMap{Tuple{Int64, Int64}, ITensors.Index, ITensorNetworks.IndsNetwork{Tuple{Int64, Int64}, ITensors.Index}, RealIndexMap{Dictionary{Any, Any}, Dictionary{Any, Any}}}}, xs::Vector{Float64}, dims::Vector{Int64}) @ ITensorNumericalAnalysis ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/src/itensornetworkfunction.jl:95 [25] top-level scope @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:15 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [27] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:415 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [29] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:430 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [31] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:449 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:1771 [inlined] [33] macro expansion @ ~/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:457 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.13/Test/src/Test.jl:676 [inlined] line and point: Error During Test at /home/pkgeval/.julia/packages/ITensorNumericalAnalysis/6UuXo/test/test_operators.jl:458 Test threw exception Expression: evaluate(ψ_f, [delta, x], [1, 2]) ≈ 1 MethodError: promote_type(::Type{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, ::Type{Union{}}) is ambiguous. Candidates: promote_type(ElT::Type, ::Type{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:37 promote_type(ElT::Type, ::Type{<:Complex{<:NDTensors.UnspecifiedTypes.UnspecifiedZero}}) @ NDTensors.UnspecifiedTypes ~/.julia/packages/NDTensors/F4sTz/src/lib/UnspecifiedTypes/src/unspecifiedzero.jl:39 Possible fix, define promote_type(::Type, ::Type{Union{}}) Stacktrace: [1] promote_eltype(v1::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, v2::Tuple{}) @ Base ./abstractarray.jl:1655 [2] _shrink(shrinker!::typeof(setdiff!), itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{Tuple{}}) @ Base ./array.jl:3112 [3] setdiff(itr::Vector{NamedGraphs.PartitionedGraphs.PartitionEdge{Tuple{Int64, Int64}, NamedGraphs.NamedEdge{Tuple{Int64, Int64}}}}, itrs::Tuple{}) @ Base ./array.jl:3118 [4] environment(bp_cache::ITensorNetworks.BeliefPropagationCache{NamedGraphs.PartitionedGraphs.PartitionedGraph{Tuple{Int64, Int64}, Tuple{Int64, Int64}, ITensorNetwork{Tuple{Int64, Int64}}, NamedGrap PkgEval terminated after 1406.5s: test log exceeded the size limit