|
cimod
C++ library for a binary (and polynomial) quadratic model.
|
#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"

Go to the source code of this file.
Classes | |
| class | cimod::BinaryPolynomialModel< IndexType, FloatType > |
| Class for BinaryPolynomialModel. More... | |
Namespaces | |
| namespace | 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. | |
| 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>>. | |
| 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. | |
| template<typename IndexType > | |
| using | cimod::Sample = std::unordered_map< IndexType, int32_t > |
| Type alias for sample, which represents the spin or binary configurations. | |