§3.5: explicit three-input majority algorithm
OpenQAlgorithms.Papers.Independent.Gap48.P23.majority_three_algorithmFor , write , , , and , where . The source vectors are constructed from the Dicke vector followed by ordered normalized singlets. The same fixed real permutation coefficients are used for every , and are orthonormalized and spanning only at . All labels have their actual dependent ranges. Let , where is the explicit normalized-monomial matrix of (C.9). Let be the source Schur transform followed by shape measurement and multiplicity trace, and let append in each measured sector and apply inverse Schur. Write for permutation averaging.
For , the template with both parameters equal to one is a channel with worst-case fidelity . Its outputs on weights zero and one, in basis , are respectively
The probabilities of are at weight zero and at weight one. The source branch outputs are also retained explicitly as unnormalized operators: the degree-one branch is absent at weight zero and gives the target at weight one; the degree-three branch gives the target at weight zero and the mixture with populations at weight one, each multiplied by its stated branch probability.
This identifies the source-constructed Schur coordinates and their operational use in the majority algorithm.
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
noncomputable section
namespace QAlgorithms.Papers.Independent.Gap48.P23
open MeasureTheory
open scoped ComplexConjugate Matrix ComplexOrder
attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq
-- Exact frozen coordinate helpers; no paper-local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P58 (Word)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
/-- PDF pp.25-26, (3.46): exact attained three-input construction, including
its two output densities and all four branch weights. -/
theorem majority_three_algorithm (alpha : RealSchurCoefficients 3) (ha : LawfulCoefficients alpha) :
IsChannel (template alpha (fun _ => 1)) ∧
functionFidelity (fun _ => True) (majority 3) (template alpha (fun _ => 1)) = 8/9 ∧
(∀ U : Matrix.unitaryGroup (Fin 2) ℂ,
template alpha (fun _ => 1) (encodedInput U.val (weightRepresentative 3 0)) = targetDensity U.val 0 ∧
template alpha (fun _ => 1) (encodedInput U.val (weightRepresentative 3 1)) =
(8/9 : ℂ) • targetDensity U.val 0 + (1/9 : ℂ) • targetDensity U.val 1 ∧
preprocessingBranch alpha ⟨1, by norm_num⟩ (encodedInput U.val (weightRepresentative 3 0)) = 0 ∧
partialTraceChannel 3 (preprocessingBranch alpha ⟨0, by norm_num⟩
(encodedInput U.val (weightRepresentative 3 0))) = targetDensity U.val 0 ∧
partialTraceChannel 1 (preprocessingBranch alpha ⟨1, by norm_num⟩
(encodedInput U.val (weightRepresentative 3 1))) = (2/3 : ℂ) • targetDensity U.val 0 ∧
partialTraceChannel 3 (preprocessingBranch alpha ⟨0, by norm_num⟩
(encodedInput U.val (weightRepresentative 3 1))) =
(1/3 : ℂ) • ((2/3 : ℂ) • targetDensity U.val 0 + (1/3 : ℂ) • targetDensity U.val 1)) ∧
samplingProbability 3 0 ⟨1, by norm_num⟩ = 0 ∧
samplingProbability 3 0 ⟨0, by norm_num⟩ = 1 ∧
samplingProbability 3 1 ⟨1, by norm_num⟩ = 2/3 ∧
samplingProbability 3 1 ⟨0, by norm_num⟩ = 1/3 := by sorry
end QAlgorithms.Papers.Independent.Gap48.P23
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let , let , and let . Given real coefficients for , , and , define , and define to be when and , when and , and otherwise. Put and , with . Assume that, for each , the are orthonormal and span the same space as the . Define and . For , define , and define
Let , let , and, for , let and . Then is a channel, meaning a finite Kraus sum with , and its fidelity
where exactly when , and . For every such ,
Finally, for
the four values are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.