how to set up factoring-demo

Configuring the Demo

Access to a D-Wave system must be configured, as described in the dwave-cloud-client documentation. A default solver is required.


The  dwave-cloud-client link is broken and when I run python

It shows

File "/anaconda3/envs/d_wave/lib/python3.6/site-packages/dwave/cloud/", line 877, in get_solver
return self.solvers(**features)[0]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 53, in <module>
output = factor(P)
File "/Users/zhedamai/Desktop/APS1050/d_wave/factoring-demo/factoring/", line 40, in wrapper
return f(*args, **kwargs)
File "/Users/zhedamai/Desktop/APS1050/d_wave/factoring-demo/factoring/", line 95, in factor
sampler = DWaveSampler(solver_features=dict(online=True, name='DW_2000Q.*'))
File "/anaconda3/envs/d_wave/lib/python3.6/site-packages/dwave/system/samplers/", line 111, in __init__
self.solver = self.client.get_solver(name=solver, features=solver_features)
File "/anaconda3/envs/d_wave/lib/python3.6/site-packages/dwave/cloud/", line 879, in get_solver
raise SolverError("No solvers with the required features available") No solvers with the required features available


Could you please help take a look at it?




Please sign in to leave a comment.

Didn't find what you were looking for?

New post