Classical polar encoding uses O(N log N) actual XOR and swap gates
OpenQAlgorithms.Papers.Independent.Intakethird100.P14.classical_encoding_complexityFor each , let over , where and reverses the address bits of a wire. Form the explicit classical circuit by swapping each bit-reversal wire pair once and then applying the XOR butterfly layers. Count every two-wire XOR and swap as one operation. There exist absolute constants and such that the cost bound holds for every , and correctness holds for every :
Since , the actual list length is . The circuit and bound are independent of the transmitted word, information set, and frozen vector. The claim concerns classical encoding; no efficient quantum decoding theorem is supplied by the paper.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P14
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakethird100.P14
open Filter MeasureTheory
open scoped ENNReal NNReal ComplexOrder BigOperators
open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)
open QAlgorithms.Papers.Independent.Dependency50.P13 (compression)
open QAlgorithms.Papers.Independent.Renew46.P44 (wordOutput)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- Unnumbered main contribution, PDF pp.1–2; actual encoder (5), p.4.
The concrete XOR/swap list implements uG_N on every word. Universal constants
and the threshold precede n and the input, hence also all coset choices.
Since N=2^n, N*n is exactly N*log_2(N). No quantum decoding complexity is claimed. -/
theorem classical_encoding_complexity :
∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ,
(∀ n ≥ n0, ((recursivePolarEncoder n).length : ℝ) ≤ C * (2 ^ n : ℕ) * n) ∧
∀ n (u : PolarWire n → Bit), runEncoder (recursivePolarEncoder n) u = polarEncode n u := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P14
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
There exist a real constant and an integer such that the following gate-count bound holds for every , and the following encoding identity holds for every and every word . Write for the index obtained by reversing the binary digits of , reduced modulo , and write . The prescribed gate list first swaps with for every , in the order supplied by the finite set’s list, and then, for in increasing order, applies an XOR gate from to for each whose -th binary digit is , again in the finite set’s list order. An XOR gate replaces its target value by the sum modulo of the old target and source values; a swap exchanges the two old values. The length of this list satisfies
Executing the entire list in order gives, at each output coordinate , exactly
where all sums and products are in . The identity is not restricted to . In particular, has one wire, an empty gate list, and an empty product equal to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.