dimod.BinaryQuadraticModel.copy

BinaryQuadraticModel.copy()[source]

Create a copy of a binary quadratic model.

Returns:BinaryQuadraticModel

Examples

>>> bqm = dimod.BinaryQuadraticModel({1: 1, 2: 2}, {(1, 2): 0.5}, 0.5, dimod.SPIN)
>>> bqm2 = bqm.copy()