Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Apr 16, 2021
1 parent 6d702d2 commit 76ae862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions benchmarks/low_energy_approx_chimera.jl
Expand Up @@ -33,7 +33,7 @@ s = ArgParseSettings("description")
arg_type = Float64
help = "beta value"
"--chi", "-c"
default = 20
default = typemax(Int)
arg_type = Int
help = "cutoff size"
"--n_sols", "-n"
Expand Down Expand Up @@ -86,12 +86,11 @@ data = split.(readlines(open(fil)))

i = findall(x->x[1]==file, data)[1]
ground_ref = [parse(Int, el) for el in data[i][4:end]]
#TODO this may need to be corrected

f(i) = (i == 0) ? -1 : 1
ground_spins = map(f, ground_ref)
println(ground_spins)
energy_ref = energy(ground_spins, ig)
println(energy_ref)


ses = spectrum_cutoff:-1:lower_cutoff
step = 10
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/tests_on_chimera.jl
Expand Up @@ -112,7 +112,7 @@ f(i) = (i == 0) ? -1 : 1
ground_spins = map(f, ground_ref)
energy_ref = energy(ground_spins, ig)

println("reference energy form data = ", energy_ref)
println("reference energy form real ground state = ", energy_ref)
println("reference energy form file = ", data[i][3])

spins_mat = vecvec2matrix(sols.states)
Expand Down

0 comments on commit 76ae862

Please sign in to comment.