§V tic-tac-toe: D4-invariant nine-qubit prediction model
OpenQAlgorithms.Papers.Independent.Extend50.P01.tic_tac_toe_constructionNumber the perimeter sites with even corners and odd edges, and center . A quarter turn and the vertical reflection generate the eight-element board group , represented by the wire permutations. Encode board data by and initialize . In each complete trainable block use shared corner/edge/center one-qubit unitaries, followed by complete commuting controlled- layers corner-to-neighboring-edge, edge-to-center and center-to-corner. Their parameters and the number of re-uploading layers are arbitrary. Define , , and . The blocks commute with the represented group, the input and observables are invariant, and
The entire prediction vector is invariant, so no tie-breaking convention is required. The single-qubit factor in every complete block is RY(theta[c,1]) RX(theta[c,0]) for the vertex class c, with two real angles per class shared on all its sites, exactly as in Figure 3. The nine real angles of a board block consist of these six angles and three controlled-Y orbit angles; a vehicle block has these six angles and four controlled-Z orbit angles.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P01
noncomputable section
open scoped Matrix Kronecker ComplexConjugate Matrix.Norms.L2Operator Manifold ContDiff
open MeasureTheory
namespace QAlgorithms.Papers.Independent.Extend50.P01
attribute [local instance] Classical.propDecidable Classical.decEq
-- PDF pp.3,8: reuse the accepted operator type, exp(-itH), and A X A†.
-- Notation specializes the imported interfaces without introducing duplicate declarations.
local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))
local notation "evolve" => QAlgorithms.Papers.Independent.Information100.P32.evolution
local notation "conjugate" => QAlgorithms.conjSuperop
-- PDF pp.3,10–11: the imported quadratic form is Re(psi† A psi).
local notation "expectation" => QAlgorithms.Papers.Independent.Information100.P21.quad
-- PDF pp.5,16–19: accepted active-wire operator, with identities on all spectators.
local notation "onWire" => QAlgorithms.Papers.Independent.Advance50.P49.onWire
-- PDF p.5: the imported phase-free Pauli tensor uses 0=I,1=X,2=Y,3=Z.
local notation "pauliWord" => QAlgorithms.Papers.Independent.Gap48.P33.pauliWord
/-- PDF pp.11–13, Fig.3 and Eqs.(88)–(90): the constructed nine-qubit D4-invariant predictor.
Orbit rotations are complete commuting layers; arbitrary overlapping sequential layouts are excluded. -/
theorem tic_tac_toe_construction
(W : List (List ((Fin 3 → Fin 2 → ℝ) × (Fin 3 → ℝ)))) :
boardGroup.carrier.ncard = 8 ∧
(∀ s ∈ boardGroup, ∀ t ∈ boardGroup, wireMatrix (s * t) = wireMatrix s * wireMatrix t) ∧
(∀ s ∈ boardGroup, wireMatrix s ∈ Matrix.unitaryGroup (Qubits 9) ℂ ∧
act (wireMatrix s) (zeroKet 9) = zeroKet 9 ∧
(∀ p, Commute (boardLayer p) (wireMatrix s)) ∧
(∀ a, conjugate (wireMatrix s) (boardObservable a) = boardObservable a)) ∧
(∀ x : Fin 9 → ℝ, (∀ i, x i ∈ ({-1,0,1} : Set ℝ)) → ∀ s ∈ boardGroup,
boardPrediction W (featurePullback s x) = boardPrediction W x) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every finite list of finite lists of real parameter pairs , where and , the following assertions hold. Let be the subgroup of permutations of generated by
with unlisted sites fixed. For , let have entries . Let be the Pauli matrices, , and mean on wire and identities elsewhere. Define , , , , and . Give wire class , even wires below class , and odd wires class , denoting the class by . Put
Let , , , and . For each block of , form , and set over its blocks. Empty products are identities. Define ; the defining formula for expectation is absent from the supplied code. Then has exactly eight elements; for every ; and every is unitary, fixes , commutes with for every parameter pair , and satisfies for every , where denotes the matrix operation named conjugate, whose definition is also absent from the supplied code. Finally, for every feature vector with each coordinate in , and every ,
The last equality is equality of all three output coordinates, and the statement includes empty outer and inner lists .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.