openjij.sampler.base_sa_sample_hubo

openjij.sampler.base_sa_sample_hubo#

Functions#

base_sample_hubo(→ openjij.sampler.response.Response)

to_oj_response(→ openjij.sampler.response.Response)

Module Contents#

openjij.sampler.base_sa_sample_hubo.base_sample_hubo(hubo: dict[tuple, float], vartype: str | None = None, num_sweeps: int = 1000, num_reads: int = 1, num_threads: int = 1, beta_min: float | None = None, beta_max: float | None = None, update_method: str = 'METROPOLIS', random_number_engine: str = 'XORSHIFT', seed: int | None = None, temperature_schedule: str = 'GEOMETRIC') Response[source]#
Parameters:
  • hubo (dict[tuple, float])

  • vartype (Optional[str])

  • num_sweeps (int)

  • num_reads (int)

  • num_threads (int)

  • beta_min (Optional[float])

  • beta_max (Optional[float])

  • update_method (str)

  • random_number_engine (str)

  • seed (Optional[int])

  • temperature_schedule (str)

Return type:

Response

openjij.sampler.base_sa_sample_hubo.to_oj_response(variables: list[list[int | float]], index_list: list[int | str | tuple[int, Ellipsis]], energies: list[float], vartype: str) Response[source]#
Parameters:
Return type:

Response