How to use the openjij.VariableType function in openjij

To help you get started, we’ve selected a few openjij examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenJij / OpenJij / tests / test_sampler.py View on Github external
def test_vartype(self):
        self.assertTrue(isinstance(oj.SPIN, oj.VariableType))
        self.assertTrue(isinstance(oj.BINARY, oj.VariableType))
github OpenJij / OpenJij / tests / test_sampler.py View on Github external
def test_vartype(self):
        self.assertTrue(isinstance(oj.SPIN, oj.VariableType))
        self.assertTrue(isinstance(oj.BINARY, oj.VariableType))