Appendix A.1: lookup–rotate–uncompute additive loading cost (90)–(91)
OpenQAlgorithms.Papers.Independent.Extend50.P44.additiveDataLoadingLet real table items have positive maximum magnitude, and let . Pad the table with known zeros to its minimal binary register. Given the reusable normalized phase-gradient resource used in Appendix A.1, a Clifford+T circuit can approximate the ideal multiplexed RX loader, returning the resource and clean work coherently, with
Here appends the resource and clean work, and is absolute, preceding , data values and accuracy. The resource uses qubits. Its separate reusable-state preparation is not charged on each invocation. The result is the paper's assembled lookup/rotate/uncompute cost, with the small-D cases handled directly rather than by natural subtraction of two.
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 : ℕ}
local instance : DecidableEq QAlgorithms.Gate := Classical.decEq _
/-- PDF pp.25-26, (90)-(91): given a reusable phase-gradient resource, lookup,
rotation, and uncomputation have additive T cost O(D+log(1/epsilon)).
The circuit's action includes coherent return of the supplied resource and clean
work. All constants are absolute, before the table size, values and accuracy.
The source's D-2 primitive count is not used for the small-D cases. -/
theorem additiveDataLoading :
∃ K : ℝ, 0 < K ∧ ∀ D : ℕ, 0 < D → ∀ a : Fin D → ℝ, 0 < tableMax a →
∀ epsilon : ℝ, 0 < epsilon → epsilon < 1 / 2 →
∃ b work : ℕ,
∃ c : QAlgorithms.Circuit cliffordTSet (1 + Nat.clog 2 D + b + work),
1 ≤ b ∧ (b : ℝ) ≤ K * (1 + Real.log (1 / epsilon)) ∧
QAlgorithms.specNorm
(QAlgorithms.Circuit.unitary c * loaderEmbedding (Nat.clog 2 D) b work -
loaderEmbedding (Nat.clog 2 D) b work * idealLoader (paddedTable a)) ≤ epsilon ∧
(tCount (loaderTWord c) : ℝ) ≤ K * ((D : ℝ) + Real.log (1 / epsilon)) := 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 exists a real constant such that, for every positive natural number , every real table with , and every real , there exist natural numbers and a circuit on wires, where , such that
The logarithms here are natural logarithms. The circuit is a finite list of applications of , , , , or controlled-NOT, with distinct ordered wires for each application; each matrix acts on its selected wires and as the identity on the others. Its matrix is the product in execution order, with later applications multiplying on the left, and an empty product is the identity. The number counts precisely applications whose gate equals or . To define the other matrices in the bound, pad with zeros to a table of length . The matrix , indexed by , preserves and has flag block with diagonal and both off-diagonal entries . The rectangular matrix sends a column to amplitudes on strings split as : its entry is if , is the -bit binary encoding of , and all work bits are false, and is zero otherwise; reads bits in most significant first order. The norm in the bound is the Euclidean operator norm of the resulting rectangular matrix. The case , with an empty address register, is included; the statement gives no upper bound on or the total circuit length.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.