Amplify SDK provides an intuitive platform to handle various input forms and constraints for running the
Ising machines.
In addition, it also reconciles complicated model transformation of inputs and inverse transformation of
outputs for each machine.
# Formulate the input model
q = gen_symbols(BinaryPoly, 2)
f = 1 - q[0] * q[1]
# Set up the machine to run
client = FixstarsClient()
# Run the machine to get results
s = Solver(client)
result = s.solve(f)
values = result.solutions[0].values
# Interpret the results
solution = decode_solution(q, values)
>>> print(f"result: {q} = {solution}")
result: [q_0, q_1] = [1, 1]