🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Quantum Annealing

Quantum ComputingQuantum AnnealingđŸŸĸ Free Lesson

The Adiabatic Theorem

The adiabatic theorem states that a quantum system initially in the ground state of will remain in the ground state of if changed slowly enough:

The adiabatic condition requires where is the minimum energy gap.

Quantum Annealing Protocol

  1. Encode problem as Ising Hamiltonian:
  2. Initialize in ground state of transverse field:
  3. Anneal from to over time
  4. Measure final state → candidate solution

Quantum tunneling enables traversal through energy barriers that trap classical annealers.

D-Wave Architecture

The D-Wave quantum annealer uses superconducting flux qubits:

  • Qubit count: 5000+ (Pegasus topology)
  • Coupling: programmable
  • Annealing time: 1-2000 microseconds
  • Temperature: ~15 mK

Pegasus graph: each qubit connects to 15 neighbors. Minor embedding maps problem variables to chains of physical qubits.

Quantum Tunneling vs Thermal Hopping

Classical: thermal activation over barriers:

Quantum: tunneling through barriers:

Quantum tunneling is more efficient for tall, thin barriers. The advantage depends on the problem's energy landscape.

Optimization Landscape

Performance depends on the problem landscape:

  • Spin glass problems: random frustration, many local minima
  • Barrier height: minimum energy barrier between local and global optima
  • Tunneling width: width of barriers
  • Correlation length: spatial extent of frustrated regions

For problems with low barriers and high tunneling probability, quantum annealing outperforms classical methods.

Embedding: Where Variables Become Qubits

A problem with binary variables does not automatically map to physical qubits, because the hardware only offers the couplers present in its graph. D-Wave's Pegasus topology gives each qubit 15 neighbours, so a sparse model — a scheduling graph, a road network, a QUBO whose interactions decay with distance — usually embeds with chains of two to six qubits per variable. A dense model does not: a fully connected 100-variable QUBO needs 4,950 couplers, and forcing it onto Pegasus drives typical chain lengths to eight or more, so 100 logical variables occupy 600–800 physical qubits and the 5,000-qubit machine holds only a handful of such instances at once.

Chains introduce their own failure mode. Each chain is held together by a ferromagnetic coupling that must be strong enough to keep the chain uniform, yet weak enough that frustrated problem terms can still split it when a better configuration demands a break. After the anneal, unbroken chains are decoded by majority vote and broken ones by a classical post-processing step, so the chain break fraction is the first diagnostic to read: below roughly 1% the samples are usually trustworthy, above 5% the chain strength is miscalibrated and you are measuring the embedding rather than the problem.

Hybrid Solvers

D-Wave's hybrid solvers combine quantum and classical processing:

  1. Decompose large problems into subproblems
  2. Solve subproblems on the quantum annealer
  3. Combine solutions using classical post-processing
  4. Iterate until convergence

The Leap hybrid solver has been applied to logistics, scheduling, finance, and ML.

Python: Quantum Annealing Simulation

python
import numpy as np

def classical_annealing(n, T=10000):
    h = np.random.randn(n) * 0.5
    J = np.random.randn(n, n) * 0.3
    J = (J + J.T) / 2
    np.fill_diagonal(J, 0)
    def energy(s):
        return -np.sum(h * s) - np.sum(J * np.outer(s, s))
    s = np.random.choice([-1, 1], n)
    best_s, best_e = s.copy(), energy(s)
    for step in range(T):
        temp = 1.0 - step / T
        i = np.random.randint(n)
        s_new = s.copy()
        s_new[i] *= -1
        dE = energy(s_new) - energy(s)
        if dE < 0 or np.random.random() < np.exp(-dE / max(temp, 0.01)):
            s = s_new
            if energy(s) < best_e:
                best_s, best_e = s.copy(), energy(s)
    return best_e

print(f"Best energy: {classical_annealing(10):.4f}")

Reverse Annealing, Pausing and Other Schedules

The textbook protocol runs forward once, from the transverse-field ground state to the problem Hamiltonian. Production solvers expose three variants that change results substantially:

  • Forward anneal with pause: hold the schedule near its end point, , for tens to hundreds of microseconds. The pause lets the open system thermalize in the problem Hamiltonian's basis, which measurably lifts success probability on tall-barrier landscapes.
  • Reverse anneal: start from a classical bit string, typically the best answer found so far, sweep backward to an intermediate point , then run forward again. This recasts the annealer as a restarting local search: the smaller , the smaller the neighbourhood the solver can escape into.
  • Scheduled (non-linear) annealing: spend runtime where the minimum gap actually sits. If the gap closes once at , a schedule that dwells near outperforms a uniform ramp of equal total duration.

Reverse annealing is the variant with the clearest practical value. Restarting from the incumbent converts global sampling into repeated local refinement, which is precisely the pattern that keeps classical iterated local search competitive on hard combinatorial instances.

python
import numpy as np

def qubo_energy(x, Q):
    return float(x @ Q @ x)

def reverse_anneal(Q, incumbent, n_steps=60, s_start=0.99):
    # Reverse annealing: perturb the incumbent with probability (1 - s),
    # then re-anneal forward toward the problem Hamiltonian.
    n = len(incumbent)
    x = incumbent.copy()
    current = qubo_energy(x, Q)
    for s in np.linspace(s_start, 0.0, n_steps):
        trial = x.copy()
        mask = np.random.random(n) > s
        trial[mask] = 1 - trial[mask]
        if trial.sum() == 0:
            continue
        proposed = qubo_energy(trial, Q)
        accept = proposed < current or np.random.random() < np.exp(
            -(proposed - current) / max(1 - s, 0.05)
        )
        if accept:
            x, current = trial, proposed
    return x, current

rng = np.random.default_rng(7)
n = 40
Q = np.triu(rng.normal(0, 1, (n, n)), 1)
Q += np.diag(rng.normal(0, 0.4, n))
x0 = rng.integers(0, 2, n)
one_flip = min(qubo_energy(np.where(np.arange(n) == i, 1, x0), Q) for i in range(n))
x_best, e_best = reverse_anneal(Q, x0)
print(f"incumbent energy:   {qubo_energy(x0, Q):.4f}")
print(f"best one-flip:      {one_flip:.4f}")
print(f"after reverse anneal: {e_best:.4f}")
print(f"bits flipped:       {int(np.sum(x_best != x0))}")

The annealing time itself is short — 1 to 2,000 microseconds on current hardware — so queueing, programming and readout dominate wall-clock cost, and running many short reverse anneals usually beats one long forward anneal per problem.

Quantum Annealing Theory

The stoquastic Hamiltonian has non-positive off-diagonal elements:

This ensures the ground state is real and non-degenerate (no sign problem). The transverse field is stoquastic.

The adiabatic gap determines the annealing time: . For some problems, the gap closes exponentially, limiting the advantage.

Quantum Annealing Performance

Empirical results on D-Wave hardware, measured as time-to-solution including all re-anneals:

Problem classBest classical baselineD-Wave resultWhen the annealer wins
Random Ising / SK modelSimulated annealing with optimal scheduleComparableEssentially never
Frustrated loop instancesSpecially tuned simulated annealingUp to 10^3× less time on structured instancesLoops with tall thin barriers
Sparse QUBO (scheduling, routing)Tabu search, GurobiCompetitive at large nInstances too large for exact solvers
Dense QUBOGurobi, CPLEXRarely competitiveEmbedding overhead dominates

The pattern in the table is consistent across published benchmarks: advantage appears on structured instances whose barriers are tall and thin, and disappears on random ones. Any claim of a universal speedup should be checked against the classical baseline that was used — a tuned simulated annealer or tabu search, not a naive one.

The Bottom Line for Practitioners

Annealing converts optimization into ground-state preparation, and the advantage is far from automatic. It lives in problems with narrow barriers that tunneling can pierce, on a hardware graph that embeds the model without pathological chains, at a problem size where classical exact solvers have already given up. D-Wave machines implement the protocol with 5,000+ flux qubits at 15 mK, and their hybrid solvers wrap the annealer in classical decomposition so most users never touch an embedding by hand. The measurable wins today are structured frustrated instances and large sparse problems; on random Ising models a well-tuned classical annealer still sets the bar.

Common Mistakes

Feeding a dense, fully connected QUBO straight to the annealer and reading the answer anyway

Fix: Check the chain break fraction after every sample set; if it sits above a few percent, reduce the chain strength or reformulate the model with sparser couplers

Judging the hardware from a forward anneal with a linear schedule

Fix: Compare against reverse annealing from the incumbent and against a scheduled anneal that dwells at the estimated minimum-gap point

Benchmarking against the first classical heuristic you find

Fix: Time-to-solution comparisons only mean something against a tuned simulated annealer or tabu search with matched compute budgets

Ignoring that the annealer returns a distribution, not a single answer

Fix: Sample thousands of anneals per problem, keep the best energy, and report the success probability alongside the best bit string

Key Takeaways

  • Adiabatic evolution solves a problem by encoding it in the ground state of a Hamiltonian interpolated from a known transverse-field ground state
  • Tunneling beats thermal activation on tall thin barriers, and loses on wide smooth ones, so advantage is landscape-dependent
  • Minor embedding maps logical variables to chains of physical qubits; chain break fraction is the health check for that mapping
  • Reverse annealing from the incumbent turns the device into a restarting local search and is usually the strongest practical mode
  • Measured advantage exists for structured frustrated instances; random Ising models show none against tuned classical baselines
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert Quantum Computing Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement