dimod.binary.BinaryQuadraticModel.resize

BinaryQuadraticModel.resize(n: int)[source]

Reduce a binary quadratic model to the specified number of variables.