Six-copy qubit stabilizer testing
OpenQAlgorithms.Papers.Independent.Extend50.P30.qubitStabilizerTestingFor every , the fixed effect of Algorithm 1 is a valid six-copy accepting effect. Its verification unitary factors into identical fixed-size six-qubit blocks, giving the stated efficient circuit realization. For every normalized pure -qubit state , it accepts stabilizers with certainty. If every pure stabilizer satisfies , then its acceptance probability obeys the bound below.
This gives the source's six-copy qubit 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.20, Theorem 3.3: Algorithm 1 is fixed, perfectly complete, and has the printed 1/4 constant. -/
theorem qubitStabilizerTesting (n : ℕ) :
qubitVerificationUnitary 1 ∈ Matrix.unitaryGroup (QuditCopies 2 1 6) ℂ ∧
qubitTest n = (2⁻¹ : ℂ) • (1 +
(List.ofFn (fun j : Fin n => embeddedLocal j (qubitVerificationUnitary 1))).prod) ∧
QAlgorithms.IsEffect (qubitTest n) ∧
∀ v : EuclideanSpace ℂ (ResidueRegister 2 n), ‖v‖ = 1 →
(IsStabilizer v → QAlgorithms.effectProb (qubitTest n)
(tensorPower 6 (QAlgorithms.pureDensity v)) = 1) ∧
(∀ epsilon : ℝ, FarFromStabilizers v epsilon →
QAlgorithms.effectProb (qubitTest n) (tensorPower 6 (QAlgorithms.pureDensity v)) ≤
1 - epsilon ^ 2 / 4) := 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 each , let , , and define when , and zero otherwise. Set , , , and on six copies. The theorem asserts that is unitary and, for every ,
The product is in increasing order of ; acts by on the six coordinates at site , and its matrix entry is zero unless all six copies agree between row and column at every other site. For every unit vector , write , where tensor-power entries are products of the corresponding entries of . Let consist of all matrices that are rank-one matrices of unit vectors, where , contains , is closed under multiplication and adjoints, and has no scalar matrix with . If , then . For every real , if for every , then . No positivity restriction is placed on . When , the local product is the empty product .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.