dimod.ConstrainedQuadraticModel.num_quadratic_variables

ConstrainedQuadraticModel.num_quadratic_variables() int[source]

Return the total number of variables with at least one quadratic interaction accross all constraints.