Skip to content

Commit

Permalink
Argument rearrange DMRGx
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Mar 26, 2024
1 parent eb3fa77 commit e6e8c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_treetensornetworks/test_solvers/test_dmrg_x.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ using Test

ϕ = dmrg_x(H, ψ; nsites=2, dmrg_x_kwargs...)

@test inner(H, ψ', ψ) / inner(ψ, ψ) inner(H, ϕ', ϕ) / inner(ϕ, ϕ) rtol = 1e-1
@test inner(H, ψ, H, ψ) inner(H, ψ', ψ)^2 rtol = 1e-7
@test inner(H, ϕ, H, ϕ) inner(H, ϕ', ϕ)^2 rtol = 1e-7
@test inner', H, ψ) / inner(ψ, ψ) inner(ϕ', H, ϕ) / inner(ϕ, ϕ) rtol = 1e-1
@test inner(H, ψ, H, ψ) inner(ψ', H, ψ)^2 rtol = 1e-7
@test inner(H, ϕ, H, ϕ) inner(ϕ',H, ϕ)^2 rtol = 1e-7

ϕ̃ = dmrg_x(H, ϕ; nsites=1, dmrg_x_kwargs...)

Expand Down

0 comments on commit e6e8c6f

Please sign in to comment.