§III B, Eq.(27), Appendix B1: spectral error bound
OpenQAlgorithms.Papers.Independent.Intakethird100.P67.ideal_spectral_errorLet normalized pure samples, , generate all operators on their span, of dimension , and fix an anchor. Let be the norm of the vectorized compressed reflection channel. Then . For every supported input density operator, every ambient target unitary, and every integer , the ideal averaged emulator obeys
If , , and satisfies
then its trace distance from the target is at most . At the zero-round anchor preparation is already exact for supported inputs. The formula avoids and remains meaningful when . This separates ideal convergence from sample-based reflection errors.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
noncomputable section
open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Intakethird100.P67
variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
[Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
[Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]
/-- PDF pp.7,17–18, Eq.(27)/B18: the spectral gap is a conclusion, not a premise.
B12 has sqrt(d-1); B14 is its weaker d>=2 corollary. T>=1 handles lambda=0, and
rank one is separated from the logarithm. -/
theorem ideal_spectral_error (phi : K → EuclideanSpace ℂ I) (a : K)
(hK : 2 ≤ Fintype.card K) (hphi : ∀ k, IsState (phi k))
(hgen : Generates (pureSamples phi)) :
0 ≤ lambdaPerp phi a ∧ lambdaPerp phi a < 1 ∧
(∀ (U : Matrix.unitaryGroup I ℂ) (rho : Matrix I I ℂ), IsDensityMatrix rho →
InSampleSupport (pureSamples phi) rho → ∀ T : ℕ, 1 ≤ T →
1 - Real.sqrt (sampleDimension (pureSamples phi) - 1 : ℝ) * lambdaPerp phi a ^ T ≤
rootFidelity (emulate phi a (U : Matrix I I ℂ) T rho) (densityConjugation (U : Matrix I I ℂ) rho)) ∧
(∀ (U : Matrix.unitaryGroup I ℂ) (rho : Matrix I I ℂ), IsDensityMatrix rho →
InSampleSupport (pureSamples phi) rho → ∀ eps : ℝ, 0 < eps → eps < 1 →
2 ≤ sampleDimension (pureSamples phi) → ∀ T : ℕ, 1 ≤ T →
Real.log (2 * eps⁻¹ ^ 2 * (sampleDimension (pureSamples phi) - 1 : ℝ)) /
(1 - lambdaPerp phi a) ≤ T →
traceDistance (emulate phi a (U : Matrix I I ℂ) T rho) (densityConjugation (U : Matrix I I ℂ) rho) ≤ eps) ∧
(sampleDimension (pureSamples phi) = 1 →
∀ (U : Matrix.unitaryGroup I ℂ) (rho : Matrix I I ℂ), IsDensityMatrix rho →
InSampleSupport (pureSamples phi) rho → emulate phi a (U : Matrix I I ℂ) 0 rho = densityConjugation (U : Matrix I I ℂ) rho) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P67
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let and be finite index types with decidable equality, let , let have norm for every , and fix . Write , and let be the matrix obtained by applying the function for and otherwise to by functional calculus. Assume that the complex span of all nonempty products is exactly . Put , , , , and if , otherwise , and define
where the bar denotes entrywise conjugation and the norm is the Euclidean operator norm. To specify the matrix map occurring in the conclusions, let , let , and put . For a history , let , where the superscript indicates the ancilla qubit acted on, and let be the same product with every replaced by . Set , where , , and ; then the emulator is the explicitly defined map
Here partial traces sum the diagonal indices of the indicated register, and empty history products are identities. The assertion is that ; that for every unitary , every positive semidefinite of trace satisfying , and every integer ,
that for every such , every , and every integer , if and
then ; and that if , then for every such . The distances here mean
with square roots supplied by functional calculus; the subtraction inside the real expressions is real subtraction.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.