QFT occurrence counts and modeled quality
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.qft_quality_countsAssign each occurrence fidelity and each type- phase-swap occurrence fidelity . With independent occurrence errors, assigned schedule duration , and , the modeled quality of the Fig. 7 circuit for is
For blocks of size five, , after truncation identifies every type with the same pure-swap module, write for the five-qubit Fourier fidelity and for the three remaining module fidelities. Then
The fidelity product is computed from the actual circuit list. The second expression concerns the approximating circuit. Its elapsed duration is assigned independently of the deferred timing formula (25).
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF p.10, Eqs. (26)-(27): occurrence-count quality formulas. In the
second formula, all phase-swap types j>=3 have been replaced by the same
truncated pure-swap module. T is an assigned elapsed time, without Eq. (25). -/
theorem qft_quality_counts (Fq : ℝ) (Fc : ℕ → ℝ) (T TR : ℝ)
(hT : 0 ≤ T) (hTR : 0 < TR)
(hFq : Fq ∈ Set.Icc (-1) 1) (hFc : ∀ j, Fc j ∈ Set.Icc (-1) 1) :
(∀ m k : ℕ, 2 ≤ m → 2 ≤ k →
blockQuality Fq Fc T TR (qftAssembly m k) =
Fq ^ k * (∏ j ∈ Finset.Icc 1 (k - 1), Fc j ^ (k - j)) *
Real.exp (-T / TR)) ∧
(∀ (k : ℕ) (F5 F1 F2 F3 : ℝ), 2 ≤ k →
F5 ∈ Set.Icc (-1) 1 → F1 ∈ Set.Icc (-1) 1 →
F2 ∈ Set.Icc (-1) 1 → F3 ∈ Set.Icc (-1) 1 →
blockQuality F5 (fun j => if j = 1 then F1 else if j = 2 then F2 else F3)
T TR (truncatedQftAssembly 5 (2 * k) 10) =
F5 ^ (2 * k) * F1 ^ (2 * k - 1) * F2 ^ (2 * k - 2) *
F3 ^ (Nat.choose (2 * k) 2 - (4 * k - 3)) * Real.exp (-T / TR)) := 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 real numbers and functions , assume , , , and for every natural number , including . Define the quality of a list to be the product of its step weights multiplied by , assigning weight to a Fourier step, to either kind of phase-swap step of index , and to a swap. The theorem asserts both of the following equalities:
where is formed by concatenating, for in increasing order, the phase-swap steps with offset , half-width , and phase index , for in decreasing order, followed by a Fourier step of offset and width ; for , that portion contains only the Fourier step. Also, for every with and every four real numbers ,
Here uses the same weighting rule with Fourier weight and phase weights , and is formed from by replacing each phase-swap step of offset and index by a swap of offset and half-width if , and otherwise by a truncated phase-swap step with the same offset, half-width, and index and cutoff . The subtraction in this rule is natural-number subtraction, truncated at zero; the generated indices are all positive. Every exponent displayed above is a natural number, and the stated bounds on make all the displayed subtractions nonnegative. The second equality uses independently quantified weights , while all the initial hypotheses remain assumptions of the conjunction.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.