Exact QFT assembly with half-block phase-swaps
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.scalable_qft_variantIILet be even and let . In the Fig. 7 circuit replace each phase-swap of type and half-width , at offset , by the chronological four-module list
where each new module has half-width and total width . The resulting explicit Fig. 16 circuit satisfies
Only phase indices occur. This preserves every phase and permutation. Three bottom label occurrences printed (two phase types) in Fig. 16 are interpreted as , following the caption and half-block construction; this minimal arity correction was independently checked in moderation round 1.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF p.19, Fig.16: exact QFT variant II. The three printed bottom arity
labels 2m (two phase types) are read as m, as required by the caption and half-block widths;
this correction is recorded for independent moderation. -/
theorem scalable_qft_variantII (m k : ℕ) (hm : 2 ≤ m) (heven : Even m) (hk : 2 ≤ k) :
blockCircuitMatrix (k * m) (qftAssemblyII m k) = qftQubits (k * m) ∧
fourierCount (qftAssemblyII m k) = k ∧
phaseTotal (qftAssemblyII m k) = 4 * Nat.choose k 2 ∧
(∀ j, j = 0 ∨ 2 * k ≤ j → phaseCount j (qftAssemblyII 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 , even, and , put and form a list as follows: for in increasing order, and within each for in decreasing order, append the four phase-swap records
then append a Fourier record with offset and width . A phase-swap triple specifies offset, half-width, and phase index. For a length- bit string , let , interpreting bits as or . The local Fourier matrix has entries . A local phase-swap matrix of half-width and phase index has its only nonzero entry for input at output , equal to . Each matrix is placed at the record’s offset, leaving the other bits unchanged. The theorem asserts that the reverse-ordered product of these matrices on bits has entries
that contains exactly Fourier records and exactly phase-swap records, and that, for every natural number satisfying or , the number of phase-swap records in with phase index is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.