Qudit stabilizer testing
OpenQAlgorithms.Papers.Independent.Extend50.P30.quditStabilizerTestingLet and with . For any , is a valid effect on copies. It accepts every pure stabilizer certainly. On any normalized pure state whose stabilizer fidelities are all at most , its acceptance probability obeys the following bound.
This gives the source's qudit stabilizer testing 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.25, Theorem 3.11: composite d is allowed and all factors of C_{d,s} are retained. -/
theorem quditStabilizerTesting (d n s : ℕ) [NeZero d] (hd : 2 ≤ d)
(hs : 2 ≤ s) (hcop : Nat.Coprime d s) :
QAlgorithms.IsEffect (quditTest d n s) ∧
∀ v : EuclideanSpace ℂ (ResidueRegister d n), ‖v‖ = 1 →
(IsStabilizer v → QAlgorithms.effectProb (quditTest d n s)
(tensorPower (2 * s) (QAlgorithms.pureDensity v)) = 1) ∧
(∀ epsilon : ℝ, FarFromStabilizers v epsilon →
QAlgorithms.effectProb (quditTest d n s) (tensorPower (2 * s) (QAlgorithms.pureDensity v)) ≤
1 - soundnessConstant d s * epsilon ^ 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 natural numbers , assume , , , and . Write , , and , and define to be when , and otherwise, using standard integer representatives of residues. Let
To specify the stabilizers in the assertion, put for even and for odd , and form the finite set . Consider every subset that contains , is closed under multiplication and adjoints, and satisfies for every and . For each such , set ; let consist of those matrices that equal for some unit vector . These formulas use total scalar inverses, with . Then and are positive semidefinite. Moreover, for every unit vector , writing , if , then
For every real , if for every , then
Here . The assertion includes , and the soundness implication quantifies over all real , including zero and negative values.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.