Papers › Span programs and quantum query complexity: The general adversary bound is nearly...

Span programs and quantum query complexity: The general adversary bound is nearly tight for every boolean function

17 Apr 2009arXiv:0904.2759links table onlyarchive 2025-07-28

Ben W. Reichardt

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.

The general adversary bound is a semi-definite program (SDP) that lower-bounds the quantum query complexity of a function. We turn this lower bound into an upper bound, by giving a quantum walk algorithm based on the dual SDP that has query complexity at most the general adversary bound, up to a logarithmic factor. In more detail, the proof has two steps, each based on "span programs," a certain linear-algebraic model of computation. First, we give an SDP that outputs for any boolean function a span program computing it that has optimal "witness size." The optimal witness size is shown to coincide with the general adversary lower bound. Second, we give a quantum algorithm for evaluating span programs with only a logarithmic query overhead on the witness size. The first result is motivated by a quantum algorithm for evaluating composed span programs. The algorithm is known to be optimal for evaluating a large class of formulas. The allowed gates include all constant-size functions for which there is an optimal span program. So far, good span programs have been found in an ad hoc manner, and the SDP automates this procedure. Surprisingly, the SDP's value equals the general adversary bound. A corollary is an optimal quantum algorithm for evaluating "balanced" formulas over any finite boolean gate set. The second result extends span programs' applicability beyond the formula evaluation problem. A strong universality result for span programs follows. A good quantum query algorithm for a problem implies a good span program, and vice versa. Although nearly tight, this equivalence is nontrivial. Span programs are a promising model for developing more quantum algorithms.

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="0904.2759")

Code

Syntology Ran 0 of 19 code samples harvested from 1 repository linked to this paper; 19 have no recorded run.

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

rtealwitter/quantumqueryoptimizer mentioned on GitHubMIT 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

19 samples harvested; 0 ran; 0 honoured the contract we drafted; 19 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.

19unverified

Licence: 0 of the 19 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 rtealwitter/quantumqueryoptimizer. “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.

checkConstraints rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/span_program.py community (archive-listed) unverified MIT (permissive) · f92e18fb929ee288 · report
getA0s rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/constraints.py community (archive-listed) unverified MIT (permissive) · 2711b2c7e5784349 · report
getA1s rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/constraints.py community (archive-listed) unverified MIT (permissive) · a5c3629938fd36d4 · report
getConstraints rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/constraints.py community (archive-listed) unverified MIT (permissive) · 485bc1653a66acdb · report
getDAll rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/boolean_functions.py community (archive-listed) unverified MIT (permissive) · b28bc19ebe21294d · report
getDWorstOR rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/boolean_functions.py community (archive-listed) unverified MIT (permissive) · e0201961407946ae · report
getEOR rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/boolean_functions.py community (archive-listed) unverified MIT (permissive) · d412fb68a945d9da · report
getIx rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/span_program.py community (archive-listed) unverified MIT (permissive) · 10e5a3f44f51e3dc · report
getL rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/span_program.py community (archive-listed) unverified MIT (permissive) · bc05320e733f0c4c · report
get_boolean_labels rtealwitter/quantumqueryoptimizer/planes.py community (archive-listed) unverified MIT (permissive) · dcbd8af865f52436 · report
get_domain_all rtealwitter/quantumqueryoptimizer/paper/experiments.py community (archive-listed) unverified MIT (permissive) · fb334ab44483b02e · report
get_domain_some rtealwitter/quantumqueryoptimizer/paper/experiments.py community (archive-listed) unverified MIT (permissive) · d1fd3c88729dcbd0 · report
get_output_random rtealwitter/quantumqueryoptimizer/paper/experiments.py community (archive-listed) unverified MIT (permissive) · 4e223db9e3ae57ac · report
is_directed_path rtealwitter/quantumqueryoptimizer/grids.py community (archive-listed) unverified MIT (permissive) · 203fbac7141cf74b · report
plainA rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/adm.py community (archive-listed) unverified MIT (permissive) · 3902812b5ef0b19a · report
points_on_line_with_slope rtealwitter/quantumqueryoptimizer/planes.py community (archive-listed) unverified MIT (permissive) · cd7cd17696d91efb · report
points_on_vertical_line rtealwitter/quantumqueryoptimizer/planes.py community (archive-listed) unverified MIT (permissive) · 227523b478bd5ff8 · report
scriptA rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/adm.py community (archive-listed) unverified MIT (permissive) · f16f5f95d6eec544 · report
scriptAStar rtealwitter/quantumqueryoptimizer/quantum_query_optimizer/adm.py community (archive-listed) unverified MIT (permissive) · 9502807da80aa6a6 · 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