cimod
C++ library for a binary (and polynomial) quadratic model.
binary_polynomial_model.hpp File Reference
#include <algorithm>
#include <bitset>
#include <cstdint>
#include <iostream>
#include <set>
#include <string>
#include <tuple>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <nlohmann/json.hpp>
#include "cimod/hash.hpp"
#include "cimod/utilities.hpp"
#include "cimod/vartypes.hpp"
Include dependency graph for binary_polynomial_model.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cimod::BinaryPolynomialModel< IndexType, FloatType >
 Class for BinaryPolynomialModel. More...
 

Namespaces

 cimod
 

Typedefs

template<typename IndexType , typename FloatType >
using cimod::Polynomial = std::unordered_map< std::vector< IndexType >, FloatType, vector_hash >
 Type alias for the polynomial interactions as std::unordered_map. More...
 
template<typename IndexType >
using cimod::PolynomialKeyList = std::vector< std::vector< IndexType > >
 Type alias for the indices of the polynomial interactions (namely, the list of keys of the polynomial interactions as std::unordered_map) as std::vector<std::vector>>. More...
 
template<typename FloatType >
using cimod::PolynomialValueList = std::vector< FloatType >
 Type alias for the values of the polynomial interactions (namely, the list of values of the polynomial interactions as std::unordered_map) as std::vector. More...
 
template<typename IndexType >
using cimod::Sample = std::unordered_map< IndexType, int32_t >
 Type alias for sample, which represents the spin or binary configurations. More...