openjij
Framework for the Ising model and QUBO.
Loading...
Searching...
No Matches
openjij::sampler Namespace Reference

Namespaces

namespace  base_sa_sample_hubo
namespace  csqa_sampler
namespace  response
namespace  sa_sampler
namespace  sampler
namespace  sqa_sampler

Classes

struct  IntegerSAResult
class  SASampler
 Class for executing simulated annealing. More...

Functions

template<class ModelType, class RandType, class StateUpdater>
IntegerSAResult BaseSA (const ModelType &model, const utility::TemperatureSchedule schedule, const std::int64_t num_sweeps, const typename RandType::result_type seed, const double min_T, const double max_T, const bool log_history)
template<class ModelType, class UpdaterType>
IntegerSAResult SolveByIntegerSAImpl (const ModelType &model, const std::int64_t num_sweeps, const algorithm::RandomNumberEngine rand_type, const utility::TemperatureSchedule schedule, const std::int64_t seed, const double min_T, const double max_T, const bool log_history)
template<class ModelType>
IntegerSAResult SolveByIntegerSA (const ModelType &model, const std::int64_t num_sweeps, const algorithm::UpdateMethod update_method, const algorithm::RandomNumberEngine rand_type, const utility::TemperatureSchedule schedule, const std::int64_t seed, const double min_T, const double max_T, const bool log_history)
template<class ModelType>
std::vector< IntegerSAResult > SampleByIntegerSA (const ModelType &model, const std::int64_t num_sweeps, const algorithm::UpdateMethod update_method, const algorithm::RandomNumberEngine rand_type, const utility::TemperatureSchedule schedule, const std::int64_t num_reads, const std::int64_t seed, const std::int32_t num_threads, const double min_T, const double max_T, const bool log_history)
template<class ModelType>
auto make_sa_sampler (const ModelType &model)

Variables

 __path__ = extend_path(__path__, __name__)
list __all__

Function Documentation

◆ BaseSA()

template<class ModelType, class RandType, class StateUpdater>
IntegerSAResult openjij::sampler::BaseSA ( const ModelType & model,
const utility::TemperatureSchedule schedule,
const std::int64_t num_sweeps,
const typename RandType::result_type seed,
const double min_T,
const double max_T,
const bool log_history )

References openjij::utility::GEOMETRIC, and openjij::utility::LINEAR.

Referenced by SolveByIntegerSAImpl().

Here is the caller graph for this function:

◆ make_sa_sampler()

template<class ModelType>
auto openjij::sampler::make_sa_sampler ( const ModelType & model)

Referenced by openjij.sampler.base_sa_sample_hubo::base_sample_hubo(), and openjij::declare_SASampler().

Here is the caller graph for this function:

◆ SampleByIntegerSA()

template<class ModelType>
std::vector< IntegerSAResult > openjij::sampler::SampleByIntegerSA ( const ModelType & model,
const std::int64_t num_sweeps,
const algorithm::UpdateMethod update_method,
const algorithm::RandomNumberEngine rand_type,
const utility::TemperatureSchedule schedule,
const std::int64_t num_reads,
const std::int64_t seed,
const std::int32_t num_threads,
const double min_T,
const double max_T,
const bool log_history )

References SolveByIntegerSA().

Referenced by openjij::declare_SampleByIntegerSA().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SolveByIntegerSA()

template<class ModelType>
IntegerSAResult openjij::sampler::SolveByIntegerSA ( const ModelType & model,
const std::int64_t num_sweeps,
const algorithm::UpdateMethod update_method,
const algorithm::RandomNumberEngine rand_type,
const utility::TemperatureSchedule schedule,
const std::int64_t seed,
const double min_T,
const double max_T,
const bool log_history )

References openjij::algorithm::HEAT_BATH, openjij::algorithm::METROPOLIS, openjij::algorithm::OPT_METROPOLIS, SolveByIntegerSAImpl(), and openjij::algorithm::SUWA_TODO.

Referenced by SampleByIntegerSA().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SolveByIntegerSAImpl()

template<class ModelType, class UpdaterType>
IntegerSAResult openjij::sampler::SolveByIntegerSAImpl ( const ModelType & model,
const std::int64_t num_sweeps,
const algorithm::RandomNumberEngine rand_type,
const utility::TemperatureSchedule schedule,
const std::int64_t seed,
const double min_T,
const double max_T,
const bool log_history )

References BaseSA(), openjij::algorithm::MT, openjij::algorithm::MT_64, and openjij::algorithm::XORSHIFT.

Referenced by SolveByIntegerSA().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __all__

list openjij.sampler.__all__
private
Initial value:
1= [
2 "CSQASampler",
3 "Response",
4 "SASampler",
5 "measure_time",
6 "SQASampler",
7]

◆ __path__

openjij.sampler.__path__ = extend_path(__path__, __name__)
private