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.

Deutsch–Jozsa algorithm is exact

Statement

For every n≥1 and every function satisfying the Deutsch–Jozsa promise, One-query Deutsch–Jozsa algorithm outputs constant with probability one on constant inputs and balanced with probability one on balanced inputs. 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, N=2n, and a total Boolean function f:{0,1}n→{0,1} that is constant or exactly balanced.

[F1]

One-query Deutsch–Jozsa algorithm: prepare ∣+⟩⊗n∣−⟩, query once, apply H⊗n to the address, and output constant exactly at measured address 0n.

[F2]

Deutsch–Jozsa promise: constant functions have one value everywhere; balanced functions have N/2 zeros and N/2 ones.

[F3]

One standard query implements one phase query: the target ∣−⟩ stays unchanged and the address acquires phase (−1)f(x) after one XOR query.

[F4]

Hadamard character sum on F_2^n: H⊗n∣x⟩=2−n/2∑y(−1)x⋅y∣y⟩, and the sum ∑x(−1)x⋅z is 2n for z=0n and 0 otherwise.

[F5]

Normalized output law for finite quantum query branches: the terminal address measurement has nonnegative output weights summing to one, with each weight obtained by summing diagonal state weights over the remaining target register.

[F6]

A unit-vector outer product is a density operator: a unit vector's rank-one projector is a density operator.

[F7]

Ordered tensor registers, their inner product, and wire permutations: ordered product basis vectors use the product inner product and retain the displayed register order.

[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.1givenF1F3F4algebra

By [F1] and [F3], after the oracle and final Hadamards the amplitude at address y is αy=2−n∑x∈{0,1}n(−1)f(x)+x⋅y. For constant f(x)=c, factor out (−1)c and apply [F4] with z=y: αy=(−1)c if y=0n and 0 otherwise.

2.1givenF2F3F5F6F7step 1.1algebra

For balanced f, [F2] gives equally many +1 and −1 terms in α0n, so α0n=0. For every y, the terminal output weight is ∣αy∣2 after summing the target coordinates: the state is ∑yαy∣y⟩⊗∣−⟩, the target has squared coordinate moduli 1/2,1/2 by [F3]. Its unit-vector projector is a density operator by [F6], and [F5] and [F7] give the stated marginal. Thus the constant case outputs 0n surely, while in the balanced case the probability of 0n is zero.

3.1F1F5step 1.1step 2.1algebra

The output weights sum to one by [F5]. Hence, when f is balanced, all output probability is on strings other than 0n, which the output rule of [F1] labels balanced; in the constant case step 1.1 places all probability at 0n.

4.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

66 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