Exact polar transform with O(N log N) CNOT/SWAP gates
OpenQAlgorithms.Papers.Independent.Intakethird100.P10.polarTransform_circuit_complexityFor , let over , acting on row bit vectors. There is a family of circuits consisting of CNOT and SWAP gates, together with an absolute constant and an integer , such that
The action is extended linearly to superpositions, and circuit size is the actual gate-list length. At , the one-wire circuit is empty. The bound counts the polar transform; complete encoder phase preparation is a separate node.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P10
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakethird100.P10
open scoped BigOperators Matrix ComplexConjugate
open Filter
-- Accepted definitions, without paper-local aliases.
open QAlgorithms.Papers.Independent.Information100.P58 (basisDensity)
open QAlgorithms.Papers.Independent.Information100.P67 (squaredFidelity)
open QAlgorithms.Papers.Independent.Claimed50.P48 (indexedKrausDilation)
/-- PDF pp.3,7: the transform has an exact CNOT/SWAP implementation and O(N log N)
elementary gates. One absolute constant and one eventual threshold precede n.
At n=0, N=1 and the circuit is empty. This counts no phase-preparation gates. -/
theorem polarTransform_circuit_complexity :
∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ,
∃ circuits : (n : ℕ) → List (PolarGate (2 ^ n)),
circuits 0 = [] ∧
(∀ n, circuitOperator (circuits n) = polarOperator n) ∧
(∀ n, n0 ≤ n → ((circuits n).length : ℝ) ≤ C * ((2 : ℝ) ^ n) * (n : ℝ)) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P10
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
There exist a real constant , a natural number , and, for every natural number , a finite gate list on Boolean wires, such that is empty, the matrix with entry precisely at satisfying equals the matrix with entry precisely when , and
Each gate is either a controlled-NOT with distinct control and target, updating the target by XOR, or a swap of two wires; lists act in their listed order. The transformation has output bit equal to the parity of those input bits for which every -digit at position of the -bit binary expansion of corresponds to a -digit at position of , with position most significant. Matrix equality is required for every , including ; only the length bound is restricted to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.