sync
This commit is contained in:
@@ -99,7 +99,7 @@ def __run_qpu(ising_qubo_collection, model_type, result_collection):
|
|||||||
|
|
||||||
solver_args = {}
|
solver_args = {}
|
||||||
solver_args["annealing_time"] = int(input("annealing time (in us): "))
|
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,
|
__run_on_scope(solver_input_query,
|
||||||
db[result_collection],
|
db[result_collection],
|
||||||
|
@@ -165,11 +165,10 @@ def extract_minisat_results():
|
|||||||
idb = script.connect_to_instance_pool()
|
idb = script.connect_to_instance_pool()
|
||||||
|
|
||||||
scope = input("scope: ")
|
scope = input("scope: ")
|
||||||
result_collection = input("result collection: ")
|
|
||||||
table_name = input("table name: ")
|
table_name = input("table name: ")
|
||||||
|
|
||||||
runs = queries.Minisat_run_scope_query_raw(idb)
|
runs = queries.Minisat_run_scope_query_raw(idb)
|
||||||
runs.query(scope, result_collection)
|
runs.query(scope, "minisat_runs")
|
||||||
|
|
||||||
insert_row = ("INSERT INTO {} "
|
insert_row = ("INSERT INTO {} "
|
||||||
"(run_id, "
|
"(run_id, "
|
||||||
|
@@ -186,7 +186,7 @@ def create_wmis_qubos_for_scope(db, scope):
|
|||||||
for instance, instance_id in instances:
|
for instance, instance_id in instances:
|
||||||
qubo = SAT2QUBO.WMISdictQUBO(instance)
|
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):
|
def create_wmis_2_qubos_for_scope(db, scope):
|
||||||
instances = queries.Instance_scope_query(db)
|
instances = queries.Instance_scope_query(db)
|
||||||
|
Reference in New Issue
Block a user