Skip to content

Commit 9ec6b7d

Browse files
committed
fix tests
1 parent 3c834d2 commit 9ec6b7d

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ normalize_state!(tn)
2121
# generate a BP state, and do BP until convergence
2222
bp_state = BPState(tn)
2323
bp_path = BPPath(tn)
24-
bp!(bp_state, bp_path, tn, err_bound = 1e-8)
24+
bp!(bp_state, bp_path, tn, atol = 1e-8)
2525

2626
# gauge transform the state
2727
gauge!(tn, bp_state)

test/bp.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ using BPGauge
22
using Graphs, LinearAlgebra, OMEinsum
33
using Test
44

5+
using Random
6+
Random.seed!(1234)
7+
58
@testset "bp" begin
69
g = random_regular_graph(30, 3)
710

test/gauge.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ using BPGauge
22
using Graphs, LinearAlgebra, OMEinsum
33
using Test
44

5+
using Random
6+
Random.seed!(1234)
7+
58
using BPGauge: square_root
69

710
@testset "absorb" begin

test/utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ using BPGauge
22
using Graphs, LinearAlgebra, OMEinsum
33
using Test
44

5+
using Random
6+
Random.seed!(1234)
7+
58
@testset "graphs" begin
69
g = BPGauge.square_lattice(10, 10, 0.8)
710
@test nv(g) == 80

0 commit comments

Comments
 (0)