Four-copy testing for real states
OpenQAlgorithms.Papers.Independent.Extend50.P30.realFourCopyTestingFor a normalized -qubit state with real computational-basis amplitudes, a single Bell measurement on two copies samples directly from . Following it with the two-copy Weyl verification gives the fixed four-copy test. It is perfectly complete and has the same soundness guarantee as Theorem 3.3.
This gives the source's four-copy testing for real states 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.22, Remark 3.5. The printed reference to Theorem 3.2 means the testing guarantees of 3.3. -/
theorem realFourCopyTesting (n : ℕ) :
QAlgorithms.IsEffect (realQubitTest n) ∧
∀ v : EuclideanSpace ℂ (ResidueRegister 2 n), ‖v‖ = 1 → (∀ x, (v x).im = 0) →
(∀ a : DiscretePhaseSpace 2 n, QAlgorithms.effectProb (QAlgorithms.pureDensity (weylBellVector n a))
(Matrix.kronecker (QAlgorithms.pureDensity v) (QAlgorithms.pureDensity v)) = characteristicDistribution v a) ∧
(IsStabilizer v → QAlgorithms.effectProb (realQubitTest n)
(tensorPower 4 (QAlgorithms.pureDensity v)) = 1) ∧
(∀ epsilon : ℝ, FarFromStabilizers v epsilon →
QAlgorithms.effectProb (realQubitTest n) (tensorPower 4 (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 every , let , , and define when , and zero otherwise. Set , , and
The theorem asserts and . For every with and for every , it further asserts, for every ,
Let consist of the rank-one unit-vector matrices among , with , where contains , is closed under multiplication and adjoints, and satisfies . For the same real unit vector , if , then ; and for every real , if for all , then
Tensor-power entries are products over the four copies. The effect assertion does not require a real input vector, whereas all subsequent assertions do. The theorem includes and places no sign restriction on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.