§2.4: Hermitian PREP/UNPREP construction (38)
OpenQAlgorithms.Papers.Independent.Extend50.P44.hermitianPrepConstructionUse the symmetric commuting-data layout of (31), with an involutive transpose oracle preserving the data and range predicates. Let , with nonzero active real data and zero padding. Write for the full initial preparation on the physical sparsity register: PREP on the column data factor together with its residual preparation. Write for the full final unpreparation: UNPREP on the row data factor together with the adjoint residual preparation. Require the full operator identity (38), including the actual residual-register embeddings:
where is the sign oracle on the column data factor, tensored with residual identity, and means adjoint. The sign oracle uses +1 on zero slots. Then circuit (31) is unitary and Hermitian, and its selected block is with the normalization (32). It has two preparation loads and flags. Matching only the data-register matrices, their prepared states, or the residual diagonal blocks does not imply this full-unitary conclusion.
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.12, (38): matching full physical preparation operators at p=1/2
give Hermiticity of the entire circuit, retaining PREP resources. The identity
includes the residual-register preparations and their actual tensor embeddings;
matching only the data matrices or the residual diagonal blocks is insufficient. -/
theorem hermitianPrepConstruction (B : Scheme n s d m) (T : TransposeOracle B)
(L : PrepLayout B) (a : Fin (2 ^ d) → ℝ)
(hnz : ∀ j ∈ L.active, a j ≠ 0)
(hzero : ∀ j, j ∉ L.active → a j = 0)
(P : PreparationPair L a (1 / 2))
(hmatching : tensorPreparation L.factorColumn P.prep L.Hcolumn =
tensorPreparation L.factorColumn (signOracle a)
(1 : Matrix (Fin (2 ^ L.kc)) (Fin (2 ^ L.kc)) ℂ) *
(tensorPreparation L.factorRow P.unprep L.Hrowᴴ)ᴴ) :
QAlgorithms.IsBlockEncoding (false, 0) (L.circuit P) (L.alpha a (1 / 2)) 0 (B.matrix a) ∧
(L.circuit P)ᴴ = L.circuit P ∧
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
For all natural numbers , including zero, put , , , and . Let consist of the equality , bijections , a Boolean function , nonempty subsets , and unitary complex matrices indexed by . Assume that whenever , the first coordinates of and belong to and , respectively; that two valid labels with the same second column coordinate and the same second row coordinate are equal; and that
Let supply a permutation of satisfying , , , , and . Let supply a nonempty subset , natural numbers , bijections and , both taking to , and nonempty residual subsets of their respective second-coordinate sets. Require
and, for every label , require . Also let supply unitary matrices on the respective residual index sets whose zeroth columns equal on and zero elsewhere, and on and zero elsewhere. Let satisfy for every and for every . Write . Let consist of unitary matrices indexed by satisfying
Here these formulas expand the stipulated preparation pair at parameter ; its supported power is zero at a zero argument and otherwise is the indicated real power of its absolute value. Define
Assume additionally the exact matrix identity
For a matrix on , define its extension by when and , and zero otherwise. For , let have entry from to , and zero elsewhere. Let have entry from to if is true and to otherwise, and zero elsewhere. Form, with indices regrouped as ,
Then is unitary and its block with both ancillary indices fixed to satisfies the exact error bound
Moreover , the loading cost—defined as the sum of a schedule—of the two-entry schedule is , and the ancillary index set has cardinality .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.