Alphabeta Math
Pipeline-generated
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.

✓ 10 results · all verified · 0 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 10 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Reversible Arithmetic and Oracle Conversion

1 · Prerequisites

2 · Summary

This page fixes the standard XOR query and the binary phase query for a total Boolean function. It proves phase kickback, the conversion from a standard query using an explicitly prepared ∣−⟩ target, and the reverse conversion only when controlled phase access is granted. Query calls and nonoracle gate costs remain separate. The page also gives a clean compute-copy-uncompute argument, the two-residue operations and parity dot product, and an exact reversible Toffoli circuit. A constant phase is invisible when used alone but becomes a relative phase under an explicit control.

Each exact circuit count uses a local operation model that permits its named gates as callable members of the declared finite gate alphabet; defining a gate matrix alone does not grant an operation call. Explicit oracle calls remain separate from nonoracle gate occurrences.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Standard bit-flip query convention

Definition

Let a,b≥0 and let f:{0,1}a→{0,1}b be a total function. The standard bit-flip query for f is the coherent XOR action

Uf∣x⟩∣y⟩=∣x⟩∣y⊕f(x)⟩

on the ordered a-bit address register followed by the ordered b-bit target register. Here ⊕ is componentwise addition modulo two, and words label the ordered computational basis as in Finite registers and their ordered computational bases and Big-endian encoding of ordered bit strings. The address is unchanged. One invocation is one query under Promise query instance and oracle family; its query cost is separate from elementary gate cost.

The map is an involution and is unitary by A total Boolean XOR oracle is unitary and involutive. No injectivity of f is assumed.

Facts & Assumptions

Given: A total Boolean function f on finite ordered address and target registers, with the XOR action above.

[F1]

A total Boolean XOR oracle is unitary and involutive: every total Boolean XOR oracle is unitary and its square is the identity, without an injectivity hypothesis.

Verification

1.1givenalgebra

On each computational-basis input ∣x⟩∣y⟩, the defined action leaves x fixed and changes y to y⊕f(x). Applying it twice changes the target to (y⊕f(x))⊕f(x)=y, since each bit toggled twice returns to its original value. Hence the action is involutive on every basis vector.

2.1givenF1step 1.1algebra∎

The displayed action is exactly the total Boolean XOR oracle in [F1], so [F1] gives its unitarity. Because the action retains each address x and only translates its target by f(x), it does not require distinct addresses to have distinct function values; no injectivity assumption is needed.

DefinitionDefinition: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Binary phase-query convention

Definition

For a Boolean function f:{0,1}a→{0,1}, the phase query is the linear operator on the address register defined on its ordered computational basis by

Pf∣x⟩=(−1)f(x)∣x⟩.

This definition supplies uncontrolled access only. Controlled access to Pf is a separate promise and is not implied by an uncontrolled call.

Facts & Assumptions

Given: A Boolean function f on {0,1}a and the ordered computational basis of the a-bit address register.

[F1]

Finite registers and their ordered computational bases: the a-bit register has the ordered computational basis indexed by {0,1}a, including the one-dimensional empty register when a=0.

[F3]

Promise query instance and oracle family: a query function is total on the address domain; the promise restricts instances, not addresses.

[F4]

The product basis is orthonormal and tensor dimensions multiply: the ordered computational-basis vectors of the address register form an orthonormal basis, including the empty register.

Verification

1.1givenF1F3F4algebra

For each basis vector ∣x⟩, the coefficient (−1)f(x) is either 1 or −1. Therefore Pf maps the ordered basis to scalar multiples of itself and preserves each basis vector's norm.

2.1step 1.1F1F4algebra

Distinct basis vectors remain orthogonal because their images are scalar multiples of the same distinct basis vectors; the diagonal coefficients have modulus one. By [F4] these vectors form an orthonormal basis, so the linear extension preserves the inner product on a basis and hence on every vector; it is unitary in finite dimension.

3.1givenF1F4algebra∎

Applying Pf twice to ∣x⟩ gives (−1)2f(x)∣x⟩=∣x⟩. The basis spans the register by [F4], so Pf2=I on the whole register.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Phase kickback from the standard bit query

Statement

Let f:{0,1}a→{0,1} be a total Boolean function. If the one-bit target of its standard query is prepared in

∣−⟩:=∣0⟩−∣1⟩2,

then one standard query acts on every address basis vector by

Uf(∣x⟩∣−⟩)=(−1)f(x)∣x⟩∣−⟩.

Thus the address acquires exactly the phase query Pf, while the target returns unchanged. The same identity holds for every address superposition.

Facts & Assumptions

Given: The total Boolean function, the standard XOR query, and the normalized target vector ∣−⟩.

[F1]

Standard bit-flip query convention: Uf∣x⟩∣y⟩=∣x⟩∣y⊕f(x)⟩.

[F2]

Binary phase-query convention: Pf∣x⟩=(−1)f(x)∣x⟩, extended linearly.

[F3]

Pure state and ray: a normalized nonzero vector represents a pure state; the displayed unit vector is an allowed target state.

[F4]

Finite registers and their ordered computational bases, The computational basis is orthonormal and The product basis is orthonormal and tensor dimensions multiply: the ordered computational-basis vectors span each finite address register, including the zero-qubit register.

[F5]

Dirac Notation Conversion: ket notation denotes the corresponding vectors with the repository's stated inner-product convention.

Proof

1.1givenF1F3algebra

If f(x)=0, the query leaves the target bits unchanged, so it fixes ∣x⟩∣−⟩. If f(x)=1, it swaps the target basis vectors and sends (∣0⟩−∣1⟩)/2 to (∣1⟩−∣0⟩)/2=−∣−⟩. Therefore in both cases the target returns unchanged and the scalar is (−1)f(x).

2.1step 1.1F2F4F5algebra∎

By [F2], the address factor in step 1.1 is exactly Pf∣x⟩. Any address vector is a finite linear combination ∑xαx∣x⟩ by [F4]; linearity of Uf gives ∑xαx(−1)f(x)∣x⟩∣−⟩=(Pf∑xαx∣x⟩)⊗∣−⟩. Hence the target is unchanged and the identity holds on every superposition.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

One standard query implements one phase query

Statement

Let f:{0,1}a→{0,1} be total. Starting a target qubit in ∣0⟩, apply X and then H, and make one standard bit query. Since HX∣0⟩=∣−⟩, phase kickback implements Pf on the address and returns the target to ∣−⟩. This conversion uses one query plus exactly two nonoracle one-qubit gates; the target preparation is explicit and assumes no preprepared state or generic amplitude loading.

Facts & Assumptions

Given: The zero-initialized target, the standard bit query, and the exact one-qubit gate matrices in the ordered computational basis.

[F1]

Standard bit-flip query convention: one query applies ∣x⟩∣y⟩↦∣x⟩∣y⊕f(x)⟩.

[F2]

Binary phase-query convention: Pf∣x⟩=(−1)f(x)∣x⟩.

[F3]

Phase kickback from the standard bit query: a target in ∣−⟩ converts one standard query to the phase query and returns unchanged.

[F4]

Exact one-qubit gates and rotations: X∣0⟩=∣1⟩ and H∣1⟩=(∣0⟩−∣1⟩)/2.

[F5]

Finite circuit resource accounting: the declared gate count counts each X and H occurrence once, separately from black-box calls.

[F6]

Nonoracle quantum gate cost: query calls and gates outside those calls are separate resource coordinates, and the latter count preparation gates.

[A1]

For the explicit preparation from ∣0⟩ and its two-gate count, the selected nonoracle operation model has a finite gate alphabet containing and permitting X and H as callable gates, each occurrence is counted once, and the standard query is charged separately as one oracle call.

The phase identity in [F3] for an already prepared ∣−⟩ target does not require [A1]; [A1] is needed only for the displayed preparation from ∣0⟩ and its gate count.

Proof

1.1givenF4A1algebra

From [F4], after the first gate the target is X∣0⟩=∣1⟩, and after the second it is H∣1⟩=∣−⟩. The chronological order is therefore HX∣0⟩, not XH∣0⟩.

2.1step 1.1F1F2F3

Apply the standard query once. The phase-kickback theorem [F3], using the query action [F1] and the target established in step 1.1, gives Pf on the address and returns the target to ∣−⟩. By [F2] this address action is exactly the defined phase query.

3.1step 1.1F1F5F6A1∎

The preparation has one X and one H, hence two nonoracle gates by [F5]–[F6], and the oracle is invoked once by [F1]. These counts are separate; the construction makes no generic state-preparation call.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Controlled phase access implements a standard bit query

Statement

Let f:{0,1}a→{0,1} be total. Assume the operation model explicitly supplies the controlled phase call

C(Pf)=(I00Pf)

with the output qubit as the first, control register. On address ∣x⟩ and output ∣y⟩, apply H to the output, make one controlled phase call, and apply H again. The result is ∣x⟩∣y⊕f(x)⟩, so this implements one standard query with one controlled phase call and two nonoracle H gates. Bare uncontrolled Pf access does not satisfy the stated access hypothesis.

Facts & Assumptions

Given: A Boolean function and explicit controlled access to Pf, with control-first register order. The operation model's declared finite nonoracle gate alphabet contains and permits H as a callable gate, counting each occurrence once; the controlled phase-query call is an oracle operation charged separately from those gates.

[F1]

Binary phase-query convention: Pf∣x⟩=(−1)f(x)∣x⟩.

[F2]

Standard bit-flip query convention: the standard query maps ∣x⟩∣y⟩ to ∣x⟩∣y⊕f(x)⟩.

[F3]

Controlled Unitary Access: controlled access is the explicit block operation diag⁡(I,U); it is not inferred from an ordinary call.

[F4]

Exact one-qubit gates and rotations: H=2−1/2(111−1).

[F5]

Finite circuit resource accounting: each gate occurrence is counted once in the declared gate model.

[F6]

Nonoracle quantum gate cost: gates outside a designated query call are charged separately from that query.

[F7]

Proof

1.1givenF1F3

Fix x. By [F1] and [F3], the controlled phase call acts on the output qubit by diag⁡(1,(−1)f(x)). If f(x)=0, this is I; if f(x)=1, it is diag⁡(1,−1).

2.1step 1.1F2F4F7algebra

The two possible output operators after the surrounding Hadamards are HIH=I and Hdiag⁡(1,−1)H=(0110)=X, using the matrix in [F4]. Thus for both y=0 and y=1 the output bit becomes y⊕f(x), while x is unchanged. By [F7], these computational states form a basis, so the equality extends by linearity to every input superposition, which is exactly [F2].

3.1givenF3F5F6∎

The circuit uses the explicitly granted controlled phase call once and has two H occurrences. By [F5]–[F6] these are two separately charged nonoracle gates; no uncontrolled call is promoted to controlled access.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Compute-copy-uncompute yields a clean coherent function query

Statement

Let f:{0,1}a→{0,1}b be total. Suppose a finite nonoracle gate circuit V preserves the address and, from zero value and workspace registers, computes

V∣x⟩∣0b⟩∣0w⟩=∣x⟩∣f(x)⟩∣0w⟩

for every x, with gate count G. Suppose its exact inverse circuit is available with the same gate count and acts only on the address, value, and workspace registers. Applying V, copying the b output bits to a fresh target by b CNOTs, and applying V−1 implements the standard query, restores the value and workspace registers to zero, and uses exactly 2G+b gate occurrences. Any query calls in a different implementation must be charged separately.

For a finite Boolean DAG with S noninput nodes, E input-port uses counted with multiplicity, and b ordered output ports, the current QC10 reversible-embedding construction itself already implements the clean XOR query. Its local cost theorem gives at most 6S+4E+b gates and S+E clean work bits. Thus its size is O(S+E+b), and is O(S+b) when E=O(S), as for the stated bounded-fan-in graphs. No depth bound is inferred from the classical Boolean DAG.

Facts & Assumptions

Given: A total function, a clean reversible evaluator with an exact same-count inverse, a fresh target register, and the QC10 Boolean-DAG supplier for the concrete cost statement. The operation model's declared finite nonoracle gate alphabet contains and permits CNOT for the generic copy step; V and its exact inverse are available as circuits over that model. For the concrete QC10 cost claim, it contains and permits X, CNOT and Toffoli, each counted as one nonoracle gate occurrence. Any black-box query calls are charged separately.

[F1]

Clean and dirty ancillas: a clean workspace initialized at zero must return exactly to zero for every allowed data input.

[F2]

Inverse Unitary Access: the inverse circuit applies the gate inverses in reverse chronological order; its availability and charge are explicit.

[F3]

CNOT and Control-Target Order: CNOT from a control bit r to a distinct target bit yj maps ∣r,yj⟩ to ∣r,yj⊕r⟩.

[F4]

Standard bit-flip query convention: the desired standard action is ∣x⟩∣y⟩↦∣x⟩∣y⊕f(x)⟩.

[F5]

Reversible embedding of a Boolean circuit: the QC10 procedure evaluates each Boolean-DAG node into work bits, copies the ordered output ports into the target, and reverses its evaluation list.

[F6]

Gate, workspace, and serial-depth costs of reversible embedding: for the specified DAG and gate model, that procedure implements the standard XOR action with clean work and at most 6S+4E+b gates and S+E work bits.

[F7]

Finite circuit resource accounting: gate size counts each occurrence; oracle calls, depth, width, and other costs are separate coordinates.

[F8]

Finite registers and their ordered computational bases, The computational basis is orthonormal and The product basis is orthonormal and tensor dimensions multiply: the ordered basis vectors of the joint address, value, workspace and target registers form a complete basis.

Proof

1.1givenF1

On basis input ∣x⟩∣0b⟩∣0w⟩∣y⟩, the first circuit V produces ∣x⟩∣f(x)⟩∣0w⟩∣y⟩ by the assumed evaluator identity. The output register is a separate factor from the fresh target.

2.1step 1.1F3algebra

Applying one CNOT from each output bit to its corresponding target bit leaves x, f(x), and the zero workspace unchanged, and changes y to y⊕f(x) by [F3].

3.1givenstep 2.1F1F2F4F7algebra

Apply V−1 to the address, value, and workspace factors. Since V−1V=I on those factors and does not act on the target, the result is ∣x⟩∣0b⟩∣0w⟩∣y⊕f(x)⟩. This is the standard query action [F4] with clean work [F1]. The gate count is G+b+G=2G+b by [F2] and [F7].

4.1step 3.1F1F4F8algebra

The basis vectors with value and work initially zero span the allowed input subspace by [F8]. The composed circuit is linear, so step 3.1 extends to every superposition in that subspace. Thus the standard query action and clean-work identity hold for all allowed vector inputs.

5.1F5F6algebra∎

The finite Boolean-DAG procedure [F5] already includes its own output copy and reverse pass. Therefore its complete elementary gate-occurrence bound for implementing the XOR action is the supplier bound [F6], not an additional application of the generic 2G+b construction. The stated asymptotic forms follow by dividing the exact bound by the indicated parameter relation E=O(S) when that relation holds.

DefinitionDefinition: AI-adaptedProof: AI-generatedprecheck passOpen item page →

Binary residue carrier and operations

Definition

Set

F2:=Z/2Z={[0]2,[1]2},

with addition and multiplication induced by the quotient operations

[r]2+[s]2=[r+s]2,[r]2[s]2=[rs]2

from Addition and multiplication on Z/n by [a]n+[b]n=[a+b]n and [a]n[b]n=[ab]n. This item fixes the two residue classes and their operations. It does not assert the field axioms; those must be established separately before an argument uses field properties.

Facts & Assumptions

Given: The quotient-set and arithmetic definitions for the modulus 2.

[F1]

The congruence class [a]n and the quotient set Z/n: two residue classes modulo 2 are equal exactly when their representatives are congruent modulo 2.

[F2]

Addition and multiplication on Z/n by [a]n+[b]n=[a+b]n and [a]n[b]n=[ab]n: addition and multiplication are the representative-independent operations [r]2+[s]2=[r+s]2 and [r]2[s]2=[rs]2.

Verification

1.1givenF1F3inductionalgebra

Every integer r has the form r=2q+ε for some q∈Z and ε∈{0,1}. For r≥0, induction starts with 0=2⋅0+0; from r=2q obtain r+1=2q+1, and from r=2q+1 obtain r+1=2(q+1)+0. For r<0, apply the nonnegative case to −r=2q+ε: if ε=0, then r=2(−q), and if ε=1, then r=2(−q−1)+1. By [F3], r≡ε(mod2), so [F1] gives [r]2=[ε]2. Hence every quotient class is one of [0]2,[1]2.

2.1givenF1F3step 1.1algebra

The classes [0]2 and [1]2 are distinct: equality would give 0≡1(mod2) by [F1], hence 2∣−1 by [F3], which is impossible because no integer q satisfies −1=2q. Together with step 1.1, this proves that the quotient has exactly the two listed classes.

3.1givenF1F2F3step 1.1step 2.1algebra∎

Applying [F2] to representatives 0 and 1 gives the addition table [0]+[0]=[0], [0]+[1]=[1], [1]+[0]=[1], [1]+[1]=[0], and the multiplication table [0][0]=[0], [0][1]=[1][0]=[0], [1][1]=[1]. Since steps 1.1 and 2.1 show that these are all quotient classes, the tables are exhaustive; both operations take values in this carrier and are exactly the quotient operations.

DefinitionDefinition: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Binary dot product as parity

Definition

For n≥0 and a,x∈{0,1}n, define the one-bit binary dot product

a⋅x:=⨁i=0n−1(ai∧xi),

where ∧ is Boolean conjunction and ⨁ is the left-to-right fold of XOR, with empty fold 0. It is the parity of the number of coordinates where both bits are 1. Under the quotient operations of Binary residue carrier and operations, this bit represents the sum ∑i=0n−1[ai]2[xi]2 in Z/2Z; the equality uses only the operation definitions, not the field axioms.

Facts & Assumptions

Given: A length-n pair of binary strings a,x, where n may be zero.

[F1]

Input encoding and size for algorithmic tasks: bit strings are the specified finite binary encodings, and their length fixes the width n.

[F2]

Binary residue carrier and operations: the two classes [0]2,[1]2 have quotient addition and multiplication; their addition table is XOR and their multiplication table is Boolean conjunction.

[F3]

The congruence class [a]n and the quotient set Z/n: the carrier Z/2Z consists of the residue classes modulo 2.

[F4]

Addition and multiplication on Z/n by [a]n+[b]n=[a+b]n and [a]n[b]n=[ab]n: the quotient operations are induced by integer addition and multiplication on representatives.

Verification

technique · induction on the number of processed coordinates
1.1givenF1F2F3F4algebra

For bits u,v∈{0,1}, the four cases give u∧v=uv. Thus [ai∧xi]2=[ai]2[xi]2 for each coordinate by [F2] and [F4].

2.1givenF2F4step 1.1baseihalgebra

Let p0=0 and pk+1=pk⊕(ak∧xk) for 0≤k<n. The base case has [p0]2=[0]2, the empty sum. If [pk]2 is the left-to-right sum of the first k coordinate products, the addition table in [F2] and the coordinate identity in step 1.1 give [pk+1]2=[pk]2+[ak]2[xk]2. Hence the identity holds at every k≤n by finite induction, including n=0.

3.1givenF2step 2.1discharge-induction∎

At k=n, pn is the defined XOR fold a⋅x, so step 2.1 proves that its residue class is the sum of the coordinate products in the quotient operations. No field axiom is used.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Reversible binary dot-product query

Definition

Input: An integer n≥0, ordered n-bit registers ∣a⟩,∣x⟩, a one-bit target ∣z⟩, and one distinct clean work bit r=0.

Output: The reversible map

∣a⟩∣x⟩∣z⟩∣0⟩r⟼∣a⟩∣x⟩∣z⊕(a⋅x)⟩∣0⟩r.

Gate model: Use an operation model whose declared finite nonoracle gate alphabet contains and permits Toffoli and CNOT as callable gates; each listed occurrence counts once under Finite circuit resource accounting. This procedure makes no black-box oracle call.

Instructions: For i=0,1,…,n−1, apply Toffoli with controls ai,xi and target r. Apply CNOT from r to z. Then apply those same Toffoli gates in reverse order, from i=n−1 down to 0. All gates act on the ordered computational-basis registers of Finite registers and their ordered computational bases; their basis actions are fixed in Toffoli and Fredkin gates and CNOT and Control-Target Order. For n=0, the forward and reverse loops are empty and the XOR fold is 0.

The procedure uses 2n Toffoli occurrences and one CNOT occurrence, with one clean work bit. It has no failure branch.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Reversible binary dot product: correctness and exact cost

Statement

For every n≥0, the algorithm Reversible binary dot-product query maps every computational-basis input to

∣a⟩∣x⟩∣z⟩∣0⟩r⟼∣a⟩∣x⟩∣z⊕(a⋅x)⟩∣0⟩r.

It therefore implements the same linear map on superpositions. Its exact cost is 2n Toffoli gates, one CNOT, and one clean work bit; it has no failure branch.

Facts & Assumptions

Given: n≥0, binary strings a,x, an arbitrary target bit z, a clean work bit r=0, and the stated gate sequence. The operation model's declared finite nonoracle gate alphabet contains and permits Toffoli and CNOT as callable gates, each occurrence is counted once under [F7], and this circuit makes no black-box oracle calls.

[F1]

Reversible binary dot-product query: the sequence accumulates coordinate products into r, copies r to z, and reverses the Toffoli sequence.

[F2]

Binary dot product as parity: a⋅x is the left-to-right XOR fold of the bits ai∧xi, with empty fold 0.

[F3]

Toffoli and Fredkin gates: Toffoli preserves its two controls and toggles its target by their product.

[F4]

CNOT and Control-Target Order: CNOT preserves its control and toggles its target by the control value.

[F5]

Clean and dirty ancillas: a clean ancilla starts and ends exactly at zero.

[F6]

The computational basis is orthonormal and The product basis is orthonormal and tensor dimensions multiply: the ordered computational-basis product vectors of the data, target and work registers form a basis of their joint register.

[F8]

Dirac Notation Conversion: ket notation denotes the corresponding vectors, with the repository's stated inner-product convention.

[F7]

Finite circuit resource accounting: each occurrence of a declared gate contributes one occurrence to the gate count.

Proof technique: induction on the forward and reverse loop indices.

Proof

1.1givenF1F2base

Before any Toffoli gate, r=0, which is the empty parity p0.

1.2givenF1F2F3ihalgebra

If after processing coordinates 0,…,i−1 the work bit is pi=⨁j<i(aj∧xj), the next Toffoli leaves the controls unchanged and changes r to pi⊕(ai∧xi)=pi+1 by [F3]. Thus the forward invariant holds for every i≤n.

2.1step 1.1step 1.2F2discharge-induction

At the end of the forward loop, r=pn=a⋅x by [F2]. This includes n=0, for which step 1.1 is already the final state.

3.1step 2.1F4algebra

The CNOT now changes z to z⊕r=z⊕(a⋅x) and leaves a,x,r unchanged by [F4].

4.1step 2.1step 3.1F1F2F3F5inductionalgebra

In the reverse loop, define qi to be the accumulator after the gates for coordinates n−1,n−2,…,i have been applied. Before any reverse gate, qn=pn. If qi+1=pi+1, the next Toffoli toggles qi+1 by ai∧xi, so qi=pi+1⊕(ai∧xi)=pi. Descending through i=n−1,…,0 therefore ends at q0=p0=0. The reverse gates do not change a,x,z, so the work bit is clean.

5.1step 3.1step 4.1F1F6F7F8algebradischarge-induction∎

The input basis map is the claimed map by steps 3.1 and 4.1. Every gate is linear, and the computational basis spans the finite joint register by [F6], so the same identity holds on every superposition. The forward and reverse loops each have n Toffoli occurrences and there is one CNOT, giving the exact stated nonoracle gate-occurrence count; the algorithm has no branch and makes no oracle call.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

A constant phase query is invisible alone and relative under control

Statement

Let f:{0,1}a→{0,1} be constant with value c∈{0,1}. Its phase query is Pf=(−1)cI. A standalone call therefore leaves every pure-state measurement law unchanged. If the model explicitly grants controlled phase-query access, the two constant cases are distinguishable: on address ∣0a⟩ and control ∣+⟩=(∣0⟩+∣1⟩)/2, control of Pf returns ∣+⟩∣0a⟩ when c=0 and ∣−⟩∣0a⟩ when c=1. Measuring the control in the {∣+⟩,∣−⟩} basis distinguishes them with certainty. No controlled access is inferred from a bare phase-query call.

Facts & Assumptions

Given: A constant Boolean function, the associated phase query, finite-dimensional quantum registers, and—only for the controlled conclusion—an explicit controlled phase-query call.

[F1]

Binary phase-query convention: Pf∣x⟩=(−1)f(x)∣x⟩.

[F2]

Standalone Global Phase Leaves Pure-State POVM Probabilities Unchanged: multiplication of a normalized pure-state vector by a scalar of modulus one leaves every finite POVM outcome probability unchanged.

[F3]

Controlled Unitary Access: an explicitly controlled call is the control-first block operator diag⁡(I,U).

[F4]

Exact one-qubit gates and rotations: fixes the exact one-qubit matrices and the ordered qubit basis.

[F5]

The computational basis is orthonormal: the ordered qubit computational basis is orthonormal.

[F6]

A Controlled Global Phase Becomes a Relative Control Phase: for a nonzero finite-dimensional space, unitary U, and real θ, separate controlled access to both U and eiθU gives different measurement laws when θ∉2πZ; the theorem supplies an explicit eigenvector input and control measurement.

[A1]

Controlled access to Pf is an explicit operation-model assumption. The controlled identity is the identity operator and requires no oracle call.

Proof

1.1givenF1algebra

Since f(x)=c for every address x, [F1] gives Pf∣x⟩=(−1)c∣x⟩ on a basis; hence Pf=(−1)cI.

1.2givenF3F4F6A1algebra

Under [A1], the controlled block is I if c=0. If c=1, it is diag⁡(I,−I) by [F3]. Applying these blocks to ∣+⟩∣0a⟩ gives respectively ∣+⟩∣0a⟩ and (∣0⟩−∣1⟩)∣0a⟩/2=∣−⟩∣0a⟩. This is the θ=π, U=I relative-phase instance of [F6]; the controlled identity is the identity operation and the other block is the explicitly granted controlled phase call.

2.1step 1.1F2algebra

The scalar has modulus one. Applying [F2] to any normalized address state shows that the standalone call preserves every finite POVM outcome law. This verifies the statement even when c=1 and the vector acquires a minus sign.

3.1step 1.2F4F5A1algebra∎

The explicit vectors ∣+⟩=(∣0⟩+∣1⟩)/2 and ∣−⟩=(∣0⟩−∣1⟩)/2 have unit norm and inner product zero by [F5]. The two control outputs therefore give opposite deterministic outcomes when measured in that basis, proving distinguishability. The proof uses the explicitly controlled operation [A1] and makes no claim from uncontrolled access alone.

5 · Examples, counterexamples and false statements

None yet.

Sources