<jupyter_start><jupyter_text>Test binary instances from Burkardt taken from https://people.math.sc.edu/Burkardt/datasets/datasets.html  Test 10 bit binary with leap<jupyter_code>model = ModelReader.read(filename='BURKARDT_DATA/BINARY/reid.lp',model_name = "Test_Bin_reid", model_class=AdvModel)
qp = QuadraticProgram()
qp.from_docplex(model)
dwave_solver_hybrid = DWaveMinimumEigensolver(sampler =  LeapHybridSampler())
optimizer = MinimumEigenOptimizer(dwave_solver_hybrid)
result = optimizer.solve(qp) # Problem ID : 8f677f6a-7c23-481c-ad1e-e2887cc8758f
result
print(qp.export_as_lp_string())<jupyter_output>\ This file has been generated by DOcplex
\ ENCODING=ISO-8859-1
\Problem name: Test_Bin_reid

Maximize
 obj: 1
Subject To
 c1: x_1 + x_6 = 1
 c2: x_6 + x_3 = 1
 c3: x_1 + x_2 + x_7 = 1
 c4: x_3 + x_7 + x_4 + x_8 = 1
 c5: x_8 + x_5 = 1
 c6: x_2 + x_9 = 1
 c7: x_4 + x_9 + x_10 = 1
 c8: x_5 + x_10 = 1

Bounds
 0 <= x_1 <= 1
 0 <= x_6 <= 1
 0 <= x_3 <= 1
 0 <= x_2 <= 1
 0 <= x_7 <= 1
 0 <= x_4 <= 1
 0 <= x_8 <= 1
 0 <= x_5 <= 1
 0 <= x_9 <= 1
 0 <= x_10 <= 1

Binaries
 x_1 x_6 x_3 x_2 x_7 x_4 x_8 x_5 x_9 x_10
End<jupyter_text>Solve with DWaveCliqueSampler<jupyter_code># Use D-Wave QPU as a minimum eigen solver
# See https://github.com/dwavesystems/dwave-qiskit-plugin
num_reads = 1000
cliqueSampler = DWaveCliqueSampler()
dwave_solver_clique = DWaveMinimumEigensolver(sampler = cliqueSampler, num_reads = num_reads)
optimizer = MinimumEigenOptimizer(dwave_solver_clique)
result = optimizer.solve(qp) # Problem ID : 74108957-e013-40d5-a7ff-e88c9c552ab2
result
result.min_eigen_solver_result.sampleset.to_pandas_dataframe()<jupyter_output><empty_output><jupyter_text>Test 20 bit binary Leap<jupyter_code>model = ModelReader.read(filename='BURKARDT_DATA/BINARY/two_by_four.lp',model_name = "Test_Bin_16", model_class=AdvModel)
qp = QuadraticProgram()
qp.from_docplex(model)
optimizer_hybrid = MinimumEigenOptimizer(dwave_solver_hybrid)
result = optimizer_hybrid.solve(qp) # Problem ID : 1270f318-2655-4417-a2de-5daf6c4e017a
result<jupyter_output><empty_output><jupyter_text>Solve with DWaveCliqueSampler<jupyter_code>result = optimizer.solve(qp) # Problem ID : 93df81b0-9ca4-450e-a921-edf22bd6b5ee
result
result.min_eigen_solver_result.sampleset.to_pandas_dataframe()
model.solve()<jupyter_output>* No objective to optimize - searching for a feasible solution
{'fraction_non_alphanumeric': 0.1080168776371308, 'fraction_numerical': 0.07468354430379746, 'mean_word_length': 5.774285714285714, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '494885', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 1113, 'n_tokens_neox': 993, 'n_words': 193, 'path': 'comparison/Ocean/LinearProgramming/DWave_Qiskit_Plugin_Test/External/Binary_LP_BURKARDT.ipynb', 'repo_name': 'tomtuamnuq/compare-qiskit-ocean', 'size': '2370'}