Skip to content

Commit

Permalink
[ITensorGPU] Loosen test rtol (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT authored Jan 16, 2024
1 parent b8d28b5 commit 791f690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ITensorGPU/test/test_dmrg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ end
dmrg_params = (; nsweeps=4, maxdim=10, cutoff=1e-8, noise=1e-8, outputlevel=0)
observer = DMRGObserver(["Z"], s; energy_tol=1e-4, minsweeps=10)
E, ψ = dmrg(H, ψ0; observer=observer, dmrg_params...)
@test expect(ψ, "Z") observer.measurements["Z"][end]
@test expect(ψ, "Z") observer.measurements["Z"][end] rtol =
10 * sqrt(eps(real(ITensors.scalartype(ψ0))))
@test correlation_matrix(ψ, "Z", "Z") correlation_matrix(cpu(ψ), "Z", "Z")
end

Expand Down

0 comments on commit 791f690

Please sign in to comment.