(self, *args, **kwargs)
| 1058 | _handled_encoding_formats = {"qp"} |
| 1059 | |
| 1060 | def __init__(self, *args, **kwargs): |
| 1061 | super().__init__(*args, **kwargs) |
| 1062 | |
| 1063 | # The exact sequence of nodes/edges is used in encoding problems and must be preserved |
| 1064 | try: |
| 1065 | self._encoding_qubits = self.properties['qubits'] |
| 1066 | except KeyError: |
| 1067 | raise SolverPropertyMissingError("Missing solver property: 'properties.qubits'") |
| 1068 | |
| 1069 | if 'couplers' not in self.properties: |
| 1070 | raise SolverPropertyMissingError("Missing solver property: 'properties.couplers'") |
| 1071 | |
| 1072 | # Create a set of default parameters for the queries |
| 1073 | self._params = {} |
| 1074 | |
| 1075 | # Add derived properties specific for this solver class |
| 1076 | self.derived_properties.update({'lower_noise', 'num_active_qubits', 'version', 'graph_id'}) |
| 1077 | |
| 1078 | def __repr__(self): |
| 1079 | return f"{type(self).__name__}(name={self.name!r}, graph_id={self.graph_id!r})" |
nothing calls this directly
no test coverage detected