§3.2: banded Toeplitz block encoding (50)–(55)
OpenQAlgorithms.Papers.Independent.Extend50.P44.toeplitzBaseFor , and , fix the Toeplitz labels (51) and the overflow test (52), independently of the real values . Let when for , and zero otherwise. If , the base circuit has
It loads items and uses flags. One absolute constant bounds the arithmetic Toffoli count by , uniformly over and the values, with clean work returned to zero. The signed integer offset is range-tested rather than wrapped into the target matrix.
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.14-15, (50)-(55): banded Toeplitz encoding. The absolute constant
precedes the dimensions, offset and data. The arithmetic is O(log N), including
a harmless small-size constant; the overflow qubit is a flag. -/
theorem toeplitzBase :
∃ C : ℝ, 0 < C ∧ ∀ (n d : ℕ), d ≤ n → ∀ k : Fin (2 ^ d),
∃ B : Scheme n d d n, ToeplitzLabels B k ∧
(∃ work, B.ArithmeticCost (C * (n + 1)) work) ∧
loadingCost (baseLoadingSchedule (2 ^ d)) = 2 ^ d ∧
Fintype.card ((Bool × Bool) × Fin (2 ^ d)) = 2 ^ (d + 2) ∧
∀ a : Fin (2 ^ d) → ℝ, 0 < tableMax a →
B.matrix a = bandedToeplitz n d k a ∧
QAlgorithms.IsBlockEncoding ((false, false), 0) (B.baseCircuit a)
((2 ^ d : ℕ) * tableMax a) 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
There is a real constant such that, for all natural numbers with , and every , there exists the following scheme , where , , and . Its parameter balance is ; its column and row maps are bijections ; both slot sets are ; and its slot matrices are unitary with zeroth column constantly . Valid labels map into the specified slot sets and are uniquely determined by their column and row output coordinates together. For every label , the column map is , the row slot is , the row output is the integer remainder
and validity is equivalent to , with these subtractions interpreted in the integers. For some natural number of work bits, three reversible Boolean circuits implement the column map, row map, and invalid-label-controlled flip of the second of two flags, respectively, preserving the flags in the first two maps and restoring all work bits to zero. The encodings concatenate the two flags and the most-significant-bit-first -bit and -bit coordinates. Each elementary gate flips a target conditioned on all of at most two distinct-from-target controls being true; the total number of two-control gates in the three circuits is at most . The loading schedule has sum , and the ancillary index set consisting of two Boolean flags and a slot in has cardinality . For every real table with , the scheme matrix, formed by summing over valid labels with the given row and column output coordinates, equals the matrix
where the index test uses integers. Define . Applying to the slot, then , then to the first flag while flipping the second flag exactly at invalid labels, then , and finally , gives a unitary matrix satisfying
The constant is uniform in all parameters. The quantifiers include and ; in particular, when , necessarily and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.