A polynomial model is an extension of the traditional quadratic model.
How to use
Python example
import openjij as oj
sampler = oj.SASampler()
Spin variables
response = sampler.sample_hubo(J={(0,1): -1, (0,1,2): -1})
response.states
[[1, 1, 1]]
Binary variables
response = sampler.sample_hubo(J={(0,1): -1, (0,1,2): 1}, var_type = oj.BINARY)
response.states
[[1, 1, 0]]