Skip to content

Commit

Permalink
MPS_search gives correct energy when max_states < N^2-1
Browse files Browse the repository at this point in the history
  • Loading branch information
annamariadziubyna committed Feb 23, 2021
1 parent 313917c commit b3540d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/MPS_search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ states = all_states(get_prop(ig, :rank))
end

@testset "Results from solve agree with brute-force" begin
# The energy is wrong when max_states > N
# The energy is wrong when max_states > N^2-2

for max_states [1, N, 2*N, 3*N]#, N^2-1, N^2]
for max_states [1, N, 2*N, 3*N, N^2-3, N^2-2]#, N^2-1, N^2]
states, prob, pCut = solve(rψ, max_states)
sp = brute_force(ig, num_states = max_states)

Expand Down

0 comments on commit b3540d6

Please sign in to comment.