Uniqueness and optimality of the canonical form
OpenQAlgorithms.Papers.Independent.Intakenext100.P03.canonical_unique_optimalLet be a positive even integer. Put , , , and , where , and .
For an axis with Pauli matrix , write . A canonical pair consists of an ordered finite list and an actual matrix , with consecutive axes distinct, , proportional to an element of , and . Products have the printed left-to-right order, and the empty list is permitted. Let be the minimum number of positive elementary occurrences among Clifford/rotation words implementing up to one global phase; Clifford gates have zero cost. Every has exactly one canonical pair, and every canonical pair satisfies
Uniqueness includes the actual residual matrix , not the phase and Clifford witnesses separately. The empty form has cost zero. This identifies canonical cost with optimal synthesis cost.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P03
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakenext100.P03
open scoped BigOperators Classical
-- Reuse the Mathlib matrix type without declaring a second Mat.
local notation "Mat" => Matrix Bool Bool ℂ
/-- Canonical data: the axis/exponent list and the actual residual matrix D,
not a nonunique phase/Clifford witness pair, PDF pp.6-7. -/
local notation "CanonicalData" => List (Fin 3 × ℕ) × Matrix Bool Bool ℂ
/-- Corollary 4.2, PDF pp.10-11: uniqueness of the entire data pair including
D, and optimality modulo one global phase, including the empty form. -/
theorem canonical_unique_optimal (n : ℕ) (hn : 0 < n) (heven : Even n)
(U : Mat) (hU : U ∈ cyclotomicGroup n) :
(∃! d : CanonicalData, IsCyclotomicCanonical n U d) ∧
∀ d : CanonicalData, IsCyclotomicCanonical n U d →
canonicalCost n d = minimumRotationCost n U := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P03
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every positive even natural number and every complex matrix in the following submonoid , there exists exactly one pair satisfying the canonical conditions below, and every pair satisfying those conditions has the stated cost equality. Put , , , let be the submonoid generated by , and let be generated by . A canonical pair consists of a finite list of coordinate–natural-number pairs and a complex matrix , such that for every pair, adjacent coordinates differ, for some real , and
The coordinates use , , and ; products follow list order. On the right, the minimum rotation cost is the least number of letters in any finite word whose other letters are arbitrary elements of , and whose matrix product satisfies for some real ; the definition assigns zero if no such word exists. Uniqueness is equality of the entire pair . Empty words and lists are allowed, and the subtraction in the cost is natural subtraction; when , the canonical list must be empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.