Skip to content

Commit

Permalink
solutons
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Jul 11, 2024
1 parent f73b063 commit 2f299f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions check_sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def csv_write_hist(file_name, hist, key1 = "value", key2 = "count"):
energy_computed = dimod.utilities.ising_energy(solution_vars_ising, lp.ising[0], lp.ising[1])

print("Ising energy", energy_computed)
print("Ising offset", lp.ising[2])

print("Ising energy + offset", energy_computed + lp.ising[2])

Expand Down
2 changes: 1 addition & 1 deletion decipher_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def print_results(dict_list):
path_to_results = os.path.join(ROOT, "AGV_quantum", "ising", "sbm_results", "H100_results.csv")
path_to_annealing = os.path.join(ROOT, "AGV_quantum", "annealing_results", "tiny_2_AGV", "new_bqm.pkl")

size = "tiny"
size = "small"
instance = f"{size}_ising"
path_to_renumeration = os.path.join(ROOT, "AGV_quantum", "ising", f"{instance}_renumeration.pkl")
path_to_lp = os.path.join(ROOT, "AGV_quantum", "lp_files", f"lp_{size}.pkl")
Expand Down

0 comments on commit 2f299f1

Please sign in to comment.