original_docstring: Range of linear biases allowed by the QPU.
docstring: Range of linear biases allowed by the QPU.
docstring_tokens: Range of linear biases allowed by the QPU .
code: def qpu_linear_range(self) -> Tuple[float, float]:
          """Range of linear biases allowed by the QPU."""
          try:
              return self._qpu_linear_range
          except AttributeError:
              pass
  
          # get the energy range
          try:
              energy_range = tuple(self.child.properties['h_range'])
          except KeyError as err:
              # for backwards compatibility with old software solvers
              if self.child.solver.is_software:
                  energy_range = (-2, 2)
              else:
                  raise err
  
          self._qpu_linear_range = energy_range
  
          return energy_range
code_tokens: def qpu_linear_range ( self ) -> Tuple [ float , float ] : try : return self . _qpu_linear_range except AttributeError : pass try : energy_range = tuple ( self . child . properties [ 'h_range' ] ) except KeyError as err : if self . child . solver . is_software : energy_range = ( - 2 , 2 ) else : raise err self . _qpu_linear_range = energy_range return energy_range
short_docstring: Range of linear biases allowed by the QPU.
short_docstring_tokens: Range of linear biases allowed by the QPU .
comment: """Range of linear biases allowed by the QPU."""$SEP$# get the energy range$SEP$# for backwards compatibility with old software solvers