You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
238 B

6 years ago
  1. #!/usr/bin/env python3
  2. import SAT2QUBO as s2q
  3. import randomSAT as rs
  4. ksatInstance = rs.generateRandomKSAT(2, 4, 3)
  5. qubo = s2q.WMISdictQUBO(ksatInstance)
  6. print(ksatInstance.toString())
  7. for label in qubo:
  8. print(label, qubo[label])