PennyLane Codebook: Interactive Quantum ML Learning
Xanadu / PennyLane Team
QUBO is the standard mathematical form for optimization problems on quantum annealers. It underpins D-Wave's Advantage system, QAOA on gate-based hardware, and a wide class of combinatorial optimization problems in logistics, finance, and operations research.
A QUBO is an optimization problem over binary variables where the objective function is at most quadratic -- meaning it contains terms involving at most two variables multiplied together. The standard form is:
minimize: x^T Q x where x is a vector of binary variables (each x_i in {0, 1}) and Q is an upper-triangular matrix of real coefficients.
The diagonal entries Q_ii represent linear terms (coefficients on individual variables). The off-diagonal entries Q_ij represent quadratic terms (coefficients on products x_i * x_j). The goal is to find the binary assignment that minimizes this expression.
Despite the "unconstrained" in the name, QUBO can represent constrained problems. Constraints are encoded as penalty terms added to the objective -- expressions that are zero when the constraint is satisfied and positive when violated, scaled by a penalty coefficient large enough to make violations suboptimal.
Quantum annealers like D-Wave's Advantage system natively implement the Ising model: a network of spins (each +1 or -1) connected by couplings, evolving toward a low-energy configuration. QUBO and the Ising model are mathematically equivalent -- you can convert between them by substituting x_i = (s_i + 1) / 2.
D-Wave's Ocean SDK accepts both forms. The BinaryQuadraticModel (BQM) class handles QUBO natively and converts to Ising automatically for hardware submission. QAOA on gate-based hardware also uses the Ising Hamiltonian internally, making QUBO a relevant formulation for both annealing and gate-based quantum optimization.
Maximum cut (MaxCut), graph coloring, minimum vertex cover, and graph partitioning all have well-known QUBO formulations. MaxCut in particular is a benchmark problem for QAOA on gate-based hardware and for D-Wave annealing.
Vehicle routing, job shop scheduling, bin packing, and supply chain optimization can be formulated as QUBOs. These are among the most commercially active areas for quantum optimization.
Portfolio optimization -- selecting assets to maximize return subject to risk and budget constraints -- maps naturally to QUBO when asset inclusion is treated as a binary decision. Quantum finance is one of the most active application areas.
Training binary classifiers, clustering with binary cluster assignments, and feature selection can be expressed as QUBOs. Quantum annealing has been applied to support vector machine training and to Boltzmann machine learning.
Learn QUBO formulation, the Ising model, D-Wave programming, and QAOA.
Xanadu / PennyLane Team
Classiq engineering and research team
Hasso Plattner Institute / IBM Quantum
D-Wave
D-Wave
D-Wave
D-Wave
D-Wave