dwave.cloud.qpu.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 filter out any non-QPU solvers.
Current implementation filters out 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 2000Q.
@staticmethod def is_solver_handled(solver): return solver and solver.id.startswith('2000Q')