Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c845947
Blah
JoeyT1994 Sep 13, 2024
90c7251
Merge remote-tracking branch 'origin/main'
JoeyT1994 Oct 17, 2024
86f3087
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Oct 17, 2024
6ff0cd5
Bug fix in current ortho. Change test
JoeyT1994 Oct 17, 2024
34e8e5e
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Nov 22, 2024
d096722
Fix bug
JoeyT1994 Nov 26, 2024
70a3f7e
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Dec 5, 2024
9d64fe8
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Mar 19, 2025
9d6c1bc
File removed
JoeyT1994 Mar 19, 2025
ae17245
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Mar 23, 2025
b648353
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 1, 2025
4e7d189
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 3, 2025
83c92b0
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 7, 2025
6f024ee
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 11, 2025
1106403
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 17, 2025
5641d32
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Apr 30, 2025
59ef115
Merge remote-tracking branch 'upstream/main'
JoeyT1994 May 9, 2025
72bea86
Merge remote-tracking branch 'upstream/main'
JoeyT1994 May 13, 2025
bc14b33
Merge remote-tracking branch 'upstream/main'
JoeyT1994 May 20, 2025
fdd47c8
Merge remote-tracking branch 'upstream/main'
JoeyT1994 May 24, 2025
d8d3e52
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Jul 21, 2025
79b3aa2
Fix bug in delete_messages. Parameter restrictions in apply.jl
JoeyT1994 Jul 21, 2025
d9ddd42
Bleh
JoeyT1994 Aug 15, 2025
88c51ca
Merge remote-tracking branch 'upstream/main'
JoeyT1994 Aug 22, 2025
b3c6bc8
Preserve message type on normalization
JoeyT1994 Aug 22, 2025
cc8c2b4
Restore Tensor Ops
JoeyT1994 Aug 22, 2025
01e89dc
Bump .toml
JoeyT1994 Aug 22, 2025
b587c93
Bump all Tomls
JoeyT1994 Aug 22, 2025
9ce17a4
Simplify and revert subdirectory .tomls
JoeyT1994 Aug 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorNetworks"
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
version = "0.14.0"
version = "0.14.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
4 changes: 2 additions & 2 deletions src/caches/abstractbeliefpropagationcache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ function rescale_partitions(
isempty(pv_vs) && continue

vn = region_scalar(bpc, pv)
s = isreal(vn) ? sign(vn) : 1.0
vn = s * inv(vn^(1 / length(pv_vs)))
s = isreal(vn) ? sign(vn) : one(vn)
vn = s * vn^(-inv(oftype(vn, length(pv_vs))))
set!(vertices_weights, first(pv_vs), s*vn)
for v in pv_vs[2:length(pv_vs)]
set!(vertices_weights, v, vn)
Expand Down
2 changes: 1 addition & 1 deletion src/caches/beliefpropagationcache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function rescale_messages(bp_cache::BeliefPropagationCache, pes::Vector{<:Partit
n *= sign(n)
end

sf = (1 / sqrt(n)) ^ (1 / length(me))
sf = inv(sqrt(n)) ^ inv(oftype(n, length(me)))
set!(mts, pe, sf .* me)
set!(mts, reverse(pe), sf .* mer)
end
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Glob = "1.3.1"
Graphs = "1.12.0"
GraphsFlows = "0.1.1"
ITensorMPS = "0.3.6"
ITensorNetworks = "0.14.0"
ITensorNetworks = "0.14.1"
ITensors = "0.7, 0.8, 0.9"
KrylovKit = "0.8, 0.9, 0.10"
LinearAlgebra = "1.10.0"
Expand Down
5 changes: 4 additions & 1 deletion test/test_normalize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ using ITensorNetworks:
QuadraticFormNetwork,
edge_scalars,
norm_sqr_network,
messages,
random_tensornetwork,
scalartype,
siteinds,
vertex_scalars,
rescale
Expand Down Expand Up @@ -39,7 +41,7 @@ using Test: @test, @testset

g = named_grid((Lx, Ly))
s = siteinds("S=1/2", g)
x = random_tensornetwork(rng, s; link_space=χ)
x = random_tensornetwork(rng, ComplexF32, s; link_space=χ)

ψ = normalize(x; alg="exact")
@test scalar(norm_sqr_network(ψ); alg="exact") ≈ 1.0
Expand All @@ -49,6 +51,7 @@ using Test: @test, @testset
x; alg="bp", (cache!)=ψIψ_bpc, update_cache=true, cache_update_kwargs=(; maxiter=20)
)
ψIψ_bpc = ψIψ_bpc[]
@test all(m -> scalartype(only(m)) == ComplexF32, messages(ψIψ_bpc))
@test all(x -> x ≈ 1.0, edge_scalars(ψIψ_bpc))
@test all(x -> x ≈ 1.0, vertex_scalars(ψIψ_bpc))
@test scalar(QuadraticFormNetwork(ψ); alg="bp", cache_update_kwargs=(; maxiter=20)) ≈ 1.0
Expand Down
Loading