cimod
C++ library for a binary (and polynomial) quadratic model.
Loading...
Searching...
No Matches
main.hpp File Reference
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/functional.h>
#include <pybind11/eigen.h>
#include <pybind11_json/pybind11_json.hpp>
#include <nlohmann/json.hpp>
#include <sstream>
#include <cimod/binary_polynomial_model.hpp>
#include <cimod/binary_quadratic_model.hpp>
#include <cimod/binary_quadratic_model_dict.hpp>
#include <cimod/disable_eigen_warning.hpp>
Include dependency graph for main.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename IndexType , typename FloatType , typename DataType >
void declare_BQM (py::module &m, const std::string &name)
 
template<typename IndexType , typename FloatType >
void declare_BPM (py::module &m, const std::string &name)
 

Function Documentation

◆ declare_BPM()

void declare_BPM ( py::module m,
const std::string name 
)
inline

References declare_BQM().

Here is the call graph for this function:

◆ declare_BQM()

template<typename IndexType , typename FloatType , typename DataType >
void declare_BQM ( py::module &  m,
const std::string &  name 
)
inline

References declare_BQM().

Referenced by cimod.model.binary_polynomial_model.Polynomial::__repr__(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_add_new_label(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_add_triangular_elements(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_add_triangular_elements(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_binary_to_spin(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_binary_to_spin(), cimod.model.binary_polynomial_model::_BinaryPolynomialModel_from_dict(), cimod.model.binary_polynomial_model::_BinaryPolynomialModel_from_list(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_delete_label(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_delete_label_from_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_delete_label_from_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::_generate_indices(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_generate_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_generate_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_generate_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_initialize_quadmat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_initialize_quadmat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_initialize_quadmat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_initialize_quadmat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_insert_label_into_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_insert_label_into_mat(), cimod.model.binary_polynomial_model::_make_BinaryPolynomialModel_from_hising_from_list(), cimod.model.binary_polynomial_model::_make_BinaryPolynomialModel_from_hubo_from_list(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_mat(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_max_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_max_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_max_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_max_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_min_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_min_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_min_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_min_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_quadmat_get(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_quadmat_get(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_quadmat_get(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_quadmat_get(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_set_label_to_idx(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_spin_to_binary(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::_spin_to_binary(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::add_interaction(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::add_interaction(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::add_interactions_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::add_interactions_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::add_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::add_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::add_variables_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::add_variables_from(), cimod::BinaryPolynomialModel< IndexType, FloatType >::AddInteraction(), cimod::BinaryPolynomialModel< IndexType, FloatType >::AddInteraction(), cimod::BinaryPolynomialModel< IndexType, FloatType >::AddInteractionsFrom(), cimod::BinaryPolynomialModel< IndexType, FloatType >::AddInteractionsFrom(), cimod::BinaryPolynomialModel< IndexType, FloatType >::AddInteractionsFrom(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::binary_to_spin(), cimod.model.binary_polynomial_model::BinaryPolynomialModel(), cimod::BinaryPolynomialModel< IndexType, FloatType >::BinaryPolynomialModel(), cimod::BinaryPolynomialModel< IndexType, FloatType >::BinaryPolynomialModel(), cimod::BinaryPolynomialModel< IndexType, FloatType >::BinaryPolynomialModel(), cimod::BinaryPolynomialModel< IndexType, FloatType >::BinaryPolynomialModel(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::BinaryQuadraticModel(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::BinaryQuadraticModel(), cimod.model.binary_quadratic_model::BinaryQuadraticModel(), cimod.model.legacy.binary_quadratic_model::BinaryQuadraticModel(), cimod.model.binary_quadratic_model::bqm_from_ising(), cimod.model.binary_quadratic_model::bqm_from_numpy_matrix(), cimod.model.binary_quadratic_model::bqm_from_qubo(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::change_vartype(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::change_vartype(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::change_vartype(), cimod::BinaryPolynomialModel< IndexType, FloatType >::ChangeVartype(), cimod::check_vartype(), cimod::CheckVariables(), cimod::BinaryPolynomialModel< IndexType, FloatType >::Clear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::contains(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::contains(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::contract_variables(), cimod.model.binary_polynomial_model.Polynomial::copy(), declare_BPM(), declare_BQM(), cimod.utils.decolator::disabled(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::empty(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::empty(), cimod::BinaryPolynomialModel< IndexType, FloatType >::Energies(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::energies(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::energies(), cimod::BinaryPolynomialModel< IndexType, FloatType >::Energies(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::energy(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::energy(), cimod::BinaryPolynomialModel< IndexType, FloatType >::Energy(), cimod::BinaryPolynomialModel< IndexType, FloatType >::Energy(), cimod.model.binary_quadratic_model::extract_offset_and_vartype(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::fix_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::fix_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::fix_variables(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::fix_variables(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::flip_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::flip_variable(), cimod::FormatPolynomialKey(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::from_ising(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::from_ising(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::from_qubo(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::from_qubo(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::from_serializable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::from_serializable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::from_serializable(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHising(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHising(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHising(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHubo(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHubo(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromHubo(), cimod.model.binary_polynomial_model.Polynomial::fromkeys(), cimod::BinaryPolynomialModel< IndexType, FloatType >::FromSerializable(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GenerateChangedKey(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GenerateSortedVariables(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GenerateVariablesToIntegers(), cimod.model.binary_polynomial_model.Polynomial::get(), cimod.model.binary_quadratic_model::get_cxxcimod_class(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::get_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::get_linear(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::get_quadratic(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::get_quadratic(), cimod.utils.response::get_state_and_energy(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::get_variables(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GetDegree(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GetPolynomial(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GetPolynomial(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GetPolynomial(), cimod::BinaryPolynomialModel< IndexType, FloatType >::GetVariablesToIntegers(), hash_combine(), cimod::insert_or_assign(), cimod::BinaryPolynomialModel< IndexType, FloatType >::IntegerPower(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::interaction_matrix(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::interaction_matrix(), cimod.model.binary_polynomial_model.Polynomial::items(), cimod.model.binary_polynomial_model.Polynomial::keys(), cimod.model.binary_polynomial_model::make_BinaryPolynomialModel(), cimod.model.binary_polynomial_model::make_BinaryPolynomialModel_from_hising(), cimod.model.binary_polynomial_model::make_BinaryPolynomialModel_from_hubo(), cimod.model.binary_polynomial_model::make_BinaryPolynomialModel_from_JSON(), cimod.model.legacy.binary_quadratic_model::make_BinaryQuadraticModel(), cimod.model.binary_quadratic_model::make_BinaryQuadraticModel(), cimod.model.binary_quadratic_model::make_BinaryQuadraticModel_from_JSON(), cimod.model.legacy.binary_quadratic_model::make_BinaryQuadraticModel_from_JSON(), cimod::pair_hash::operator()(), std::hash< std::tuple< TupleArgs... > >::operator()(), cimod::vector_hash::operator()(), PYBIND11_MODULE(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::remove_interaction(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::remove_interaction(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::remove_interactions_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::remove_interactions_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::remove_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::remove_variable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::remove_variables_from(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::remove_variables_from(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveInteraction(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveInteraction(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveInteractionsFrom(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveInteractionsFrom(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveVariable(), cimod::BinaryPolynomialModel< IndexType, FloatType >::RemoveVariablesFrom(), cimod::BinaryPolynomialModel< IndexType, FloatType >::SetKeyAndValue(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::spin_to_binary(), cimod.vartype::to_cxxcimod(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::to_ising(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::to_ising(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::to_qubo(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::to_qubo(), cimod::BinaryQuadraticModel< IndexType, FloatType, Dict >::to_serializable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::to_serializable(), cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >::to_serializable(), cimod::ToCimodVartype(), cimod::BinaryPolynomialModel< IndexType, FloatType >::ToHising(), cimod::BinaryPolynomialModel< IndexType, FloatType >::ToHubo(), cimod::BinaryPolynomialModel< IndexType, FloatType >::ToSerializable(), cimod::BinaryPolynomialModel< IndexType, FloatType >::UpdateVariablesToIntegers(), and cimod.model.binary_polynomial_model.Polynomial::values().

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