|
openjij
Framework for the Ising model and QUBO.
|
Classes | |
| class | BinaryPolynomialModel |
| class | Chimera |
| chimera lattice graph More... | |
| class | CSRSparse |
| CSRSparse graph: just store CSR Sparse Matrix (Eigen::Sparse) The Hamiltonian is like. More... | |
| class | Dense |
| two-body all-to-all interactions The Hamiltonian is like More... | |
| class | Graph |
| Abstract graph class. More... | |
| class | IntegerPolynomialModel |
| class | IntegerQuadraticModel |
| class | IsingPolynomialModel |
| class | Polynomial |
| Polynomial graph class, which can treat many-body interactions. The Hamiltonian is like. More... | |
| class | Sparse |
| Sparse graph: two-body intereactions with O(1) connectivity The Hamiltonian is like. More... | |
| class | Square |
| square lattice graph More... | |
Typedefs | |
| using | ChimeraIndex = std::tuple<std::size_t, std::size_t, std::size_t> |
| Chimera index (row, column, in-chimera) The structure of in-chimera is as follows in-chimera index. | |
| using | Spin = int |
| using | Spins = std::vector<Spin> |
| using | Binary = int |
| using | Binaries = std::vector<Binary> |
| using | Index = std::size_t |
| using | Nodes = std::vector<Index> |
| using | json = nlohmann::json |
| using | RowColumn = std::pair<std::size_t, std::size_t> |
| Row x Column type. | |
Enumerations | |
| enum class | ChimeraDir { PLUS_R , MINUS_R , PLUS_C , MINUS_C , IN_0or4 , IN_1or5 , IN_2or6 , IN_3or7 } |
| direction in chimera graph More... | |
| enum class | Dir { PLUS_R , MINUS_R , PLUS_C , MINUS_C } |
| direction enum class More... | |
Functions | |
| template<typename FloatType, typename CimodDataType> | |
| auto | json_parse (const json &obj, bool relabel=true) |
| parse json object from bqm.to_serializable | |
| template<typename FloatType> | |
| auto | json_parse_polynomial (const nlohmann::json &obj, const bool relabel=true) |
| using openjij::graph::Binaries = std::vector<Binary> |
| using openjij::graph::Binary = int |
| using openjij::graph::ChimeraIndex = std::tuple<std::size_t, std::size_t, std::size_t> |
Chimera index (row, column, in-chimera) The structure of in-chimera is as follows in-chimera index.
0 - 4 x 1 - 5 x 2 - 6 x 3 - 7
| using openjij::graph::Index = std::size_t |
| using openjij::graph::json = nlohmann::json |
| using openjij::graph::Nodes = std::vector<Index> |
| using openjij::graph::RowColumn = std::pair<std::size_t, std::size_t> |
Row x Column type.
| using openjij::graph::Spin = int |
| using openjij::graph::Spins = std::vector<Spin> |
|
strong |
direction in chimera graph
|
strong |
|
inline |
parse json object from bqm.to_serializable
| FloatType | |
| CimodDataType | DataType of cimod (cimod::Dense, cimod::Sparse, or cimod::Dict) |
| obj | JSON object |
| relabel | re-label variable_labels. Disable the option if the model has specified topology (such as square lattice or chimera model). if the option is disabled, IndexType of JSON must be an integer. |
Referenced by openjij::graph::Chimera< FloatType >::Chimera(), openjij::graph::Dense< FloatType >::Dense(), openjij::graph::Sparse< FloatType >::Sparse(), and openjij::graph::Square< FloatType >::Square().

|
inline |
Referenced by openjij::system::ClassicalIsingPolynomial< graph::Polynomial< FloatType > >::ClassicalIsingPolynomial(), openjij::system::KLocalPolynomial< graph::Polynomial< FloatType > >::KLocalPolynomial(), and openjij::graph::Polynomial< FloatType >::Polynomial().
