§2.3: PREP/UNPREP block encoding (28)–(32)
OpenQAlgorithms.Papers.Independent.Extend50.P44.prepConstructionFix a padded row/column scheme whose full arithmetic maps preserve the data label. Assume the physical sparsity register factors compatibly into a data register and a residual register on each side, with supports of cardinalities and . The active real values are nonzero and all other table slots are fixed zero. For , normalized PREP and UNPREP completions with amplitudes (29)-(30) exist. Circuit (31) is unitary and block encodes with
It loads items and uses one deletion flag plus the physical preparation/sparsity bit width. This is the complete normalization from (32), including its prefactor.
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 pp.10-11, (28)-(32): exact PREP/UNPREP construction for compatible
register factors and commuting arithmetic oracles; two independent preparations
load 2D items. No repeated amplification is included. -/
theorem prepConstruction (B : Scheme n s d m) (L : PrepLayout B)
(a : Fin (2 ^ d) → ℝ) (p : ℝ) (hp : 0 ≤ p ∧ p ≤ 1)
(hnz : ∀ j ∈ L.active, a j ≠ 0)
(hzero : ∀ j, j ∉ L.active → a j = 0) :
∃ P : PreparationPair L a p, QAlgorithms.IsBlockEncoding (false, 0) (L.circuit P) (L.alpha a p) 0 (B.matrix a) ∧
loadingCost (doubleLoadingSchedule L.active.card) = 2 * L.active.card ∧
Fintype.card (Bool × Fin (2 ^ s)) = 2 ^ (s + 1) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P44
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be natural numbers and . Let consist of , bijections , Boolean validity data , nonempty sets , and unitary matrices with zeroth columns uniform on the respective slot sets and zero elsewhere; valid labels map into those sets, and two valid labels with equal and equal are equal. Let consist of a nonempty active set , natural numbers , zero-preserving bijections , , nonempty residual sets , and unitary matrices whose zeroth columns are uniform on those sets and zero elsewhere, satisfying , , and for every label. For every real table and , assume for every and for every . Put , for , and
Then there exist unitary matrices on whose zeroth column and zeroth row are, on ,
and zero outside , with the following properties. Define , let act as on the slot index and as the identity on the Boolean flag and system index, let be the flag-preserving permutation matrices for , and let preserve the label and flip the flag exactly when that label is invalid. Reassociate the flag, slot, and system indices of
so that the ancillary index is . This matrix is unitary and
Moreover, the sum of the two-entry loading list equals , and the ancillary index set has cardinality . The endpoints and zero values of the natural-number parameters are included; the nonempty active set and its nonzero entries ensure that both displayed normalization denominators are positive.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.