Stabilizer testing from three copies
OpenQAlgorithms.Papers.Independent.Extend50.P30.threeCopyStabilizerTestingFor any with or and any , is a valid effect on three copies. It accepts every pure stabilizer with certainty. For every normalized input whose stabilizer fidelities are all at most , it obeys the following soundness bound, without a primality hypothesis.
This gives the source's stabilizer testing from three copies in the fixed computational-basis and phase conventions.
Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Extend50.P30
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)
attribute [local instance] Classical.propDecidable
/-- PDF p.62, Theorem 8.6: exact denominator 16*d^2, including composite dimensions in this regime. -/
theorem threeCopyStabilizerTesting (d n : ℕ) [NeZero d] (hd : 2 ≤ d)
(hmod : d % 6 = 1 ∨ d % 6 = 5) :
QAlgorithms.IsEffect (threeCopyTest d n) ∧
∀ v : EuclideanSpace ℂ (ResidueRegister d n), ‖v‖ = 1 →
(IsStabilizer v → QAlgorithms.effectProb (threeCopyTest d n)
(tensorPower 3 (QAlgorithms.pureDensity v)) = 1) ∧
(∀ epsilon : ℝ, FarFromStabilizers v epsilon →
QAlgorithms.effectProb (threeCopyTest d n) (tensorPower 3 (QAlgorithms.pureDensity v)) ≤
1 - epsilon ^ 2 / (16 * (d : ℝ) ^ 2)) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers , with , , and , put , , , and . Define
using standard nonnegative residue representatives and tensor powers with entries given by products over the three copies. Let be constructed as follows: take ; for every containing the identity, closed under multiplication and adjoints, and satisfying , form and ; retain precisely those equal to for some unit vector . Then and are positive semidefinite, and every unit vector satisfies both implications: if , then ; and, for every real , if for every , then
The parameter has no sign or interval restriction; its hypothesis is required even for values for which it cannot be satisfied. Inverses use , need not be prime, and is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.