Exact scalable QFT assembly
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.scalable_qftLet be integers. Let be the chronological circuit obtained by starting with and, for each , applying adjacent two-block phase-swaps of types at offsets , then at offset zero. A type- phase-swap maps to , with both integers read most significant bit first. The Fourier transform has positive exponential sign and normalization . Then
There are no other phase-swap types. This is an exact assembly identity, including the complete final permutation and phase; it makes no physical timing claim.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF pp.1,9, abstract headline pinned to Fig.7: the exact scalable QFT
assembly and its actual block counts. No timing or global optimization claim. -/
theorem scalable_qft (m k : ℕ) (hm : 2 ≤ m) (hk : 2 ≤ k) :
blockCircuitMatrix (k * m) (qftAssembly m k) = qftQubits (k * m) ∧
fourierCount (qftAssembly m k) = k ∧
phaseTotal (qftAssembly m k) = Nat.choose k 2 ∧
(∀ j, 1 ≤ j → j < k → phaseCount j (qftAssembly m k) = k - j) ∧
(∀ j, j = 0 ∨ k ≤ j → phaseCount j (qftAssembly m k) = 0) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P39
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers satisfying and , form a list by concatenating, for in increasing order, phase-swap records for in decreasing order, followed by a Fourier record ; a phase-swap record lists its offset, half-width, and phase index, and a Fourier record lists its offset and width. For a bit string of length , let , with bits interpreted as or . On a local width- block, the Fourier matrix has entry . A phase-swap record with half-width and phase index has, for input halves , its only nonzero entry at output , equal to . Each local matrix acts at its stated offset and leaves the other bits unchanged. The theorem asserts the conjunction of the following facts: the reverse-ordered product of the matrices of , acting on bits, has entries
the list contains exactly Fourier records and exactly phase-swap records; for every natural number with , exactly phase-swap records have phase index ; and for every natural number satisfying or , no phase-swap record has phase index . Here is natural-number subtraction, and its stated range ensures no truncation.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.