dimod.QuadraticModel.is_equal#

QuadraticModel.is_equal(other: QuadraticModel | Number) bool[source]#

Return True if the given model has the same variables, vartypes and biases.

Parameters:

other – Quadratic model to compare against.