dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Extract and further abstract region/endpoint resolution #577

Closed randomir closed 1 year ago

randomir commented 1 year ago

Issue

The current implementation has several issues:

Proposed solution

Extract/re-implement the ad hoc Client methods for fetching Leap regions and resolving region code to SAPI endpoint into a new helper class, something like dwave.cloud.regions.RegionsRegistry.

RegionsRegistry should provide an interface to: