Openjij

Latest version: v0.9.2

Safety actively analyzes 702026 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 17

0.3.0

* improve performance of BQM and BPM
* (for BQM) initialization via numpy.ndarray

0.2.2

* Add source code to pypi

0.2.1

* modify BinaryPolynomialModel

0.2.0

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]]

0.1.1

* Speed up (x10 ~ x20) of SA.
* OpenMP parallelization of SQA (currently available on Windows and Linux)
* Some minor changes

0.1.0

* Use [cimod](https://github.com/OpenJij/cimod) as a backend of `BinaryQuadraticModel`.
* Modify Graph interface
* Fix bugs

Page 16 of 17

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.