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

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