§3.2: Toeplitz PREP/UNPREP circuit (56)
OpenQAlgorithms.Papers.Independent.Extend50.P44.toeplitzPrepLet , , , and let the nonzero real data values define the banded Toeplitz matrix for . Its label oracles preserve the data register and are fixed before the values. For every , circuit (56) is an exact block encoding with
The circuit uses supplied-item loads, flags, and the overflow deletion inherited from the Toeplitz base scheme. Here , so the prefactor in (32) is one.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P44
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P44
open scoped BigOperators ComplexConjugate Matrix
open QAlgorithms.Papers.Independent.Frontier18.P11 (complexMatrix)
open QAlgorithms.Papers.Independent.Information100.P34 (permutationMatrix)
open QAlgorithms.Papers.Independent.Next46.P21 (tCount)
variable {n s d m : ℕ}
/-- PDF p.15, (56): commuting Toeplitz labels allow PREP/UNPREP.
Sc=Sr=D removes the prefactor in (32); out-of-range shifts are deleted. -/
theorem toeplitzPrep (n d : ℕ) (hd : d ≤ n) (k : Fin (2 ^ d)) :
∃ B : Scheme n d d n, ∃ L : PrepLayout B,
ToeplitzLabels B k ∧ L.active = Finset.univ ∧
loadingCost (doubleLoadingSchedule (2 ^ d)) = 2 * 2 ^ d ∧
Fintype.card (Bool × Fin (2 ^ d)) = 2 ^ (d + 1) ∧
∀ a : Fin (2 ^ d) → ℝ, (∀ j, a j ≠ 0) → ∀ p : ℝ, 0 ≤ p → p ≤ 1 →
∃ P : PreparationPair L a p, B.matrix a = bandedToeplitz n d k a ∧
QAlgorithms.IsBlockEncoding (false, 0) (L.circuit P)
(Real.sqrt ((∑ j, supportedPower (a j) (2 * p)) *
∑ j, supportedPower (a j) (2 - 2 * p))) 0 (bandedToeplitz n d k a) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P44
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers with , and every , put , , and . There exist a scheme and a layout with the following properties. The scheme has parameter balance , bijections , both slot sets equal to , and unitary slot matrices with constant zeroth column ; valid labels are uniquely determined by their two output coordinates together. For every , , , , and validity is equivalent to , using integer subtraction and remainder. The layout has active set , natural numbers , slot factorizations , sending zero to , nonempty residual sets, and unitary residual matrices with normalized-indicator zeroth columns. Slot membership is equivalent to active data-factor and residual-set membership, and the data factors of the column and row slots of every label equal . The loading schedule has sum , and the index set consisting of one Boolean flag and a slot in has cardinality . For every real table whose every entry is nonzero, and every real with , there exist unitary matrices such that, defining and ,
The scheme matrix, defined by summing over valid labels with prescribed row and column output coordinates, equals when , and zero otherwise. Reindex and through to obtain slot matrices . The matrix obtained by applying , a flip of its Boolean flag exactly at invalid labels, , is unitary and satisfies
The parameters may be zero, and are included; the nonzero-entry hypothesis makes all displayed absolute powers ordinary powers of positive numbers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.