dwave.cloud.client.Client.is_solver_handled#

static Client.is_solver_handled(solver)[source]#

Determine if the specified solver should be handled by this client.

Default implementation accepts all solvers (always returns True). Override this predicate function with a subclass if you want to specialize your client for a particular type of solvers.

Examples

This function accepts only solvers named “My_Solver_*”.

@staticmethod
def is_solver_handled(solver):
    return solver and solver.id.startswith('My_Solver_')