A quantum compiler can encounter two circuits with the same width, depth and logical gate count, yet face very different placement and routing problems. An ansatz built on a line of qubits may fit a physical path directly. A circuit with a star of interactions or a dense feature map can require movement of logical states.
A useful benchmark therefore begins with the kinds of circuit you actually intend to run. A grand average can hide a strong improvement on one family and a small change on another. Neither number is especially useful without the context of the workload.
Describe the mathematical structure of the input
For every circuit, record its logical interaction graph, including repeated interactions and their order. A simple undirected graph provides a first approximation: each vertex is a logical qubit and an edge indicates at least one two-qubit interaction. A path has maximum degree two. A star of the same width has a hub of degree n − 1. Both have n − 1 edges, but the star cannot be embedded as a subgraph of a physical path without changing how interactions are performed.
Illustration: standalone Python calculation.
n=12
families={'path':[(i,i+1) for i in range(n-1)],
'star':[(0,i) for i in range(1,n)]}
for name,edges in families.items():
deg=[sum(i in e for e in edges) for i in range(n)]
print(name,len(edges),max(deg))
assert len(families['path'])==len(families['star'])==11 The example prints:
path 11 2
star 11 11 Interaction order matters too. Commuting blocks offer different scheduling choices from a chain of dependent operations. A graph statistic is a descriptor, not a complete prediction of compilation difficulty.
Width does not determine the number of interactions
For a logical layer with one ZZ rotation per edge, a path on n qubits has n−1 interactions and a complete graph has n(n−1)/2. A star has n−1 edges, like a path, but all those interactions share one vertex. Consequently the path and star can have different routing requirements and logical two-qubit depth. Connectivity, degree, gate order, parameterization and commutation each describe a different part of the computational workload.
Construct a benchmark that represents a workload
Include several widths and independently generated instances per family. Variational ansatzes, arithmetic circuits, spin simulations and circuits with little routing demand form useful categories. Choose the same hardware target, basis instructions and approximation policy for every method. Keep the time budget and verification requirements visible.
Record both gate counts and two-qubit depth. If two methods return different physical placements, record them and evaluate the quality of the involved hardware connections when that information is relevant. Keep the complete job and verification records with the results, and compare only implementations that passed the same verification.
Summarize without losing the detail
For each family, show the distribution of results and a paired comparison on each input. A median of per-instance ratios answers a different question from a ratio of total gate counts. The former gives similar weight to each instance, while the latter gives greater influence to circuits with many gates. State which quantity you use and why. For a workload that executes certain circuits far more often than others, a weighted summary can be useful as well.
This style of evaluation helps teams decide which circuit classes deserve extra compilation effort. It also makes a benchmark useful to algorithm developers: they can inspect where a method performs well and use those observations to inform future circuit designs.
Try representative circuits from your own workload with the 4colors Quantum Compiler rather than relying solely on a general benchmark average.