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