Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedPipeline-generatedprecheck passjudge pass (gpt-6-luna)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Bernstein–Vazirani algorithm returns the secret exactly

Statement

For every n≥1 and every no-offset Bernstein–Vazirani function fa(x)=a⋅x, One-query Bernstein–Vazirani algorithm outputs the secret a with probability one. In the algorithm's declared exact X,H gate model, it uses exactly one oracle query and one X and 2n+1 H gates, totaling 2n+2 one-qubit gates. The terminal measurement is a separate resource.

Facts & Assumptions

Given: n≥1, a∈{0,1}n, and the total function fa(x)=a⋅x.

[F1]

One-query Bernstein–Vazirani algorithm: the algorithm prepares ∣+⟩⊗n∣−⟩, invokes the standard XOR query once, applies H⊗n to the address, then measures and outputs it.

[F2]

Bernstein–Vazirani no-offset promise and Binary dot product as parity: fa(x)=a⋅x is the bitwise parity of the products aixi, with no additive offset.

[F3]

One standard query implements one phase query: one query with target ∣−⟩ maps each address basis state to (−1)fa(x)∣x⟩∣−⟩.

[F4]

Hadamard character sum on F_2^n: for z∈{0,1}n, ∑x(−1)x⋅z=2n when z=0n and 0 otherwise.

[F5]

Normalized output law for finite quantum query branches: terminal output probabilities sum the diagonal state weights over the unmeasured target register and form a normalized finite law.

[F6]

A unit-vector outer product is a density operator: the rank-one projector of a unit vector is a density operator.

[F7]

Ordered tensor registers, their inner product, and wire permutations: the address and target product basis retains the declared factor order and product inner product.

[F8]

Nonoracle quantum gate cost: each declared nonoracle gate occurrence, including preparation, is counted once; oracle calls and terminal measurement are separate resources under the algorithm's gate model.

Proof

1.1givenF1F2F3algebra

By [F1]–[F3], after phase kickback and the final address Hadamards the amplitude at y is αy=2−n∑x∈{0,1}n(−1)a⋅x+x⋅y=2−n∑x(−1)x⋅(a⊕y), where ⊕ is coordinatewise addition modulo two; the parity formula in [F2] gives the exponent identity coordinate by coordinate.

2.1F3F4F5F6F7step 1.1algebra

By [F4], αy=1 for y=a and 0 for y≠a. The target remains the unit vector ∣−⟩ by [F3], so [F5]–[F7] give output weight ∣αy∣2 at each measured address. Therefore the output distribution is concentrated at a.

3.1F1F8algebra∎

The procedure [F1] contains one oracle invocation. Its target preparation has one X and one H, and its address has n Hadamard gates before and n after the query. Thus [F8] gives exactly one query and one X and 2n+1 H gates, totaling 2n+2 one-qubit gates; the terminal measurement is counted separately.

Depends on

Used by

Dependency tree · two levels

71 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources