(self)
| 922 | """Test Client.get_solvers(**filters).""" |
| 923 | |
| 924 | def setUp(self): |
| 925 | # mock solvers |
| 926 | self.qpu1 = StructuredSolver(client=None, data={ |
| 927 | "properties": { |
| 928 | "supported_problem_types": ["qubo", "ising"], |
| 929 | "qubits": [0, 1, 2], |
| 930 | "couplers": [[0, 1], [0, 2], [1, 2]], |
| 931 | "num_qubits": 3, |
| 932 | "num_reads_range": [0, 100], |
| 933 | "parameters": { |
| 934 | "num_reads": "Number of samples to return.", |
| 935 | "postprocess": "either 'sampling' or 'optimization'" |
| 936 | }, |
| 937 | "topology": { |
| 938 | "type": "chimera", |
| 939 | "shape": [16, 16, 4] |
| 940 | }, |
| 941 | "category": "qpu", |
| 942 | "tags": ["lower_noise"] |
| 943 | }, |
| 944 | "identity": { |
| 945 | "name": "qpu1", |
| 946 | "version": { |
| 947 | "graph_id": "wg1", |
| 948 | }, |
| 949 | }, |
| 950 | "description": "QPU Chimera solver", |
| 951 | "status": "online", |
| 952 | "avg_load": 0.1 |
| 953 | }) |
| 954 | self.qpu2 = StructuredSolver(client=None, data={ |
| 955 | "properties": { |
| 956 | "supported_problem_types": ["qubo", "ising"], |
| 957 | "qubits": [0, 1, 2, 3, 4], |
| 958 | "couplers": [[0, 1], [0, 2], [1, 2], [2, 3], [3, 4]], |
| 959 | "num_qubits": 5, |
| 960 | "num_reads_range": [0, 200], |
| 961 | "parameters": { |
| 962 | "num_reads": "Number of samples to return.", |
| 963 | "flux_biases": "Supported ...", |
| 964 | "anneal_schedule": "Supported ..." |
| 965 | }, |
| 966 | "topology": { |
| 967 | "type": "pegasus", |
| 968 | "shape": [6, 6, 12] |
| 969 | }, |
| 970 | "category": "qpu", |
| 971 | "vfyc": True |
| 972 | }, |
| 973 | "identity": { |
| 974 | "name": "qpu2", |
| 975 | "version": { |
| 976 | "graph_id": "wg1", |
| 977 | }, |
| 978 | }, |
| 979 | "description": "QPU Pegasus solver", |
| 980 | "avg_load": 0.2 |
| 981 | }) |
nothing calls this directly
no test coverage detected