← Atlas

Algorithms · PromiseBQP-complete problem

String rewriting derivation counts

Fix a relation that permits replacing one substring by another. Given strings s, t and t′ of length L, let Δ(n) be the number of ways of reaching t from s in exactly n replacements minus the number of ways of reaching t′. Given a promise that |Δ(m)| ≥ εc^m for the input m, and a growth promise that Δ(n) ≤ c^n for every n, determine the sign of Δ(m).

Attested & literatureUpdated

Open on the mapView frozen graph

  • Record typeLiterature reference
  • Speedup class (secondary source)Superpolynomial
  • Primary source on the speedupStated by the primary source: "Given that BQP≠BPP, our result shows that the quantum computer outperforms the classical computer in estimating differences of combinatorial quantities."
  • Reported costNot stated by the sources read
  • Papers1

A part this method uses, worked through

This page says Hamiltonian simulation and phase estimation can estimate — here is a concrete, runnable instance of it.

Phase estimation of P(3*pi/4)

3 counting qubits estimating the phase of P(3π/4), which is 2π·3/8 exactly: a phase 3-bit QPE can represent exactly.

q0q1q2q3XHadamard layer(3)Controlled phase powers(3)QFT inverse(3)

Where it ends up

  • 1011100%

The counting register reads 011 = 3 with probability 1: angle/(2π) = 3/8, recovered exactly.

One of its steps changes only phase: the outcome probabilities stay put while the state does not.

Open this part in Studio

A part this method uses, worked through

This page says Hamiltonian simulation and phase estimation — here is a concrete, runnable instance of it.

2 Trotter steps of a transverse-field Ising chain

4 qubits starting at |0000⟩, J=1, h=0.5, dt=0.3, 2 first-order Trotter steps.

q0q1q2q3Ising Trotter step(4)Ising Trotter step(4)

Where it ends up

  • 000075%
  • 00016%
  • 10006%
  • 00105%
  • 12 more outcomes8%

The state spreads from |0000⟩ across several nearby basis states. The exact split is a regression value from this file's own simulator, not a claim about a real material.

Open this part in Studio

Quantum vs classical

Classical baseline

Compare PromiseBQP-complete problem with the strongest classical method for the same instance, input budget, and output metric.

Quantum claim

This reference exposes a quantum circuit pattern; it does not imply an application-level speedup without a matched benchmark.

How to compare

Report input loading, circuit depth, repetitions, classical preprocessing, post-processing, and wall-clock time together.

References

  • A PromiseBQP-complete String Rewriting Problem

    Dominik Janzing, Pawel Wocjan · 2007

    Primary source. Consult it for the two promises the result depends on, for the Lipschitz clipping that makes the growth promise usable, and for the encoding of a quantum circuit into a translationally invariant qudit chain. It is also the place to check the disagreement between the abstract and Definition 1 about how the power m may grow with the string length, which is why this record states no cost.

Attested & literature
  • Peer-reviewed paper
Method
Curation only. The problem statement was recorded from the literature; the speedup class is checked against the record's own primary paper, which states it; the primary reference's title, authors and submission year were read from its arXiv abs page; the complexity claim was taken from a clause of that paper's abstract (The source states no resource bound for this record. arXiv:0705.1180 section 3 gives an accuracy rather than a cost — "we obtain an estimation of ∆s,t,t′(m) up to an error of ǫc^m with any desired probability that is inverse polynomially close to 1" — and defers the circuit itself: "It is straightforward but technical to construct a quantum circuit ... that it solves String Rewriting in the sense of Definition 2." Read for this: the abstract, sections 1, 2, 3 and 5, and the definitions and footnotes in section 2. Note also that the abstract and the body disagree on how m may grow — the abstract says "an integer m that is polylog- arithmic in L", while Definition 1 in section 2 takes "a positive integer m = poly(L) as input" — so no growth rate for m is stated here either.). No circuit was constructed, simulated or run.
Result
Pass · the record's problem, speedup class and primary reference agree with the two sources named above.
Caveat
This is a literature record: no circuit was built, compiled, simulated or run, and no rewriting instance was decided here. The result is stated for a promise problem and rests on two promises at once, a gap promise and a growth promise, and the paper says the estimation procedure is quite sensitive to the growth bound — the bound is not a formality but the thing that fixes the smallest scale on which Δ(m) can be estimated at all. The hardness half is proved only for length-preserving replacement relations; the paper asserts, in a footnote, that a relation identifying substrings of different lengths still yields a problem in PromiseBQP, but does not prove hardness for that case here. The separation from classical computation is conditional on BQP ≠ BPP, which is unproven. No gate count, qubit count or running time is stated anywhere in the text read, and the abstract and body disagree about whether m is polylogarithmic in L or polynomial in it, so this record states no cost rather than picking one of the two.
A PromiseBQP-complete String Rewriting Problem ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata only; source publication terms apply
string rewritingpromisebqp-completeadjacency matrixphase estimationcombinatorial counting

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.