A pairwise optimization problem has an interaction graph. A quantum processor also has a graph, describing the interactions it supports directly. When those graphs differ, the implementation may require routing. An alternative is to simplify the problem until its interaction graph fits the hardware. The two approaches answer different mathematical questions.

Removing an interaction changes the objective

Consider Max-Cut on a graph with nonnegative edge weights. An assignment receives the weight of every edge whose endpoints have different binary values. Suppose we delete a set of edges of total weight D to obtain a hardware-compatible graph. For every assignment x, the full objective equals the reduced objective plus the cut weight on the deleted edges. That missing contribution lies between zero and D.

Consequently, an exact optimum of the reduced problem has a full-graph objective at most D below the full optimum. This is a valid but potentially loose guarantee. The assignment that is optimal for the reduced graph can be quite different from an optimal full-graph assignment.

If the reduced assignment is only within ε of the reduced optimum, the full-graph loss is at most D + ε. For signed edge weights, replacing D with the sum of absolute removed weights gives the corresponding bound. These are objective guarantees, independent of the native gate cost of implementing either circuit.

Illustration: standalone Python calculation.

from itertools import product
full=[(0,1,1),(1,2,1),(2,3,1),(0,2,5)]
native=full[:3]
score=lambda x,e:sum(w for i,j,w in e if x[i]!=x[j])
xs=list(product((0,1),repeat=4))
a=max(xs,key=lambda x:score(x,native))
b=max(xs,key=lambda x:score(x,full))
assert score(a,native)==3 and score(a,full)==3
assert score(b,full)==7 and score(b,full)-score(a,full)<=5

The path optimum scores three on both graphs. It cuts every path edge but misses the heavy interaction between vertices zero and two. The full optimum scores seven on the original graph, so the loss is four, within the bound of five.

Compare the two costs separately

Generate the full graph and a stated hardware-native subgraph. Preserve the mapping between their variables. Evaluate candidate assignments against both objectives, including the full graph's exact optimum or a strong reference where available. Record the total weight of the removed interactions and the quality of the full-graph assignment returned by the reduced model.

Compile the circuit for the original graph and for the reduced graph using the same target, approximation policy and budget. Check the output mappings and native instruction compatibility. Compare gate counts and depth, and then measure the expected objective using a stated noise model or a hardware experiment. Score the measured solutions on the original graph as well.

Choose the right question for the experiment

If the hardware-native problem is itself the subject of research, its objective is entirely appropriate. If the aim is to solve a given external decision problem, retaining the original objective is important. A hardware-compatible surrogate is then an approximation whose effect can be quantified. Comparing that mathematical cost with the cost of routing gives a better basis for choosing the experimental formulation.

Evaluate the original binary objective with the 4colors Optimizer for QUBO and compare circuit implementations with the 4colors Quantum Compiler.