How do you use your API through python?

Hello! I've been trying this, and getting the error "API token not defined"
 
from dwave.cloud import Client
client = Client.from_config(token='my_actual_token')
client.get_solvers()

# Submit BQM to a D-Wave sampler
sampler = EmbeddingComposite(DWaveSampler())
 
Could anyone help me out?
1

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post