Papers › A Quantum Approximate Optimization Algorithm

A Quantum Approximate Optimization Algorithm

14 Nov 2014arXiv:1411.4028links table onlyarchive 2025-07-28

Edward Farhi, Jeffrey Goldstone, Sam Gutmann

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

We introduce a quantum algorithm that produces approximate solutions for combinatorial optimization problems. The algorithm depends on a positive integer p and the quality of the approximation improves as p is increased. The quantum circuit that implements the algorithm consists of unitary gates whose locality is at most the locality of the objective function whose optimum is sought. The depth of the circuit grows linearly with p times (at worst) the number of constraints. If p is fixed, that is, independent of the input size, the algorithm makes use of efficient classical preprocessing. If p grows with the input size a different strategy is proposed. We study the algorithm as applied to MaxCut on regular graphs and analyze its performance on 2-regular and 3-regular graphs for fixed p. For p = 1, on 3-regular graphs the quantum algorithm always finds a cut that is at least 0.6924 times the size of the optimal cut.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1411.4028")

Code

Syntology Ran 2 of 20 code samples harvested from 7 repositories linked to this paper; 18 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: community (archive-listed): 20 samples from 7 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

16 repositories listed; official and paper-mentioned ones first.

BOHRTECHNOLOGY/quantum_tsp mentioned on GitHub report
Matematija/QubitRBM mentioned on GitHubApache-2.0 report
QLemma/qLEET mentioned on GitHub report
dlasecki/QaoaParamsPredictor mentioned on GitHubApache-2.0 report
dlasecki/QaoaParamsPredictorApi mentioned on GitHubApache-2.0 report
gaidaiigor/ma-qaoa mentioned on GitHub report
kdalkafoukis/quantum_computing mentioned on GitHubMIT report
mahabubul-alam/QAOA-Compiler mentioned on GitHubApache-2.0 report
mahabubul-alam/QAOA_Compiler mentioned on GitHubApache-2.0 report
openquantumcomputing/qaoa mentioned on GitHubGPL-3.0 report
qiboteam/qibojit-benchmarks mentioned on GitHubtfApache-2.0 report
vilcius/angle-rounding-qaoa mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 2 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
18unverified

Licence: 3 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calc_expectation_ma_qaoa_analytical_p1 vilcius/angle-rounding-qaoa/src/analytical.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 38120187e7be252d · report
change_sign gaidaiigor/ma-qaoa/src/optimization.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d080cfc794d6a032 · report
build_kde_parameters_matrix dlasecki/QaoaParamsPredictor/predictor/kernel_density_estimation/kde_matrix_builder.py community (archive-listed) unverified Apache-2.0 (permissive) · a3b9d516cc816898 · report
calclulate_angles kdalkafoukis/quantum_computing/quantum_state_preparation.py community (archive-listed) unverified MIT (permissive) · ea1d4771a87d0fd1 · report
create_initial_layout mahabubul-alam/QAOA-Compiler/compile_qaoa/initial_layout_qaoa.py community (archive-listed) unverified Apache-2.0 (permissive) · f2adc77ace71c3e8 · report
diffusion_iterations kdalkafoukis/quantum_computing/grovers_algorithm.py community (archive-listed) unverified MIT (permissive) · db38044b61e1068b · report
getDensityDft kdalkafoukis/quantum_computing/generate_superposition_state.py community (archive-listed) unverified MIT (permissive) · 4cd7ac3f30787757 · report
getFlatDft kdalkafoukis/quantum_computing/generate_superposition_state.py community (archive-listed) unverified MIT (permissive) · b07d8ddcd3a52b07 · report
getInput kdalkafoukis/quantum_computing/qdft.py community (archive-listed) unverified MIT (permissive) · 4ec45ff64fc0cde5 · report
getNumberOfElements kdalkafoukis/quantum_computing/generate_superposition_state.py community (archive-listed) unverified MIT (permissive) · 166d599871769595 · report
initial_layout mahabubul-alam/QAOA-Compiler/compile_qaoa/initial_layout_qaoa.py community (archive-listed) unverified Apache-2.0 (permissive) · 1ee5945913cb6a03 · report
limit_gpu_memory qiboteam/qibojit-benchmarks/benchmarks/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 4021f173050764dd · report
load_kde_model dlasecki/QaoaParamsPredictor/predictor/kernel_density_estimation/data_handlers/kde_model_loader.py community (archive-listed) unverified Apache-2.0 (permissive) · afc9b29615bdbf18 · report
log1pexp Matematija/QubitRBM/qubitrbm/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 5a85edd362514c64 · report
logcosh Matematija/QubitRBM/qubitrbm/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 80f9e15cb62b3ef2 · report
parseNumOfIterations kdalkafoukis/quantum_computing/random_walks_on_the_cube.py community (archive-listed) unverified MIT (permissive) · bba3d1cbb4c697e9 · report
round_angles vilcius/angle-rounding-qaoa/run_angle_rounding.py community (archive-listed) unverified no licence file found · pointer only · a1179d8a1cc33ba3 · report
select_numba_threading qiboteam/qibojit-benchmarks/benchmarks/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b3efab6cd7df7c89 · report
sigmoid Matematija/QubitRBM/qubitrbm/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · f9b46a6521b5d652 · report
sort_program_qubits mahabubul-alam/QAOA-Compiler/compile_qaoa/initial_layout_qaoa.py community (archive-listed) unverified Apache-2.0 (permissive) · d103dfa9bdd5a8f0 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections