|
@ -6,13 +6,13 @@ from tqdm import tqdm |
|
|
import math |
|
|
import math |
|
|
import random |
|
|
import random |
|
|
|
|
|
|
|
|
#__VERTEX_WEIGHT__ = -2 |
|
|
|
|
|
#__EDGE_WEIGHT__ = 2 |
|
|
|
|
|
|
|
|
__VERTEX_WEIGHT__ = -2 |
|
|
|
|
|
__EDGE_WEIGHT__ = 2 |
|
|
|
|
|
|
|
|
__VERTEX_WEIGHT__ = 1 |
|
|
|
|
|
__EDGE_WEIGHT__ = -2 |
|
|
|
|
|
|
|
|
|
|
|
def WMISdictQUBO(kSATInstance): |
|
|
def WMISdictQUBO(kSATInstance): |
|
|
|
|
|
__VERTEX_WEIGHT__ = -1 |
|
|
|
|
|
|
|
|
quboInstance = {} |
|
|
quboInstance = {} |
|
|
|
|
|
|
|
|
for clauseIndex in range(kSATInstance.getNumberOfClauses()): |
|
|
for clauseIndex in range(kSATInstance.getNumberOfClauses()): |
|
|