From 6ec560f83882b3e58df4dce7c36a8046030c2dc7 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Tue, 9 Jul 2024 14:00:47 +0200 Subject: [PATCH] Fix magnetisation test --- test/tf_ising.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tf_ising.jl b/test/tf_ising.jl index 747e8485..8f2e7a56 100644 --- a/test/tf_ising.jl +++ b/test/tf_ising.jl @@ -43,4 +43,4 @@ magn = expectation_value(result.peps, M, result.env) @test result.E ≈ e atol = 5e-2 @test imag(magn) ≈ 0 atol = 1e-6 -@test real(magn) ≈ mᶻ atol = 5e-2 +@test abs(magn) ≈ mᶻ atol = 5e-2