dwave.cloud.sw.Client.is_solver_handled¶
-
static
Client.is_solver_handled(solver)¶ Determine if the specified solver should be handled by this client.
This predicate function overrides superclass to allow only remote software solvers.
Current implementation allows only D-Wave software clients with solver IDs prefixed with c4-sw. If needed, update this method to suit your solver naming scheme.
Examples
This example filters solvers for those prefixed My_SW_Solver.
@staticmethod def is_solver_handled(solver): return solver and solver.id.startswith('My_SW_Solver')