Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generatedjudge 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.

QC24 State Preparation

Definition

Input and output. Input an integer n≥0 and an explicit exact table (ax)x∈{0,1}n in the ordered basis convention of Big-endian encoding of ordered bit strings. If the table length is not D=2n or ∑x∣ax∣2≠1, return INVALID. Otherwise return a finite continuous-gate circuit which prepares the ray [a] from ∣0n⟩, together with its classical angle table. When the table is supplied as a dense fixed-width bit encoding, read all b bits of each real and imaginary coordinate before computation. Arithmetic is ideal and exact: it supplies complex arithmetic, absolute value, exact zero tests and square roots; for x,y≥0 not both zero, atan2⁡(y,x) returns the unique ϕ∈[0,π/2] with cos⁡ϕ=x/x2+y2 and sin⁡ϕ=y/x2+y2. For z≠0, arg⁡z∈(−π,π] is the unique principal angle in the polar form of Every nonzero complex number has a unique polar form r(cos⁡θ+isin⁡θ) with r>0 and −π<θ≤π, so z=∣z∣eiarg⁡z by exp⁡(x+iy)=ex(cos⁡y+isin⁡y), ∣exp⁡(x+iy)∣=ex, and eiπ+1=0. No Turing bit-time bound is asserted.

Exact gate-family operation model. Interpret this procedure's output in the ideal continuous-angle model with exact one-qubit gates Ry(θ) and Pϕ:=diag⁡(1,eiϕ) for arbitrary real θ,ϕ, the two-qubit gate C(Ry(θ))=diag⁡(I2,Ry(θ)) with the control first, and the fixed gates X (The Pauli matrices) and Toffoli (Toffoli and Fredkin gates). Each occurrence of any of these gates costs one gate occurrence; the operation model explicitly grants controlled access to every Ry(θ) (Controlled Unitary Access). The phase gate is unitary since ∣eiϕ∣=1 (exp⁡(x+iy)=ex(cos⁡y+isin⁡y), ∣exp⁡(x+iy)∣=ex, and eiπ+1=0). This is an ideal parameterized gate-family model, distinct from a finite fixed-matrix alphabet. It does not assert that arbitrary-angle gates are exactly available from a finite alphabet or give their finite-alphabet cost.

Prefix norms and rotations. For every binary prefix p of length at most n, set

rp=∑x extends p∣ax∣2.

For θ∈R define

Ry(θ)=(cos⁡(θ/2)−sin⁡(θ/2)sin⁡(θ/2)cos⁡(θ/2))

in basis (∣0⟩,∣1⟩). This is the y-axis rotation in the QC07 exponent convention; Pauli formula for an axis rotation gives this matrix and its unitarity. Define C(U)=diag⁡(I2,U) with the control as the first wire, following Controlled Unitary Access. For each l=0,…,n−1 and each length-l prefix p in lexicographic order, skip the operation if rp=0; otherwise set θp=2atan2⁡(rp1,rp0) and apply Ry(θp) to bit l, controlled on the first l bits equaling p. Length zero means no control. Thus no division is performed on a zero-norm branch.

Exact bounded-arity control construction. For a prefix rotation with m≥2 control bits, conjugate each zero-control bit by X so the requested condition becomes all ones. Allocate m−1 clean work bits w1,…,wm−1. Compute w1=c1c2 with one Toffoli; for j=3,…,m, compute wj−1=wj−2cj with one Toffoli. Apply C(Ry(θp)) to the flag and target bits, with the flag as the control, then apply the Toffolis in reverse order and undo the X conjugations. For m=1, apply C(Ry(θp)) directly when the requested pattern is 1; for pattern 0, conjugate that controlled gate by X on its control wire. For m=0, apply Ry(θp) directly to the target bit. For a leaf phase with m≥2, use the same flag construction and apply Pϕ=diag⁡(1,eiϕ) to the final work bit instead of a controlled rotation. A one-bit leaf phase uses Pϕ directly for pattern 1 and XPϕX for pattern 0. The work bits return to zero after each operation and are reused; no multi-control gate is assumed as a primitive.

Leaf phases. For a basis string x, define Px,ϕ=I+(eiϕ−1)∣x⟩⟨x∣. Let x∗ be the lexicographically first index with ax∗≠0. Put ϕ∗=arg⁡(ax∗). For each other x with ax≠0, put ϕx=arg⁡(ax)−ϕ∗ and, unless ϕx≡0(mod2π), apply Px,ϕx using the control construction above. The reference leaf needs no phase, and zero entries and zero relative phases require no gate. Every nonzero output amplitude is then e−iϕ∗ax, including the reference leaf, so the output is the target ray. When n=0, the valid table has one unit-modulus entry and the empty circuit already prepares its unique ray.

Depends on

Used by

Dependency tree · two levels

44 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