Multiplying a quadratic binary objective by a positive constant preserves its minimizers. Yet the numerical representation of the resulting model can change the task faced by an optimization algorithm. A small example illustrates why.

Mathematical equivalence

Write a QUBO objective as a sum of linear and pairwise terms:

f(x) = Σᵢ aᵢxᵢ + Σᵢ<ⱼ bᵢⱼxᵢxⱼ, with xᵢ ∈ {0, 1}.

We use each pair once. Diagonal contributions are included in the linear terms because xᵢ² = xᵢ for binary variables.

If c is strictly positive, then f and cf have the same ordering of objective values. Any minimizer of one is a minimizer of the other. Adding the same constant to every objective value also leaves the ordering unchanged.

This result is exact. It does not depend on the number of variables or the algorithm we use to find a solution.

A small example with finite precision

Consider the illustrative model

f(x, y) = −x − 0.04y + 0.06xy.

Illustration. The four objective values are:

xyOriginal objective
000
01−0.04
10−1
11−0.98

The minimum occurs at (1, 0). Now suppose a hypothetical computational platform represents each coefficient only to the nearest tenth (round to the nearest representable value; none of these coefficients is exactly halfway between two values). The coefficient of y becomes zero, and the interaction coefficient becomes 0.1. The model still has the same minimizer in this particular representation.

But suppose we first scale the original coefficients by one half and then round them to the nearest tenth. The resulting objective is −0.5x, since −0.02 and 0.03 both round to zero. The states (1, 0) and (1, 1) now tie. Under the original objective, only the first is optimal.

The positive scaling did not change the mathematical problem. The subsequent rounding did.

The algorithm can also respond differently

Even when every coefficient is represented exactly, the behavior of a search algorithm may depend on objective scale.

For example, in a simple simulated annealing rule, an uphill change Δ is accepted with probability exp(−Δ/T), where T is a positive temperature parameter. Multiplying every objective coefficient by c multiplies Δ by c. The same acceptance behavior is recovered if the temperature schedule is also multiplied by c, assuming the other parts of the algorithm are unchanged.

Leaving the temperature schedule unchanged can alter the search. Similarly, absolute stopping tolerances or numerical thresholds can respond differently to a change of scale.

An algorithm may account for some of these effects automatically. Use the original objective to compare decoded solutions after any numerical transformation.

Why penalties matter

A related issue arises when constraints are encoded in a quadratic objective. For example, the exactly-one rule x + y = 1 can be represented by the penalty λ(x + y − 1)², where λ is positive. Expanding it produces linear terms, a pairwise interaction and a constant.

Changing λ is different from scaling the whole objective. It changes the relative importance of constraint violation and the original objective. If the representation has a limited coefficient range, a large penalty can also reduce the relative resolution available to distinguish feasible solutions after normalization.

The useful choice depends on the original objective, the constraints and the computational method. For a classical solver that accepts the relevant constraints directly, retaining them separately avoids adding penalty terms to the objective. Numerical representation and feasibility tolerances still matter.

Compare on the original scale

When comparing binary optimization methods, preserve the original model and use it to evaluate every returned assignment. Record the matrix convention, scaling and any coefficient transformations. Check feasibility against the original constraints when applicable.

Run equivalent models at different scales where the platform permits. Compare objective values on the original scale, and examine how solution quality develops within the same search budget. Keep a mathematical reference distinct from the objective as represented on a particular device.

The 4colors Optimizer for QUBO solves binary quadratic objectives on classical hardware and supports additional linear constraints. You can use it to investigate your own models or establish a classical reference for quantum research.

Try the 4colors Optimizer for QUBO.

Related reading: Why the numbers inside a QUBO matter and QUBO penalty weights: a practical walkthrough.