Quantum Sampling Finds Hidden Evolutionary Trees Missed by Classical Methods
Quantum sampling and lossless graph reductions unlock more complete evolutionary trees from SARS-CoV-2 data.
10,000 runs missed 7% of optimal evolutionary trees — quantum sampling helps close the gap.
On a single 6,464-qubit quantum circuit, researchers sampled solutions to a phylogenetic puzzle that classical computers struggle to fully explore — not because they can’t find one optimal answer, but because biology demands all of them. In a study focused on reconstructing evolutionary trees using the maximum compatibility criterion, Orson Ye and colleagues demonstrate that combining quantum sampling with classical graph reductions can efficiently uncover the full landscape of optimal solutions, even when traditional methods stall at the enumeration bottleneck. This is critical because, in real-world applications like tracking SARS-CoV-2 evolution, relying on a single optimal tree risks missing key evolutionary pathways hidden in alternative, equally valid configurations.
The team’s approach hinges on a subtle but profound insight: in phylogenetics, consensus matters more than any one tree. When mutations arise independently in different lineages — a phenomenon known as convergent evolution, common in viral adaptation or antibiotic resistance — some genetic changes don’t fit neatly into a single family tree. Maximum compatibility sidesteps this by seeking the largest set of mutations that can coexist on one tree, minimizing conflicting signals. The problem maps neatly to graph theory: each mutation is a node, edges connect compatible mutations, and the goal is to find all maximum-weight cliques — groups of mutations that can be jointly explained by a single evolutionary history.
But here’s the catch: finding one such clique is hard enough (it’s NP-hard). Finding all of them is exponentially harder. And yet, for building a strict consensus tree — one that only includes relationships present in every possible optimal tree — you need the full set. Cherry’s 2017 algorithm, a leading method in this space, grinds to a halt on large datasets not because it fails to find good solutions, but because it must exhaustively enumerate them. Memory overflows, search spaces explode, and even state-of-the-art classical solvers like CliSAT, while fast at finding a single optimum, return the same solution every time, offering no diversity for consensus building.
The Science
The researchers reframe the maximum weighted clique problem as maximum weighted independent set (MWIS) on the complement graph — a transformation that simplifies the quantum formulation. In the complement, edges represent incompatibility, so an independent set (a set of vertices with no connecting edges) corresponds exactly to a clique in the original. This allows them to express the problem as a Quadratic Unconstrained Binary Optimization (QUBO) instance, suitable for quantum algorithms like the Quantum Approximate Optimization Algorithm (QAOA).
They deploy a bespoke version of QAOA with a “correction-in-the-loop” design: instead of rigidly enforcing feasibility through large penalty terms (controlled by Lagrange multipliers), they use smaller penalties to generate a broader distribution of candidate solutions, then apply deterministic classical postprocessing to repair infeasible bitstrings into valid, maximal cliques. This hybrid strategy acknowledges the limitations of current noisy quantum hardware — rather than demanding perfect constraint satisfaction, it leverages quantum sampling to explore promising regions of the solution space, then cleans up the results classically.
Crucially, they introduce lossless graph reductions — a set of rules that shrink the problem size without losing any optimal solutions. For example, if a vertex has only one neighbor, it can be removed and its weight folded into the neighbor under specific conditions. These reductions are paired with reconstruction rules that allow the full set of maximum cliques to be recovered from the solution to the smaller instance. Unlike standard preprocessing, which often discards vertices that appear in some but not all optimal solutions, their method preserves solution diversity, making it uniquely suited for enumeration.
The pipeline is modular: first, apply lossless reductions; then, if the residual graph is small enough, solve it exactly. If not, use quantum or classical sampling to generate candidates, repair them, and collect distinct optima until convergence or budget exhaustion. They test this on graphs derived from SARS-CoV-2 sequence alignments, with up to 440 characters (mutations) after preprocessing.
What They Found
Classical benchmarks reveal a stark gap between finding one optimum and recovering the full set. On a graph with 291 nodes, 10,000 runs of the approximate solver SCCWalk4L found only 834 of 896 possible maximum cliques — a 93% coverage rate, but with clear sampling bias. Random sampling should have uncovered all cliques much faster, suggesting the heuristic gets trapped in certain regions of the solution space. This has direct consequences: a consensus tree built from incomplete sampling may miss weakly supported but biologically meaningful splits.
The quantum-enhanced sampler, running on a simulated 6,464-qubit circuit, outperforms random sampling under the same shot budget. In one experiment, 10 runs of 20,000 shots each yielded significantly more unique maximum cliques than random sampling (see
Unique Maximum Weight Cliques Found (10 runs, 20,000 shots each)
| Label | Value |
|---|---|
| Random Sampling | 12 |
| Modified QAOA | 28 |
). While the absolute number of distinct optima found remains below the total, the trend is clear: quantum-informed sampling explores the solution space more effectively than unguided randomness.
The graph reduction techniques deliver dramatic compression. On a representative instance, reducing vertices of degree 1 and 2 cut the graph size from 440 to 281 nodes — a 64% reduction — while preserving all optimal solutions (see
Graph Reduction Impact on SARS-CoV-2 Derived Graph
| Label | Value |
|---|---|
| Original | 440 |
| After Degree 1 Reduction | 357 |
| After Degree 2 Reduction | 281 |
). This isn’t just a theoretical win; it transforms intractable instances into ones that can be solved exactly or sampled efficiently.
Unique Maximum Weight Cliques Found (10 runs, 20,000 shots each)
| Label | Value |
|---|---|
| Random Sampling | 12 |
| Modified QAOA | 28 |
Graph Reduction Impact on SARS-CoV-2 Derived Graph
| Label | Value |
|---|---|
| Original | 440 |
| After Degree 1 Reduction | 357 |
| After Degree 2 Reduction | 281 |
Why This Changes Things
This work shifts the conversation from “Can quantum computers solve hard problems faster?” to “Can quantum sampling enrich classical pipelines in biologically meaningful ways?” The answer, tentatively, is yes — not by replacing classical methods, but by augmenting them where they are weakest: diversity generation.
In phylogenetics, as in many areas of science, the most robust conclusions come from consensus, not single-point estimates. When tracking the evolution of pathogens like SARS-CoV-2, overlooking alternative evolutionary histories can blind us to emerging variants or convergent adaptations. Maximum compatibility, though less popular than maximum likelihood, is uniquely suited to these scenarios because it explicitly tolerates homoplasy — the independent emergence of similar traits.
The integration of lossless reductions is arguably the most impactful contribution. By shrinking problem size without sacrificing solution completeness, it enables exact methods to scale further. Even without quantum sampling, this classical advance could breathe new life into Cherry’s algorithm and similar enumeration-heavy pipelines. The fact that reductions preserve all optimal solutions — not just one — makes them rare and valuable in the combinatorial optimization toolkit.
Moreover, the study challenges a common assumption in quantum optimization: that large penalty terms are necessary to enforce constraints. By relaxing penalties and correcting solutions classically, the team achieves better exploration on noisy devices. This “soft constraint” approach may generalize to other QUBO problems where solution diversity matters more than strict feasibility during search.
Consider the implications for public health. During an outbreak, phylogenetic analysis helps trace transmission chains and identify variants of concern. If two lineages independently acquire the same mutation — say, one that increases transmissibility — maximum compatibility can still resolve their relationship by focusing on the mutations they don’t share. But only if the analysis considers all equally optimal trees. A method that finds just one can be misled by the convergent signal. By enabling more complete enumeration, this hybrid approach could lead to more accurate, more robust outbreak reconstructions.
What’s Next
Several challenges remain. The quantum advantage demonstrated is in sampling quality, not speed: the simulations are not run on real hardware, and current devices lack the qubit count and coherence to execute 6,464-qubit circuits. Still, the result suggests that even imperfect quantum samplers, when integrated thoughtfully, can add value.
The reconstruction rules, while powerful, apply only to specific graph structures (degree 1 and 2 vertices). Generalizing them to higher degrees or other motifs could unlock even greater reductions. And while the repair procedure works well, it’s deterministic — future work could explore learned repair models or reinforcement learning to guide the correction process.
Perhaps most importantly, the method has so far been tested on SARS-CoV-2, a relatively small genome with low insertion rates. Applying it to more complex organisms — cancer genomes, bacterial pan-genomes, or ancient DNA with high missingness — will test its scalability and robustness. The presence of ambiguous bases (N’s) in real data also means the full pipeline must iterate between ambiguity resolution and clique enumeration, a loop that could amplify sampling biases if not carefully managed.
Still, the core insight stands: in science, how we search matters as much as what we find. When the goal is not just an answer, but all the best answers, hybrid quantum-classical sampling, guided by lossless reductions, offers a promising new path forward. It’s not about winning the race to the top of the mountain — it’s about mapping every trail that gets you there.
illustrates the power of their reduction technique: a vertex is removed, its neighbor’s weight adjusted, and the optimal solution is later reconstructed exactly. This isn’t approximation — it’s compression with perfect recall. In a world drowning in biological data, such tools may be exactly what we need to see the forest and the trees.
Our results indicate that graph reduction and sampling can be effectively combined to address the enumeration bottleneck in maximum compatibility phylogeny.
Sign in to join the conversation.
Comments (0)
No comments yet. Be the first to share your thoughts.