Browse Source

sync

master
Tom 5 years ago
parent
commit
5c2bd8bdef
3 changed files with 3 additions and 4 deletions
  1. +1
    -1
      run_sampler_on_scope.py
  2. +1
    -2
      util/data_extraction.py
  3. +1
    -1
      util/script.py

+ 1
- 1
run_sampler_on_scope.py View File

@ -99,7 +99,7 @@ def __run_qpu(ising_qubo_collection, model_type, result_collection):
solver_args = {}
solver_args["annealing_time"] = int(input("annealing time (in us): "))
solver_args["num_reads"] = int(input("number of reads per sample: "))
solver_args["num_reads"] = int(input("number of reads per instance: "))
__run_on_scope(solver_input_query,
db[result_collection],


+ 1
- 2
util/data_extraction.py View File

@ -165,11 +165,10 @@ def extract_minisat_results():
idb = script.connect_to_instance_pool()
scope = input("scope: ")
result_collection = input("result collection: ")
table_name = input("table name: ")
runs = queries.Minisat_run_scope_query_raw(idb)
runs.query(scope, result_collection)
runs.query(scope, "minisat_runs")
insert_row = ("INSERT INTO {} "
"(run_id, "


+ 1
- 1
util/script.py View File

@ -186,7 +186,7 @@ def create_wmis_qubos_for_scope(db, scope):
for instance, instance_id in instances:
qubo = SAT2QUBO.WMISdictQUBO(instance)
write_qubo_to_pool_db(db["wmis_qubos_2"], qubo, instance_id)
write_qubo_to_pool_db(db["wmis_qubos"], qubo, instance_id)
def create_wmis_2_qubos_for_scope(db, scope):
instances = queries.Instance_scope_query(db)


Loading…
Cancel
Save