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 demo.py

It shows

File "/anaconda3/envs/d_wave/lib/python3.6/site-packages/dwave/cloud/client.py", 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 "demo.py", line 53, in <module>
output = factor(P)
File "/Users/zhedamai/Desktop/APS1050/d_wave/factoring-demo/factoring/interfaces.py", line 40, in wrapper
return f(*args, **kwargs)
File "/Users/zhedamai/Desktop/APS1050/d_wave/factoring-demo/factoring/interfaces.py", 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/dwave_sampler.py", 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/client.py", line 879, in get_solver
raise SolverError("No solvers with the required features available")
dwave.cloud.exceptions.SolverError: No solvers with the required features available

 

Could you please help take a look at it?

0

Comments

4 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post