Classical QUBO optimization
4colors Optimizer for QUBO
Better solutions, within the time you have. Solve QUBO and Ising models with classical optimization: get an early answer, follow improvements as the search runs, and get objective values recomputed on your model, with any linear constraints checked for feasibility.
From large-scale binary optimization to classical baselines for quantum and hybrid research, make more of your available compute time.
Start free trialExplore benchmark resultsCompare plans15-day free trial · 120 minutes · No credit card required
Benchmark results
Better solutions as the search continues
The Optimizer returns useful results early and keeps searching for improvements. Choose a time budget that suits your problem, and see how solution quality develops throughout the run.
Our timed studies include million-variable spin-glass models and large sparse graphs, each shown with its search budget and reference value.
Measured on large spin glasses
- 7 s for the fastest other solver's first answer
- 3.6× faster to a first answer
- 1.7× smaller gap to the estimated ground state with a 10 s search budget
- 0.83% gap to the estimated ground state with a 60 s search budget
1 s search budget
4colors4.51%
best other solverno answer
3 s search budget 1.3× smaller gap
4colors2.09%
best other solver2.77%
10 s search budget 1.7× smaller gap
4colors1.38%
best other solver2.45%
30 s search budget 1.3× smaller gap
4colors1.01%
best other solver1.40%
60 s search budget 1.3× smaller gap
4colors0.83%
best other solver1.11%
- 4colors
- Best other solver at each budget
How we measuredClose ×
Five sparse 3D ±J spin glasses with one million variables, three seeds each; the median over seeds, then over instances. Search budgets of 1, 3, 10, 30 and 60 s. The reference is the estimated ground-state energy of the 3D ±J spin glass, −1.7863 per spin (Pál 1996), times the number of spins.
Times include reading the model, for every solver, as a user would run it; at this size every solver can run past a short budget. At the 1 s budget the best other answer arrived after 7 s of real time.
The best other solver at each budget is the best answer from D-Wave neal, OpenJij and MQLib (hyper-heuristic and Burer 2002).
D-Wave neal and OpenJij ran at their better setting per budget, sized by a calibration run on the same problem that is not counted in their time.
All solvers on the same hardware, on one dedicated server. Every time is measured from the start of the run; none is a round trip through the API.
Search budgets
A smaller gap to the estimated ground state at every search budget
| Gap to the published estimate of the ground-state energy, one million variables | |||
|---|---|---|---|
| Search budget | 4colors | Best other solver | Gap ratio |
| 1 s | 4.51% | 7.51% | 1.6× |
| 3 s | 2.09% | 2.77% | 1.3× |
| 10 s | 1.38% | 2.45% | 1.7× |
| 30 s | 1.01% | 1.40% | 1.3× |
| 60 s | 0.83% | 1.11% | 1.3× |
How we measuredClose ×
Five 3D ±J spin glasses of one million variables, three seeds each; the median over seeds, then over instances. The gap is to the estimated ground-state energy, −1.7863 per spin (Pál 1996). The best other solver is the best of MQLib, D-Wave neal and OpenJij at each budget, on the same dedicated server; at 1 s and 3 s it answered only after 7.0 s and 9.7 s. Our gaps rounded up, the others' down. Gap ratio: the other solver's gap divided by 4colors' gap; 1.7× means its gap is 1.7 times ours.
Applications
Built for different kinds of binary optimization
Different models bring different challenges. Explore how the Optimizer performs across sparse graphs, dense QUBO models, spin glasses and established benchmark problems.
| Gap to the best answer found, 100,000 variables, 3 s search | |||
|---|---|---|---|
| Graph | 4colors | Best other solver | Gap ratio |
| Average degree 4 | at most 0.46% | at least 1.19% | 2.5× |
| Average degree 16 | at most 0.30% | at least 1.82% | 6.0× |
| Average degree 64 | at most 0.98% | at least 3.61% | 3.6× |
| Average degree 16, by search budget | |||
|---|---|---|---|
| Search budget | 4colors | Best other solver | Gap ratio |
| 3 s | at most 0.30% | at least 1.82% | 6.0× |
| 10 s | at most 0.14% | at least 0.49% | 3.5× |
| 30 s | at most 0.08% | at least 0.14% | 1.7× |
| 1 min | at most 0.05% | at least 0.10% | 2.0× |
| 5 min | at most 0.02% | at least 0.05% | 2.5× |
| Gap at a 60 s search, one million variables | |||
|---|---|---|---|
| Family | 4colors | Best other solver | Gap ratio |
| 2D torus | 0.08% | 0.40% | 5.0× |
| Random 3-regular | 0.13% | 1.31% | 10× |
| 3D ±J | 0.83% | 1.11% | 1.3× |
| Real time to the same quality, one million variables | |||
|---|---|---|---|
| Family and budget | 4colors | Best other solver | Speedup |
| 2D torus, 3 s search | 3.7 s | 10.3–29.0 s | 2.8–7.8× faster |
| 2D torus, 30 s search | 30.7 s | not matched in runs up to 60.2 s | at least 2.0× faster |
| Random 3-regular, 3 s search | 3.7 s | 11.2–28.9 s | 3.0–7.8× faster |
| Random 3-regular, 10 s search | 10.7 s | 28.9–58.2 s | 2.7–5.4× faster |
| Random 3-regular, 30 s search | 30.7 s | not matched in runs up to 58.2 s | at least 1.9× faster |
| Gap to the best answer found, average degree 256, 100,000 variables | |||
|---|---|---|---|
| Search budget | 4colors | Best other solver | Gap ratio |
| 3 s | at most 1.72% | at least 4.53% | 2.6× |
| 10 s | at most 0.71% | at least 4.53% | 6.3× |
| 30 s | at most 0.26% | at least 2.22% | 8.5× |
| 1 min | at most 0.19% | at least 0.70% | 3.6× |
| 5 min | at most 0.03% | at least 0.19% | 6.3× |
| Palubeckis benchmarks, 3 s search | |||
|---|---|---|---|
| Size | 4colors | Best other solver | Gap ratio |
| 3,000 variables | the best answer found | at least 0.35% | at the best answer found |
| 5,000 variables | at most 0.02% | at least 0.61% | 30× |
| 7,000 variables | at most 0.06% | at least 0.58% | 9.6× |
| Gap to the best known answer, 3 s search | |||
|---|---|---|---|
| Problem | 4colors | Best other solver | Gap ratio |
| Gset G32 | the best known cut | 0.284% | at the best known cut |
| Gset G36 | 0.130% | 0.156% | 1.2× |
| Gset G56 | 0.274% | 0.324% | 1.1× |
| Gset G61 | 0.207% | 0.431% | 2.0× |
| Gset G63 | 0.177% | 0.311% | 1.7× |
| Gset G67 | 0.547% | 0.835% | 1.5× |
| Gset G81 | 0.597% | 1.024% | 1.7× |
| 3D spin glass, 8,000 variables | 0.451% | 0.675% | 1.4× |
| 3D spin glass, 125,000 variables | 0.913% | 2.302% | 2.5× |
| Median gap over the ten standard problems | |||
|---|---|---|---|
| Search budget | 4colors | Best other solver | Gap ratio |
| 1 s | 0.38% | 0.66% | 1.7× |
| 3 s | 0.23% | 0.49% | 2.1× |
| 10 s | 0.16% | 0.32% | 2.0× |
How we measuredClose ×
Three seeds per instance, the median, all solvers on one dedicated server; the best other solver is the best of MQLib, D-Wave neal and OpenJij in each cell. Random graphs and Palubeckis, three instances each: the gap to the best answer any tested solver found, 4colors' worst instance against the other solver's best. Spin glasses of one million variables: the gap to the best answer found or, for 3D ±J, to the estimated ground-state energy (Pál 1996); a time range runs from the longest other run that had not reached 4colors' quality to the shortest that had. Standard benchmarks: Gset against the best-known cuts; the median table is a later timed run of the same ten problems. Our gaps rounded up, the others' down. Gap ratio: the other solver's gap divided by 4colors' gap; 1.7× means its gap is 1.7 times ours.
Benchmark detail
Compare QUBO results by problem family
Follow each problem family instance by instance, and see how the gap to the best answer closes as the search budget grows.
From sparse to dense
From sparse graphs to dense QUBO models, 4colors comes closer to the best answer found at every search budget.
Choose a budget to see how the gap closes with time on each instance.
Sparse graph, degree 4, instance 1 100,000 variables
4colors0.46%
best other solver1.26%
Sparse graph, degree 4, instance 2 100,000 variables
4colors0.44%
best other solver1.19%
Sparse graph, degree 4, instance 3 100,000 variables
4colors0.40%
best other solver1.28%
Sparse graph, degree 16, instance 1 100,000 variables
4colors0.28%
best other solver3.30%
Sparse graph, degree 16, instance 2 100,000 variables
4colors0.28%
best other solver3.52%
Sparse graph, degree 16, instance 3 100,000 variables
4colors0.30%
best other solver1.82%
Sparse graph, degree 64, instance 1 100,000 variables
4colors0.98%
best other solver5.41%
Sparse graph, degree 64, instance 2 100,000 variables
4colors0.62%
best other solver5.32%
Sparse graph, degree 64, instance 3 100,000 variables
4colors0.66%
best other solver3.61%
Sparse graph, degree 4, instance 1 100,000 variables
4colors0.27%
best other solver0.59%
Sparse graph, degree 4, instance 2 100,000 variables
4colors0.23%
best other solver0.59%
Sparse graph, degree 4, instance 3 100,000 variables
4colors0.29%
best other solver0.58%
Sparse graph, degree 16, instance 1 100,000 variables
4colors0.10%
best other solver0.69%
Sparse graph, degree 16, instance 2 100,000 variables
4colors0.13%
best other solver0.56%
Sparse graph, degree 16, instance 3 100,000 variables
4colors0.14%
best other solver0.49%
Sparse graph, degree 64, instance 1 100,000 variables
4colors0.41%
best other solver1.61%
Sparse graph, degree 64, instance 2 100,000 variables
4colors0.20%
best other solver1.48%
Sparse graph, degree 64, instance 3 100,000 variables
4colors0.29%
best other solver1.99%
Sparse graph, degree 4, instance 1 100,000 variables
4colors0.17%
best other solver0.31%
Sparse graph, degree 4, instance 2 100,000 variables
4colors0.11%
best other solver0.27%
Sparse graph, degree 4, instance 3 100,000 variables
4colors0.11%
best other solver0.32%
Sparse graph, degree 16, instance 1 100,000 variables
4colors0.05%
best other solver0.22%
Sparse graph, degree 16, instance 2 100,000 variables
4colors0.07%
best other solver0.23%
Sparse graph, degree 16, instance 3 100,000 variables
4colors0.08%
best other solver0.14%
Sparse graph, degree 64, instance 1 100,000 variables
4colors0.22%
best other solver0.26%
Sparse graph, degree 64, instance 2 100,000 variables
4colors0.10%
best other solver0.20%
Sparse graph, degree 64, instance 3 100,000 variables
4colors0.13%
best other solver0.32%
Sparse graph, degree 4, instance 1 100,000 variables
4colors0.10%
best other solver0.23%
Sparse graph, degree 4, instance 2 100,000 variables
4colors0.06%
best other solver0.20%
Sparse graph, degree 4, instance 3 100,000 variables
4colors0.10%
best other solver0.20%
Sparse graph, degree 16, instance 1 100,000 variables
4colors0.02%
best other solver0.10%
Sparse graph, degree 16, instance 2 100,000 variables
4colors0.04%
best other solver0.14%
Sparse graph, degree 16, instance 3 100,000 variables
4colors0.05%
best other solver0.12%
Sparse graph, degree 64, instance 2 100,000 variables
4colors0.07%
best other solver0.08%
Sparse graph, degree 64, instance 3 100,000 variables
4colors0.05%
best other solver0.20%
Sparse graph, degree 4, instance 1 100,000 variables
4colors0.02%
best other solver0.10%
Sparse graph, degree 4, instance 2 100,000 variables
4colors0.01%
best other solver0.10%
Sparse graph, degree 4, instance 3 100,000 variables
4colors0.01%
best other solver0.12%
Sparse graph, degree 16, instance 1 100,000 variables
4colors0.01%
best other solver0.05%
Sparse graph, degree 16, instance 2 100,000 variables
4colors0.01%
best other solver0.08%
Sparse graph, degree 16, instance 3 100,000 variables
4colors0.02%
best other solver0.12%
Sparse graph, degree 64, instance 1 100,000 variables
4colors0.02%
best other solver0.08%
Sparse graph, degree 64, instance 2 100,000 variables
4colors0.01%
best other solver0.09%
Sparse graph, degree 64, instance 3 100,000 variables
4colors0.01%
best other solver0.10%
- 4colors
- Best other solver
How we measuredClose ×
Random graphs of 100,000 variables with average degree 4, 16, 64 and 256, and the Palubeckis benchmarks of 3,000, 5,000 and 7,000 variables; 3 instances each, median over 3 seeds; search budgets of 3 s to 5 min (setup not counted), one core per run on one dedicated server. The Palubeckis problems were run up to 1 min, so the 5 min view shows the random graphs only. Gap: distance to the best answer any tested solver found. Other solvers: MQLib (Burer 2002), D-Wave neal and OpenJij, at default settings and with sweeps sized to fill the budget; the best of them at every point. 4colors' gaps rounded up, the others' down.
Dense graph, degree 256, instance 1 100,000 variables
4colors1.69%
best other solver5.81%
Dense graph, degree 256, instance 2 100,000 variables
4colors1.62%
best other solver4.76%
Dense graph, degree 256, instance 3 100,000 variables
4colors1.72%
best other solver4.53%
Dense graph, degree 256, instance 1 100,000 variables
4colors0.59%
best other solver5.81%
Dense graph, degree 256, instance 2 100,000 variables
4colors0.71%
best other solver4.76%
Dense graph, degree 256, instance 3 100,000 variables
4colors0.60%
best other solver4.53%
Dense graph, degree 256, instance 1 100,000 variables
4colors0.26%
best other solver2.34%
Dense graph, degree 256, instance 2 100,000 variables
4colors0.24%
best other solver2.22%
Dense graph, degree 256, instance 3 100,000 variables
4colors0.25%
best other solver2.27%
Dense graph, degree 256, instance 1 100,000 variables
4colors0.15%
best other solver0.79%
Dense graph, degree 256, instance 2 100,000 variables
4colors0.14%
best other solver0.70%
Dense graph, degree 256, instance 3 100,000 variables
4colors0.19%
best other solver0.73%
Dense graph, degree 256, instance 1 100,000 variables
4colors0.02%
best other solver0.19%
Dense graph, degree 256, instance 2 100,000 variables
4colors0.03%
best other solver0.19%
Dense graph, degree 256, instance 3 100,000 variables
4colors0.02%
best other solver0.23%
- 4colors
- Best other solver
How we measuredClose ×
Random graphs of 100,000 variables with average degree 4, 16, 64 and 256, and the Palubeckis benchmarks of 3,000, 5,000 and 7,000 variables; 3 instances each, median over 3 seeds; search budgets of 3 s to 5 min (setup not counted), one core per run on one dedicated server. The Palubeckis problems were run up to 1 min, so the 5 min view shows the random graphs only. Gap: distance to the best answer any tested solver found. Other solvers: MQLib (Burer 2002), D-Wave neal and OpenJij, at default settings and with sweeps sized to fill the budget; the best of them at every point. 4colors' gaps rounded up, the others' down.
Palubeckis 3,000 variables, instance 1 at best found
4colorsbest found
best other solver0.57%
Palubeckis 3,000 variables, instance 2 at best found
4colorsbest found
best other solver0.35%
Palubeckis 3,000 variables, instance 3 at best found
4colorsbest found
best other solver0.45%
Palubeckis 5,000 variables, instance 1
4colors0.01%
best other solver0.61%
Palubeckis 5,000 variables, instance 2
4colors0.02%
best other solver0.63%
Palubeckis 5,000 variables, instance 3 at best found
4colorsbest found
best other solver0.73%
Palubeckis 7,000 variables, instance 1
4colors0.05%
best other solver0.75%
Palubeckis 7,000 variables, instance 2
4colors0.03%
best other solver0.58%
Palubeckis 7,000 variables, instance 3
4colors0.06%
best other solver0.71%
Palubeckis 3,000 variables, instance 1 at best found
4colorsbest found
best other solver0.07%
Palubeckis 3,000 variables, instance 2 at best found
4colorsbest found
best other solver0.07%
Palubeckis 3,000 variables, instance 3 at best found
4colorsbest found
best other solver0.07%
Palubeckis 5,000 variables, instance 1
4colors0.01%
best other solver0.10%
Palubeckis 5,000 variables, instance 2
4colors0.01%
best other solver0.38%
Palubeckis 5,000 variables, instance 3 at best found
4colorsbest found
best other solver0.42%
Palubeckis 7,000 variables, instance 1
4colors0.01%
best other solver0.75%
Palubeckis 7,000 variables, instance 2
4colors0.02%
best other solver0.58%
Palubeckis 7,000 variables, instance 3 at best found
4colorsbest found
best other solver0.71%
Palubeckis 3,000 variables, instance 2 at best found
4colorsbest found
best other solver0.01%
Palubeckis 3,000 variables, instance 3 at best found
4colorsbest found
best other solver0.04%
Palubeckis 5,000 variables, instance 2 at best found
4colorsbest found
best other solver0.04%
Palubeckis 5,000 variables, instance 3 at best found
4colorsbest found
best other solver0.08%
Palubeckis 7,000 variables, instance 1
4colors0.03%
best other solver0.09%
Palubeckis 7,000 variables, instance 2
4colors0.01%
best other solver0.17%
Palubeckis 7,000 variables, instance 3 at best found
4colorsbest found
best other solver0.49%
Palubeckis 3,000 variables, instance 2 at best found
4colorsbest found
best other solver0.01%
Palubeckis 3,000 variables, instance 3 at best found
4colorsbest found
best other solver0.03%
Palubeckis 5,000 variables, instance 1
4colors0.01%
best other solver0.02%
Palubeckis 5,000 variables, instance 2 at best found
4colorsbest found
best other solver0.05%
Palubeckis 5,000 variables, instance 3 at best found
4colorsbest found
best other solver0.05%
Palubeckis 7,000 variables, instance 1
4colors0.01%
best other solver0.04%
Palubeckis 7,000 variables, instance 2 at best found
4colorsbest found
best other solver0.06%
Palubeckis 7,000 variables, instance 3 at best found
4colorsbest found
best other solver0.12%
- 4colors
- Best other solver
How we measuredClose ×
Random graphs of 100,000 variables with average degree 4, 16, 64 and 256, and the Palubeckis benchmarks of 3,000, 5,000 and 7,000 variables; 3 instances each, median over 3 seeds; search budgets of 3 s to 5 min (setup not counted), one core per run on one dedicated server. The Palubeckis problems were run up to 1 min, so the 5 min view shows the random graphs only. Gap: distance to the best answer any tested solver found. Other solvers: MQLib (Burer 2002), D-Wave neal and OpenJij, at default settings and with sweeps sized to fill the budget; the best of them at every point. 4colors' gaps rounded up, the others' down.
Ahead on standard benchmarks
Gset Max-Cut graphs and 3D spin glasses are the problems solver papers report on. The Optimizer comes closer to the best known answer on them, from the shortest budget up.
The lead is widest at the shortest budgets, when a fast start matters most. On G32 the Optimizer reaches the best known cut within seconds, and on the larger spin glass it stays ahead at every budget shown.
G32 3.9× smaller gap
4colors0.142%
best other solver0.567%
G61 1.9× smaller gap
4colors0.379%
best other solver0.724%
G63 2.7× smaller gap
4colors0.203%
best other solver0.566%
ea3d-L20 1.7× smaller gap
4colors0.535%
best other solver0.954%
ea3d-L50 2.3× smaller gap
4colors1.166%
best other solver2.785%
G32 at best known
4colorsbest known
best other solver0.284%
G61 2× smaller gap
4colors0.207%
best other solver0.431%
G63 1.7× smaller gap
4colors0.177%
best other solver0.311%
G81 1.7× smaller gap
4colors0.597%
best other solver1.024%
ea3d-L50 2.5× smaller gap
4colors0.913%
best other solver2.302%
G61 2.2× smaller gap
4colors0.155%
best other solver0.345%
G63 1.5× smaller gap
4colors0.14%
best other solver0.218%
G67 1.3× smaller gap
4colors0.432%
best other solver0.604%
G81 1.6× smaller gap
4colors0.469%
best other solver0.782%
ea3d-L50 2× smaller gap
4colors0.691%
best other solver1.402%
G36 1.1× smaller gap
4colors0.091%
best other solver0.104%
G56 1.1× smaller gap
4colors0.174%
best other solver0.199%
G67 1.1× smaller gap
4colors0.403%
best other solver0.46%
G81 1.2× smaller gap
4colors0.526%
best other solver0.654%
ea3d-L50 1.7× smaller gap
4colors0.607%
best other solver1.033%
G32 at best known
4colorsbest known
best other solver0.142%
G63 1.1× smaller gap
4colors0.092%
best other solver0.107%
G67 1.2× smaller gap
4colors0.317%
best other solver0.403%
G81 1.7× smaller gap
4colors0.299%
best other solver0.512%
ea3d-L50 1.6× smaller gap
4colors0.537%
best other solver0.874%
- 4colors
- Best other solver
How we measuredClose ×
Standard problems: Gset Max-Cut graphs and 3D spin glasses with 8,000 and 125,000 variables; median over 3 seeds; on one dedicated server.
The best other solver is the best of MQLib (hyper-heuristic and Burer 2002), D-Wave neal and OpenJij for each problem and budget. The reference is the best known cut for the Gset graphs and, for the spin glasses, the estimated ground-state energy, −1.7863 per spin (Pál 1996), times the number of spins. Shown at each budget: the problems where 4colors is ahead.
Search budgets of 1, 3, 10, 30 and 60 s.
Standard problems at 2 minutes
Given two minutes, 4colors stays ahead of the best other solver on the standard problems.
Two minutes is long enough for every solver to come close, so what remains is the hardest part of the search: the last fraction of a percent. That is where the Optimizer keeps finding better answers.
The lead grows with size. It is widest on the largest problems shown, the 125,000-variable spin glass and G81, the largest Gset graph. On G32 both reach the best known cut.
G32 tied
4colorsbest known
best other solverbest known
G36 4colors closer
4colors0.091%
best other solver0.104%
G61 4colors closer
4colors0.155%
best other solver0.172%
G63 4colors closer
4colors0.07%
best other solver0.104%
G67 4colors closer
4colors0.259%
best other solver0.374%
G81 4colors closer
4colors0.256%
best other solver0.498%
ea3d-L20 4colors closer
4colors0.311%
best other solver0.367%
ea3d-L50 4colors closer
4colors0.485%
best other solver0.745%
- 4colors
- Best other solver
How we measuredClose ×
Gset Max-Cut G32, G36, G61, G63, G67 and G81 against their published best-known cuts, and 3D ±J spin glasses with 8,000 and 125,000 variables against the published estimate of the ground-state energy; 3 seeds each, the median; a 120 s search budget on one dedicated server.
The best other solver is the best of MQLib (hyper-heuristic and Burer 2002), D-Wave neal and OpenJij at their default settings, for each problem.
Time to quality
Reach a chosen quality level sooner
For a fixed target quality, what matters is how long it takes to get there. On large spin glasses, the other solvers needed longer to reach the quality 4colors had already reached.
The same quality in a fraction of the time
At a 10-second search budget on the tested million-variable instances, the best other solver needed 29 to 46 seconds to reach the quality 4colors achieved.
Pick the quality you need, and the Optimizer gets there first. The answer it gives after two minutes was not matched by any other solver tested, even in much longer runs.
3 s budget
4colors 3.9 s, Best other solver 9.9–15 s
5 s budget
4colors 5.9 s, Best other solver 15–19 s
10 s budget
4colors 11 s, Best other solver 29–46 s
20 s budget
4colors 21 s, Best other solver 46–58 s
30 s budget
4colors 31 s, Best other solver 58–91 s
60 s budget
4colors 61 s, Best other solver 186–249 s
120 s budget
4colors 121 s, Best other solver over 296 s
- 4colors
- Best other solver
How we measuredClose ×
Real (wall) time, measured on our server, from the start of the run to the answer, for every solver on the same hardware, on one dedicated server; none is a round trip through the API. Million-spin 3D ±J spin glasses (1,000,000 variables), 5 instances × 3 seeds; median over seeds, then over instances.
Quality: the gap to the published estimate of the ground-state energy of this model (Pál 1996, −1.7863 per spin; the same ranges hold with the later estimate −1.7876). Other solvers: MQLib (hyper-heuristic and Burer 2002) at its time limit; D-Wave neal and OpenJij simulated annealing, two settings each: restarts with doubling sweeps until the budget, and one anneal sized to fill the budget. The tuned settings of D-Wave neal and OpenJij are sized from a calibration run on the same problem before the timed run; that calibration time is not counted in their budget or their wall time.
Their budgets were 1, 3, 10, 30, 60, 120 and 300 s; each range runs from the longest run that had not yet reached the quality to the shortest that had. Their times are rounded down and ours up, so every figure is in their favor.
An answer in under 2 seconds
Get a first solution to a million-variable model in under two seconds, then allow more time to search for a better one.
4colors fastest
4colors1.9 s
Fastest other solver 3.6× slower
Fastest other solver7.0 s
How we measuredClose ×
With a 1 s search budget at one million variables: the real time, measured on our server, from the start of the run to an answer, including reading the model; none is a round trip through the API; the median of five instances and three seeds. Other solvers tested: MQLib (hyper-heuristic and Burer 2002), D-Wave neal and OpenJij; the fastest of them answered after 7 s.
Other solvers are shown at their better setting per budget (restarts or budget-filling): D-Wave neal and OpenJij also ran with sweeps sized to fill the budget. The tuned settings of D-Wave neal and OpenJij are sized from a calibration run on the same problem before the timed run; that calibration time is not counted in their budget or their wall time. A user would have to calibrate once per problem size.
All solvers on the same hardware, on one dedicated server.
Random 3-regular spin glasses
The tested random 3-regular graphs show how solution quality changes with search time on sparse, irregular models.
Random 3-regular graphs have no lattice for a solver to exploit, so they test the search itself. From a few seconds up, the other solvers tested need far longer to reach the same quality.
With a 3 s budget
4colors3.7 s
Best other solverbetween 11 and 28 s
With a 10 s budget
4colors11 s
Best other solverbetween 28 and 58 s
With a 30 s budget
4colors31 s
Best other solverover 58 s
- 4colors
- Best other solver
How we measuredClose ×
Real (wall) time, measured on our server, from the start of the run to the answer, for every solver on the same hardware, on one dedicated server; none is a round trip through the API. Three instances with one million variables per family, 3 seeds each; median over seeds, then over instances.
Quality: the gap to the best answer any tested solver found in this campaign, runs of up to 300 s included. Other solvers: MQLib (hyper-heuristic and Burer 2002) at its time limit; D-Wave neal and OpenJij, two settings each: restarts, and one anneal sized to fill the budget. The tuned settings of D-Wave neal and OpenJij are sized from a calibration run on the same problem before the timed run; that calibration time is not counted in their budget or their wall time.
Each range runs from the longest run that had not yet reached the quality to the shortest that had; other solvers' times are rounded down and ours up, and a budget is shown only where 4colors is still ahead after rounding.
2D torus spin glasses
See how solution quality improves with search time on two-dimensional lattice spin glasses.
2D lattices are a standard test for annealing-based solvers. At a 30-second budget, no other solver tested matched the Optimizer's answer, even in longer runs.
With a 3 s budget
4colors3.7 s
Best other solverbetween 10 and 29 s
With a 30 s budget
4colors31 s
Best other solverover 60 s
- 4colors
- Best other solver
How we measuredClose ×
Real (wall) time, measured on our server, from the start of the run to the answer, for every solver on the same hardware, on one dedicated server; none is a round trip through the API. Three instances with one million variables per family, 3 seeds each; median over seeds, then over instances.
Quality: the gap to the best answer any tested solver found in this campaign, runs of up to 300 s included. Other solvers: MQLib (hyper-heuristic and Burer 2002) at its time limit; D-Wave neal and OpenJij, two settings each: restarts, and one anneal sized to fill the budget. The tuned settings of D-Wave neal and OpenJij are sized from a calibration run on the same problem before the timed run; that calibration time is not counted in their budget or their wall time.
Each range runs from the longest run that had not yet reached the quality to the shortest that had; other solvers' times are rounded down and ours up, and a budget is shown only where 4colors is still ahead after rounding.
Large-scale optimization
From thousands to millions of variables
The Optimizer handles large QUBO and Ising models, including problems with millions of variables; memory and model structure set its limits, not a small fixed size ceiling. Timed studies include models of more than ten million variables on a single CPU core.
Ten million variables, against the best other solver
- 2.5% from the published ground state after a 30 s search, 38 s in all
- 1.3% from the ground state after 5 min; the best other solver gave no answer
- 1 of 3 other solvers tested could run at this size; the other two exceeded the test's memory limit
| One core, 30 s search budget, 3D ±J spin glass | |||
|---|---|---|---|
| Variables | Gap to the estimated ground state | Total wall time | Peak memory |
| 1,000,000 | 1.0% | 30.8 s | 1.01 GB |
| 2,000,376 | 1.2% | 31.5 s | 1.96 GB |
| 5,000,211 | 1.8% | 33.9 s | 4.66 GB |
| 10,077,696 | 2.5% | 37.5 s | 9.33 GB |
How we measuredClose ×
3D ±J spin glasses of one to ten million variables, on one core of a dedicated server, with a 30 s search budget (60 s and 5 min at ten million, three seeds). The gap is to the estimated ground-state energy (Pál 1996), rounded up; wall time and peak memory as measured, reading the model included. At ten million variables MQLib gave no answer in any run, and D-Wave neal and OpenJij did not fit within the memory limit.
Verification and constraints
Answers you can inspect and check
The Optimizer checks objective values against the submitted model and reports whether the returned solution satisfies its constraints. Work with QUBO or Ising objectives, including explicit linear constraints, and follow improvements over time.
Checked objectives
Every reported energy is recomputed on your model, offset included, by two independent evaluators that must agree.
Exact linear constraints
Add linear constraint rows to QUBO or Ising objectives; if no feasible answer is found in time, the job says so.
Warm starts and resume
Start from an assignment you already have, with an answer never worse than it, and resume interrupted work from the best earlier solution.
Live improvements
Follow improving assignments as the search runs, or stop and keep the best result so far.
QUBO and Ising models
Minimize or maximize binary or spin models with linear and pair terms.
Large-scale search
Up to a million variables in the hosted service; the engine runs to ten million.
Exact energies
Integer models get exact objective values, even beyond 2^53, with an exact text form for readers that cannot hold large integers.
dimod sampler
FourColorsSampler fits existing dimod workflows, including linear constraints.
Missing something?
Tell us which feature would help your work.
Request a feature
Workflow
From your QUBO model to a checked solution
Submit a binary quadratic model, choose your search budget and follow the best assignments found. The output gives the assignment, its checked objective, the timing and, where there are constraints, the feasibility status.
Input
- Model QUBO or Ising, from Python or dimod
- Linear constraints Optional, alongside the quadratic objective
- Search budget The time the search may use; reading and checking the model add to the wall time
- Warm start Optional, an assignment to start from
4colors Optimizer for QUBO
- Search Searches binary or spin assignments
- Improvement Keeps improving the objective until the budget is spent
- Early answers A first answer early in the search
- Stopping Stop early and keep the best solution
Output
- Best assignment With its objective value, recomputed exactly on your model
- Live progress Follow each improvement as it arrives
- Timing Computation time for the run
- Solver status Verified feasible, or a clear report that no feasible solution was found
Integration
Use the tools you already work with
Code examples on GitHubSubmit models from Python, work with familiar binary quadratic model formats, or call the API from your application. Start from your existing QUBO or Ising model, set a search budget and retrieve checked results.
Scripts and notebooks
Python module
Submit a model and follow each better solution as it arrives.
Python module documentationimport fourcolorsQ = {(0, 1): 2, (1, 2): 2, (2, 3): 2, (0, 3): -3}job = fourcolors.qubo.submit(Q, time_limit_s=30, linear=[-1, -1, -1, -1])for res in job.incumbents(): print(res.objective)print(res.solution)Existing code
dimod
Use it as a dimod sampler, on the binary quadratic models you already have.
dimod documentationimport dimodfrom fourcolors import FourColorsSamplerbqm = dimod.generators.ran_r(1, 50, seed=1) # or your own BinaryQuadraticModelsampleset = FourColorsSampler().sample(bqm, time_limit_s=30)print(sampleset.first.energy)print(sampleset.first.sample)Any language or pipeline
Direct API
Submit from any language, follow better solutions live, and stop early when the answer is good enough.
API documentation- POST /v1/jobs
- Submit a model and a time budget
- GET /v1/jobs/{id}/events
- Follow each better solution live
- GET /v1/jobs/{id}
- Read the best solution and its objective
- POST /v1/jobs/{id}/stop
- Stop early and keep the best solution
A classical reference
Know what your quantum approach needs to beat
Quantum and hybrid optimization research needs meaningful classical comparisons. Use the Optimizer to set a strong reference on the same QUBO or Ising problem, with a stated time budget and results you can verify.
Evaluate fairly
Compare the same instances and objectives, with budgets and execution conditions disclosed.
Understand the trade-off
Inspect solution quality, wall time, model size and constraints together.
Build the next experiment
Use the classical result to define what a quantum or hybrid approach would need to improve.
Start free trialPlans and limitsRunning quantum circuits? Explore the Quantum Compiler
Reproducible comparisons
Compare the result, not just the headline
Every result is shown with its problem family, model size, reference and search budget, and each comparison names the other solvers and their settings.
What does gap mean?
The distance from the stated reference, divided by its absolute value; lower is better. Where the reference is the best answer found, it is the best any tested solver reached.
What is the difference between search budget and wall time?
The search budget limits the optimization search. Wall time also counts reading the model and the rest of the measured run.
How were the comparisons run?
Every solver ran on the same dedicated server at the same search budgets, with three seeds per instance and the median reported. Where values are rounded, ours are rounded up and the other solvers' down.
Will I see the same gains on my model?
Results depend on problem structure, size and search budget. The free trial lets you measure the Optimizer on your own model.
Which release was measured?
The timed studies shown here were measured on earlier releases of the Optimizer for QUBO, under the conditions in each How we measured.
Proven on scheduling first
Built on 4colors optimization algorithms
4colors Optimizer for QUBO uses our optimization technology to search binary models. Our scheduling products apply related algorithms to a different class of problems.
Anytime search carries over: a useful answer early, then steady improvement for the budget you choose.
Powered by
4colors Optimizer
Original search algorithms, tested on demanding benchmarks and run to your search budget. Also powers the Optimizer for Scheduling, the Quantum Compiler and the planning apps.
Explore the 4colors OptimizerFurther reading
Understand the QUBO result
Browse guides and tutorials- Guide
What is a quantum solver? Classical, hybrid and quantum approaches explained
Understand quantum solvers, QUBO and Ising models, classical solvers and hybrid algorithms, plus what to compare before choosing a method.
Read the guide - Insight
QUBO explained: a small model with big possibilities
Build intuition for quadratic binary objectives before evaluating larger models.
Read the insight - Guide
QUBO penalty weights: a practical walkthrough
A penalty that is too small can make an invalid assignment look optimal.
Read the guide - Guide
Getting started with QUBO in Python
Check a small problem exhaustively before trusting a more complex solve.
Read the guide - Insight
QUBO and Ising models: two ways to write the same choices
Follow the variable transformation between binary decisions and spin models.
Read the insight - Insight
Feasible, optimal and good enough: what does a solver result mean?
A strong objective value is not necessarily an optimality proof.
Read the insight
Test the Optimizer on a problem you know
Bring a QUBO or Ising model and see how the Optimizer performs within your time budget.