Skip to content

Commit

Permalink
Updaded example to SpinGlassEngine 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmierz committed Oct 11, 2024
1 parent d9c42f7 commit 2753172
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/ising_model_on_a_kings_graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ function run_square_diag_bench(::Type{T}; topology::NTuple{3, Int}) where {T}
m, n, potts_h, transform,
)

ctr = MpsContractor{SVDTruncate, NoUpdate, T}(
net, params;
onGPU = false, beta = T(2), graduate_truncation = true,
)

# After update to SpinGlassEngine 1.5
# ctr = MpsContractor(SVDTruncate, net, params;
# onGPU = false, beta = T(2), graduate_truncation = true,
# )
ctr = MpsContractor(SVDTruncate, net, params;
onGPU = false, beta = T(2), graduate_truncation = true)

droplets = SingleLayerDroplets(; max_energy = 10, min_size = 5, metric = :hamming)
merge_strategy = merge_branches(
Expand Down

0 comments on commit 2753172

Please sign in to comment.