Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Speeding up Learning Quantum States through Group Equivariant Convolutional Quantum Ansätze

Definition
QAlgorithms_Papers_Independent_Extend50_P10

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Speeding up Learning Quantum States through Group Equivariant Convolutional Quantum Ansätze (arXiv:2112.07611) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • complexDiagonals: PDF pp.6,19: the full complex diagonal Cartan, in the specified basis. Matrix units below reuse the accepted Information100.P44.matrixUnit.
  • imaginaryRealDiagonals: PDF pp.6,21: i times every real diagonal matrix.
  • generatedLie: PDF pp.19–21: the Lie subalgebra generated over K, with bracket AB−BA. The intersection is over all K-submodules containing S and closed under that bracket; it is not a linear span or a topological closure.
  • indexGraph: PDF p.20, Definition II.2: adjacency of distinct indices, made symmetric so that the graph is defined even before Hermiticity is imposed. For Hermitian matrices either direction is equivalent to H_ij ≠ 0.
  • PathConnectedHamiltonian: PDF p.20: a Hamiltonian is Hermitian, and its basis-index graph is connected. In particular, a singleton zero Hamiltonian is allowed.
  • augmentedZLabel: PDF p.26: augmented Pauli Z eigenvalue labels; none is Z_0=I and some i is Z_(i+1). The frozen pauliLabel instead selects Pauli matrices and cannot represent this eigenvalue map. The extra identity coordinate does not change ordinary bit-string indexing.
  • quadraticPauliLabel: PDF p.26: all second-order augmented labels, including identity and first-order labels as the entries with an index 0.
  • qaoaControls: PDF pp.7,26: every independently variable real quadratic Z Hamiltonian. This is a control family, not a fixed cost Hamiltonian.
  • evolutionGroup: PDF pp.6,21,26: finite products of the listed matrix exponentials. Submonoid.closure is algebraic: its elements have finite words. When the Hamiltonian set is real-linear, negative controls supply all inverses.
  • generalizedQaoaGroup: PDF pp.7,26: the fixed mixer has arbitrary real evolution times.
  • quditSiteMatrix: PDF pp.12,18: lift a one-site operator to a named qudit, fixing other sites. The alphabet is Fin d, matching the frozen physical tensor-permutation action. The accepted qubit-only siteOperator uses integer bit indices and is not this general-qudit named-wire matrix.
  • spinOperator: PDF p.12: one-half of the specified Pauli operator on a named site. finTwoEquiv identifies Fin 2 symbols 0,1 with false,true.
  • spinDot: PDF pp.12,18: the actual three-component spin-half exchange product.
  • pairAmplitude: PDF pp.9–10: normalized antisymmetric pair, embedded in any alphabet.
  • singletInitialization: PDF p.9, Eq.(5): k zeros followed by b disjoint singlets; n=k+2b.
  • twoRowDiagram: PDF pp.9–10: the unique two-row shape, with no truncated division.
  • physicalShapeProjector: A total adapter to the frozen full physical isotypic projector. On an invalid size/height diagram it is zero; every initialization statement below uses a size-correct, height-bounded diagram. It never selects an embedded Specht copy. The frozen cellular-JM shapeProjector is a different abstract algebra object.
  • occupationModule: PDF pp.3,9: M^mu is the coordinate subspace spanned by all words with occupation vector mu. This is not one chosen irreducible summand of that space.
  • tripleAmplitude: PDF p.10: the normalized SU(3) determinant singlet, in the exact printed order uds−usd+dsu−dus+sud−sdu.
  • su3Initialization: PDF p.10: a singles, b normalized pairs, c normalized determinant triples, on a+2b+3c physical sites.
  • threeRowDiagram: PDF p.10 with the forced site-count correction: (a+b+c,b+c,c). Printed (n+k+l,n−k+l,l) must read ((n+k)/2+l,(n−k)/2+l,l) when n=a+2b and k=a. The printed shape has too many boxes.
  • columnInitialization: PDF pp.2,9–10: tensor normalized antisymmetric states on the columns of lambda. The frozen cell numbering determines placement. Column permutations act on the frozen row-word; distinct permutations give distinct basis words.
  • PreparationGate: A named-wire qudit gate in the continuous one- and two-qudit model used for the constant-depth claim, PDF pp.2,9–10. Arbitrary wire pairs are allowed.
  • liftSupported: Lift an operator on a fixed subset, acting identically elsewhere.
  • PreparationCircuit: PDF pp.2,9–10: layers have pairwise disjoint supports; depth is their count. The gate matrices carry their own unitarity, not an unrelated cost witness.
  • preparationMatrix: Layers are listed in chronological order and multiply on the left.
  • collectiveAction: PDF p.3: the collective action g tensor n, computed in the physical basis.
  • CollectivelyInvariant: PDF pp.23–24: SU(d) symmetry refers to the actual collective group action. The frozen rational-permutation-submodule IsInvariant is a different predicate.
  • localInvariantHamiltonians: PDF p.24: each Hamiltonian is supported on one fixed subset of at most k sites. Different Hamiltonians may choose different subsets.
  • invariantLocalGroup: PDF p.24: V_k, exact finite products of fixed-support invariant evolutions.
  • invariantLocalSumGroup: PDF p.24: V'_k allows finite real sums with different supports before exponentiation. This is a real span of the concrete local Hermitian operators.
  • physicalAlgebraMatrix: PDF p.3: the actual linear extension of the physical permutation action.
  • spechtAlgebraMatrix: PDF pp.3,19,24: the matrix of the actual regular-ideal Specht action. Any fixed orthonormal coordinates suffice for a determinant: these coordinates are deliberately not claimed to be Young or sequential CG coordinates.
  • specialInvariantLocalGroup: PDF p.24: SV_k imposes determinant one on each nonrepeated Specht block. The coefficient function represents U through the concrete physical action and also computes all Specht blocks; no arbitrary unrelated block matrices occur. Only physical height-bounded shapes are tested.
  • originalYjm: PDF pp.4–5: the original physical X_(k+1), with X_1=0.
  • cqaYjm: PDF pp.6,23: only in the CQA control family, replace X_1 by I.
  • quadraticPhysicalControls: PDF pp.6,23: real independently variable augmented quadratic controls.
  • adjacentSwapHamiltonian: PDF p.24: the open-chain adjacent-SWAP Hamiltonian, with no (1,n) term.
  • physicalCqaGroup: PDF pp.7,24: the simultaneous-sector CQA group used in four-locality, with its fixed open-chain mixer H_S, not an arbitrary H_P.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P44

/-!
Statements from arXiv:2112.07611v3. Deferred nodes and the missing canonical
physical Young/CG interfaces are recorded in the assigned chunk's HARD.md.
Only algebraic finite generation is used below; `closure` occurs only in the
supplement's explicitly weaker density statement. Compilation is pending the
batch handoff. All local definitions have complete bodies.
-/

noncomputable section

open scoped Matrix
open QAlgorithms
open QAlgorithms.Schur
open QAlgorithms.Papers.Independent.Information100.P44 (matrixUnit)

namespace QAlgorithms.Papers.Independent.Extend50.P10

attribute [local instance] Classical.propDecidable

/-- PDF pp.6,19: the full complex diagonal Cartan, in the specified basis.
Matrix units below reuse the accepted Information100.P44.matrixUnit. -/
def complexDiagonals (D : ℕ) : Set (Matrix (Fin D) (Fin D) ℂ) :=
  Set.range (fun v : Fin D → ℂ => Matrix.diagonal v)

/-- PDF pp.6,21: i times every real diagonal matrix. -/
def imaginaryRealDiagonals (D : ℕ) : Set (Matrix (Fin D) (Fin D) ℂ) :=
  Set.range (fun v : Fin D → ℝ =>
    Complex.I • Matrix.diagonal (fun j => (v j : ℂ)))

/-- PDF pp.19–21: the Lie subalgebra generated over K, with bracket AB−BA.
The intersection is over all K-submodules containing S and closed under that
bracket; it is not a linear span or a topological closure. -/
def generatedLie (K : Type*) [Field K] {A : Type*} [Ring A] [Module K A]
    (S : Set A) : Submodule K A :=
  sInf {V : Submodule K A | S ⊆ V ∧
    ∀ a ∈ V, ∀ b ∈ V, a * b - b * a ∈ V}

/-- PDF p.20, Definition II.2: adjacency of distinct indices, made symmetric
so that the graph is defined even before Hermiticity is imposed. For Hermitian
matrices either direction is equivalent to H_ij ≠ 0. -/
def indexGraph {ι : Type*} (H : Matrix ι ι ℂ) : SimpleGraph ι where
  Adj i j := i ≠ j ∧ (H i j ≠ 0 ∨ H j i ≠ 0)
  symm := ⟨fun i j h => ⟨h.1.symm, h.2.symm⟩⟩
  loopless := ⟨fun i h => h.1 rfl⟩

/-- PDF p.20: a Hamiltonian is Hermitian, and its basis-index graph is connected.
In particular, a singleton zero Hamiltonian is allowed. -/
def PathConnectedHamiltonian {ι : Type*} [Fintype ι]
    (H : Matrix ι ι ℂ) : Prop :=
  H.IsHermitian ∧ (indexGraph H).Connected

/-- PDF p.26: augmented Pauli Z eigenvalue labels; none is Z_0=I and
some i is Z_(i+1). The frozen pauliLabel instead selects Pauli matrices and
cannot represent this eigenvalue map.
The extra identity coordinate does not change ordinary bit-string indexing. -/
def augmentedZLabel {n : ℕ} (x : Qubits n) : Option (Fin n) → ℝ
  | none => 1
  | some i => if x i then -1 else 1

/-- PDF p.26: all second-order augmented labels, including identity and
first-order labels as the entries with an index 0. -/
def quadraticPauliLabel {n : ℕ} (x : Qubits n) :
    Option (Fin n) × Option (Fin n) → ℝ :=
  fun p => augmentedZLabel x p.1 * augmentedZLabel x p.2

/-- PDF pp.7,26: every independently variable real quadratic Z Hamiltonian.
This is a control family, not a fixed cost Hamiltonian. -/
def qaoaControls (n : ℕ) : Set (Matrix (Qubits n) (Qubits n) ℂ) :=
  Set.range (fun beta : Option (Fin n) × Option (Fin n) → ℝ =>
    Matrix.diagonal (fun x =>
      ((∑ p, beta p * quadraticPauliLabel x p : ℝ) : ℂ)))

/-- PDF pp.6,21,26: finite products of the listed matrix exponentials.
Submonoid.closure is algebraic: its elements have finite words. When the
Hamiltonian set is real-linear, negative controls supply all inverses. -/
def evolutionGroup {ι : Type*} [Fintype ι] [DecidableEq ι]
    (S : Set (Matrix ι ι ℂ)) : Submonoid (Matrix ι ι ℂ) :=
  Submonoid.closure {U | ∃ H ∈ S, U = NormedSpace.exp (-Complex.I • H)}

/-- PDF pp.7,26: the fixed mixer has arbitrary real evolution times. -/
def generalizedQaoaGroup {n : ℕ} (H : Matrix (Qubits n) (Qubits n) ℂ) :
    Submonoid (Matrix (Qubits n) (Qubits n) ℂ) :=
  evolutionGroup (qaoaControls n ∪ Set.range (fun t : ℝ => t • H))

example {n : ℕ} (x : Qubits n) : augmentedZLabel x none = 1 := rfl

example {n : ℕ} (x : Qubits n) (j : Option (Fin n)) :
    quadraticPauliLabel x (none, j) = augmentedZLabel x j := by
  simp [quadraticPauliLabel, augmentedZLabel]

example {ι : Type*} [Fintype ι] [DecidableEq ι]
    (S : Set (Matrix ι ι ℂ)) : 1 ∈ evolutionGroup S :=
  (evolutionGroup S).one_mem

/-- PDF pp.12,18: lift a one-site operator to a named qudit, fixing other sites.
The alphabet is Fin d, matching the frozen physical tensor-permutation action.
The accepted qubit-only siteOperator uses integer bit indices and is not this
general-qudit named-wire matrix. -/
def quditSiteMatrix {d n : ℕ} (i : Fin n) (A : Matrix (Fin d) (Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  Matrix.of (fun x y => if ∀ j, j ≠ i → x j = y j then A (x i) (y i) else 0)

/-- PDF p.12: one-half of the specified Pauli operator on a named site.
finTwoEquiv identifies Fin 2 symbols 0,1 with false,true. -/
def spinOperator {n : ℕ} (i : Fin n) (A : Matrix Bool Bool ℂ) :
    Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ :=
  (1 / 2 : ℂ) • quditSiteMatrix i (Matrix.of (fun a b => A (finTwoEquiv a) (finTwoEquiv b)))

/-- PDF pp.12,18: the actual three-component spin-half exchange product. -/
def spinDot {n : ℕ} (i j : Fin n) : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ :=
  spinOperator i pauliX * spinOperator j pauliX +
  spinOperator i pauliY * spinOperator j pauliY +
  spinOperator i pauliZ * spinOperator j pauliZ

/-- PDF pp.9–10: normalized antisymmetric pair, embedded in any alphabet. -/
def pairAmplitude {d : ℕ} (x y : Fin d) : ℂ :=
  if x.val = 0 ∧ y.val = 1 then ((Real.sqrt 2)⁻¹ : ℂ)
  else if x.val = 1 ∧ y.val = 0 then -((Real.sqrt 2)⁻¹ : ℂ) else 0

/-- PDF p.9, Eq.(5): k zeros followed by b disjoint singlets; n=k+2b. -/
def singletInitialization (k b : ℕ) : EuclideanSpace ℂ (Fin (k + 2*b) → Fin 2) :=
  WithLp.toLp 2 (fun x =>
    (if ∀ i : Fin k, x ⟨i.val, by omega⟩ = 0 then 1 else 0) *
      ∏ j : Fin b,
        pairAmplitude (x ⟨k + 2*j.val, by omega⟩) (x ⟨k + 2*j.val + 1, by omega⟩))

/-- PDF pp.9–10: the unique two-row shape, with no truncated division. -/
def twoRowDiagram (k b : ℕ) : YoungDiagram :=
  YoungDiagram.ofRowLens [k+b, b] (by simp [List.sortedGE_iff_pairwise] <;> omega)

/-- A total adapter to the frozen full physical isotypic projector. On an invalid
size/height diagram it is zero; every initialization statement below uses a
size-correct, height-bounded diagram. It never selects an embedded Specht copy.
The frozen cellular-JM shapeProjector is a different abstract algebra object. -/
def physicalShapeProjector (d n : ℕ) (lambda : YoungDiagram) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  if h : lambda.card = n ∧ lambda.colLen 0 ≤ d then isotypicProjector ⟨lambda, h⟩
  else 0

/-- PDF pp.3,9: M^mu is the coordinate subspace spanned by all words with
occupation vector mu. This is not one chosen irreducible summand of that space. -/
def occupationModule {d n : ℕ} (mu : Fin d → ℕ) :
    Submodule ℂ (EuclideanSpace ℂ (Fin n → Fin d)) :=
  Submodule.span ℂ {v | ∃ x : Fin n → Fin d,
    (∀ a, (Finset.univ.filter (fun i => x i = a)).card = mu a) ∧ v = ket x}

/-- PDF p.10: the normalized SU(3) determinant singlet, in the exact printed
order uds−usd+dsu−dus+sud−sdu. -/
def tripleAmplitude (x y z : Fin 3) : ℂ :=
  ((Real.sqrt 6)⁻¹ : ℂ) *
    ((if (x,y,z) = (0,1,2) then 1 else 0) -
     (if (x,y,z) = (0,2,1) then 1 else 0) +
     (if (x,y,z) = (1,2,0) then 1 else 0) -
     (if (x,y,z) = (1,0,2) then 1 else 0) +
     (if (x,y,z) = (2,0,1) then 1 else 0) -
     (if (x,y,z) = (2,1,0) then 1 else 0))

/-- PDF p.10: a singles, b normalized pairs, c normalized determinant triples,
on a+2b+3c physical sites. -/
def su3Initialization (a b c : ℕ) :
    EuclideanSpace ℂ (Fin (a+2*b+3*c) → Fin 3) :=
  WithLp.toLp 2 (fun x =>
    (if ∀ i : Fin a, x ⟨i.val, by omega⟩ = 0 then 1 else 0) *
    (∏ j : Fin b,
      pairAmplitude (x ⟨a+2*j.val, by omega⟩) (x ⟨a+2*j.val+1, by omega⟩)) *
    ∏ j : Fin c,
      tripleAmplitude (x ⟨a+2*b+3*j.val, by omega⟩)
        (x ⟨a+2*b+3*j.val+1, by omega⟩) (x ⟨a+2*b+3*j.val+2, by omega⟩))

/-- PDF p.10 with the forced site-count correction: (a+b+c,b+c,c).
Printed (n+k+l,n−k+l,l) must read ((n+k)/2+l,(n−k)/2+l,l)
when n=a+2b and k=a. The printed shape has too many boxes. -/
def threeRowDiagram (a b c : ℕ) : YoungDiagram :=
  YoungDiagram.ofRowLens [a+b+c, b+c, c] (by simp [List.sortedGE_iff_pairwise] <;> omega)

/-- PDF pp.2,9–10: tensor normalized antisymmetric states on the columns of
lambda. The frozen cell numbering determines placement. Column permutations
act on the frozen row-word; distinct permutations give distinct basis words. -/
def columnInitialization {d n : ℕ} (lambda : Partition d n) :
    EuclideanSpace ℂ (Fin n → Fin d) :=
  ((Real.sqrt ((columnPermutations lambda).card : ℝ))⁻¹ : ℂ) •
    ∑ pi ∈ columnPermutations lambda,
      ((((Equiv.Perm.sign pi : ℤˣ) : ℤ) : ℂ)) •
        act (tensorPermutation d n pi) (ket (highestWeightWord lambda))

/-- A named-wire qudit gate in the continuous one- and two-qudit model used for the
constant-depth claim, PDF pp.2,9–10. Arbitrary wire pairs are allowed. -/
structure PreparationGate (d n : ℕ) where
  support : Finset (Fin n)
  arity : support.card ≤ 2
  unitary : Matrix.unitaryGroup (support → Fin d) ℂ

/-- Lift an operator on a fixed subset, acting identically elsewhere. -/
def liftSupported {d n : ℕ} (S : Finset (Fin n))
    (A : Matrix (S → Fin d) (S → Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  Matrix.of (fun x y => if ∀ i, i ∉ S → x i = y i
    then A (fun i => x i.val) (fun i => y i.val) else 0)

/-- PDF pp.2,9–10: layers have pairwise disjoint supports; depth is their count.
The gate matrices carry their own unitarity, not an unrelated cost witness. -/
structure PreparationCircuit (d n : ℕ) where
  layers : List (List (PreparationGate d n))
  disjoint : ∀ layer ∈ layers,
    layer.Pairwise (fun g h => Disjoint g.support h.support)

/-- Layers are listed in chronological order and multiply on the left. -/
def preparationMatrix {d n : ℕ} (C : PreparationCircuit d n) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  C.layers.foldl (fun U layer =>
    (layer.map (fun g => liftSupported g.support (g.unitary : Matrix _ _ ℂ))).prod * U) 1

example : pairAmplitude (0 : Fin 2) 0 = 0 := by simp [pairAmplitude]

example : pairAmplitude (0 : Fin 2) 1 = ((Real.sqrt 2)⁻¹ : ℂ) := by
  simp [pairAmplitude]

example : tripleAmplitude 0 0 0 = 0 := by simp [tripleAmplitude]

example (n : ℕ) : preparationMatrix
    ({ layers := [], disjoint := by simp } : PreparationCircuit 2 n) = 1 := rfl

/-- PDF p.3: the collective action g tensor n, computed in the physical basis. -/
def collectiveAction (d n : ℕ) (g : Matrix.specialUnitaryGroup (Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  Matrix.of (fun x y => ∏ i, (g : Matrix (Fin d) (Fin d) ℂ) (x i) (y i))

/-- PDF pp.23–24: SU(d) symmetry refers to the actual collective group action.
The frozen rational-permutation-submodule IsInvariant is a different predicate. -/
def CollectivelyInvariant {d n : ℕ} (H : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) : Prop :=
  ∀ g : Matrix.specialUnitaryGroup (Fin d) ℂ,
    H * collectiveAction d n g = collectiveAction d n g * H

/-- PDF p.24: each Hamiltonian is supported on one fixed subset of at most k
sites. Different Hamiltonians may choose different subsets. -/
def localInvariantHamiltonians (d n k : ℕ) :
    Set (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  {H | H.IsHermitian ∧ CollectivelyInvariant H ∧
    ∃ S : Finset (Fin n), S.card ≤ k ∧
      ∃ A : Matrix (S → Fin d) (S → Fin d) ℂ, H = liftSupported S A}

/-- PDF p.24: V_k, exact finite products of fixed-support invariant evolutions. -/
def invariantLocalGroup (d n k : ℕ) :
    Submonoid (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  evolutionGroup (localInvariantHamiltonians d n k)

/-- PDF p.24: V'_k allows finite real sums with different supports before
exponentiation. This is a real span of the concrete local Hermitian operators. -/
def invariantLocalSumGroup (d n k : ℕ) :
    Submonoid (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  evolutionGroup (Submodule.span ℝ (localInvariantHamiltonians d n k) :
    Set (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ))

example (d : ℕ) (g : Matrix.specialUnitaryGroup (Fin d) ℂ) :
    collectiveAction d 0 g = 1 := by
  ext x y
  simp [collectiveAction, Matrix.one_apply, Subsingleton.elim x y]

/-- PDF p.3: the actual linear extension of the physical permutation action. -/
def physicalAlgebraMatrix (d n : ℕ) (f : Equiv.Perm (Fin n) → ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  ∑ g, f g • tensorPermutation d n g

/-- PDF pp.3,19,24: the matrix of the actual regular-ideal Specht action.
Any fixed orthonormal coordinates suffice for a determinant: these coordinates
are deliberately not claimed to be Young or sequential CG coordinates. -/
def spechtAlgebraMatrix {d n : ℕ} (lambda : Partition d n)
    (f : Equiv.Perm (Fin n) → ℂ) :
    Matrix (Fin (Module.finrank ℂ (spechtSpace lambda)))
      (Fin (Module.finrank ℂ (spechtSpace lambda))) ℂ :=
  let b := stdOrthonormalBasis ℂ (spechtSpace lambda)
  ∑ g, f g • LinearMap.toMatrix b.toBasis b.toBasis (spechtRepresentation lambda g)

/-- PDF p.24: SV_k imposes determinant one on each nonrepeated Specht block.
The coefficient function represents U through the concrete physical action and
also computes all Specht blocks; no arbitrary unrelated block matrices occur.
Only physical height-bounded shapes are tested. -/
def specialInvariantLocalGroup (d n k : ℕ) :
    Set (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  {U | U ∈ invariantLocalGroup d n k ∧
    ∃ f : Equiv.Perm (Fin n) → ℂ, physicalAlgebraMatrix d n f = U ∧
      ∀ lambda : Partition d n, (spechtAlgebraMatrix lambda f).det = 1}

/-- PDF pp.4–5: the original physical X_(k+1), with X_1=0. -/
def originalYjm (d n : ℕ) (k : Fin n) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  ∑ j ∈ Finset.univ.filter (fun j : Fin n => j < k),
    tensorPermutation d n (Equiv.swap j k)

/-- PDF pp.6,23: only in the CQA control family, replace X_1 by I. -/
def cqaYjm (d n : ℕ) (k : Fin n) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  if k.val = 0 then 1 else originalYjm d n k

/-- PDF pp.6,23: real independently variable augmented quadratic controls. -/
def quadraticPhysicalControls (d n : ℕ) :
    Set (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  Set.range (fun beta : Fin n × Fin n → ℝ =>
    ∑ p, (beta p : ℂ) • (cqaYjm d n p.1 * cqaYjm d n p.2))

/-- PDF p.24: the open-chain adjacent-SWAP Hamiltonian, with no (1,n) term. -/
def adjacentSwapHamiltonian (d n : ℕ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  ∑ i : Fin n, if h : i.val + 1 < n then
    tensorPermutation d n (Equiv.swap i ⟨i.val+1, h⟩) else 0

/-- PDF pp.7,24: the simultaneous-sector CQA group used in four-locality,
with its fixed open-chain mixer H_S, not an arbitrary H_P. -/
def physicalCqaGroup (d n : ℕ) :
    Submonoid (Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :=
  evolutionGroup (quadraticPhysicalControls d n ∪
    Set.range (fun t : ℝ => t • adjacentSwapHamiltonian d n))

example (d : ℕ) : cqaYjm d 1 0 = 1 := by simp [cqaYjm]

example (d : ℕ) : originalYjm d 1 0 = 0 := by simp [originalYjm]

example (d : ℕ) : adjacentSwapHamiltonian d 1 = 0 := by
  simp [adjacentSwapHamiltonian]

end QAlgorithms.Papers.Independent.Extend50.P10
Source
Speeding up Learning Quantum States through Group Equivariant Convolutional Quantum Ansätze, arXiv:2112.07611v3, https://arxiv.org/abs/2112.07611v3
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Extend50.P10.CollectivelyInvariant

For any natural numbers d,nd,nd,n and any complex matrix HHH indexed by configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n, this predicate means that, for every g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d),

H Gg=Gg H,(Gg)x,y=∏i=0n−1gx(i),y(i).H\,G_g=G_g\,H, \qquad (G_g)_{x,y}=\prod_{i=0}^{n-1}g_{x(i),y(i)}.HGg​=Gg​H,(Gg​)x,y​=i=0∏n−1​gx(i),y(i)​.

No Hermiticity condition is part of this predicate. Zero values of ddd and nnn are included: for n=0n=0n=0, GgG_gGg​ is the 1×11\times11×1 identity and every HHH satisfies the predicate; for d=0<nd=0<nd=0<n, the matrices have empty index set.

QAlgorithms.Papers.Independent.Extend50.P10.PathConnectedHamiltonian

For any finite type ι\iotaι, equipped with a finite enumeration, and any complex matrix HHH indexed by ι\iotaι, this property means that H∗=HH^*=HH∗=H and that the following graph is connected: its vertices are the elements of ι\iotaι, and distinct i,ji,ji,j are adjacent exactly when Hij≠0H_{ij}\ne0Hij​=0 or Hji≠0H_{ji}\ne0Hji​=0. Connectedness requires a nonempty vertex set and a finite path between every pair of vertices. Consequently, the property fails for an empty index type; for a singleton index type, the graph condition holds without any edges.

QAlgorithms.Papers.Independent.Extend50.P10.PreparationCircuit

For arbitrary natural numbers d,nd,nd,n, a value of this structure consists of a finite ordered list of layers, each itself a finite ordered list of gates, where every gate has a support S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} of cardinality at most two and a complex unitary matrix indexed by functions S→{0,…,d−1}S\to\{0,\ldots,d-1\}S→{0,…,d−1}. It also includes the requirement that, within every layer, the supports of any two distinct list positions are disjoint. The layer list and individual layers may be empty, gates may have empty support, and there is no restriction on overlap between different layers or on the number of layers. No positivity assumption on d,nd,nd,n is made.

QAlgorithms.Papers.Independent.Extend50.P10.PreparationGate

For arbitrary natural numbers d,nd,nd,n, a value of this structure consists of a finite set S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1}, a proof that ∣S∣≤2|S|\le2∣S∣≤2, and a complex unitary matrix UUU whose rows and columns are indexed by functions S→{0,…,d−1}S\to\{0,\ldots,d-1\}S→{0,…,d−1}; explicitly, U∗U=UU∗=IU^*U=UU^*=IU∗U=UU∗=I. Supports of size zero, one, or two are allowed. For empty support there is one indexing function, so UUU is a scalar of modulus one; no positivity assumption on ddd or nnn is imposed.

QAlgorithms.Papers.Independent.Extend50.P10.adjacentSwapHamiltonian

For arbitrary natural numbers d,nd,nd,n, let XXX be the set of functions from the nnn positions to {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and let TπT_\piTπ​ be the matrix with entry 111 at (y,x)(y,x)(y,x) exactly when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and entry 000 otherwise. The declaration defines the complex matrix

Hadj=∑i=0n−2T(i  i+1).H_{\mathrm{adj}}=\sum_{i=0}^{n-2}T_{(i\,\,i+1)}.Hadj​=i=0∑n−2​T(ii+1)​.

Precisely, its defining sum runs over all 0≤i<n0\le i<n0≤i<n, contributing the adjacent transposition matrix when i+1<ni+1<ni+1<n and the zero matrix otherwise. Thus Hadj=0H_{\mathrm{adj}}=0Hadj​=0 for n=0n=0n=0 or n=1n=1n=1; d=0d=0d=0 is also permitted.

QAlgorithms.Papers.Independent.Extend50.P10.augmentedZLabel

For every natural number nnn and every Boolean string x:{0,…,n−1}→{false,true}x:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}x:{0,…,n−1}→{false,true}, this defines a real-valued function on the set consisting of a distinguished extra element ⊥\bot⊥ and the indices 0,…,n−10,\ldots,n-10,…,n−1. Its value at ⊥\bot⊥ is 111, and its value at an index iii is −1-1−1 when xi=truex_i=\mathrm{true}xi​=true and 111 when xi=falsex_i=\mathrm{false}xi​=false. When n=0n=0n=0, its domain consists only of ⊥\bot⊥.

QAlgorithms.Papers.Independent.Extend50.P10.collectiveAction

For natural numbers d,nd,nd,n and a matrix g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d), this defines a complex matrix indexed by configurations x,y:{0,…,n−1}→{0,…,d−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x,y:{0,…,n−1}→{0,…,d−1}, with entries

(collectiveAction⁡(d,n,g))x,y=∏i=0n−1gx(i),y(i).\bigl(\operatorname{collectiveAction}(d,n,g)\bigr)_{x,y} =\prod_{i=0}^{n-1}g_{x(i),y(i)}.(collectiveAction(d,n,g))x,y​=i=0∏n−1​gx(i),y(i)​.

When n=0n=0n=0, there is one empty configuration and the empty product is 111, so the resulting matrix is the 1×11\times11×1 identity, including when d=0d=0d=0. When d=0<nd=0<nd=0<n, there are no configurations and the resulting matrix has empty index set.

QAlgorithms.Papers.Independent.Extend50.P10.columnInitialization

For arbitrary natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, use the definition’s chosen bijection from its cells to {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. Let Cλ⊆SnC_\lambda\subseteq S_nCλ​⊆Sn​ consist of permutations that preserve the column of each numbered cell, and define the word w:{0,…,n−1}→{0,…,d−1}w:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}w:{0,…,n−1}→{0,…,d−1} by taking w(k)w(k)w(k) to be the zero-based row number of the cell numbered kkk. This defines the vector

1∣Cλ∣∑π∈Cλsgn⁡(π) ew∘π−1in C{0,…,d−1}{0,…,n−1},\frac1{\sqrt{|C_\lambda|}} \sum_{\pi\in C_\lambda}\operatorname{sgn}(\pi)\,e_{w\circ\pi^{-1}} \quad\text{in }\mathbb C^{\{0,\ldots,d-1\}^{\{0,\ldots,n-1\}}},∣Cλ​∣​1​π∈Cλ​∑​sgn(π)ew∘π−1​in C{0,…,d−1}{0,…,n−1},

where exe_xex​ is the coordinate vector at xxx. The identity belongs to CλC_\lambdaCλ​, so its cardinality is positive. The definition includes n=0n=0n=0, when the vector is the coordinate vector at the unique empty word; d=0d=0d=0 is permitted only when such a diagram exists, which forces n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P10.complexDiagonals

For every natural number DDD, this defines the set of complex D×DD\times DD×D diagonal matrices: a matrix belongs to this set exactly when it equals diag⁡(v)\operatorname{diag}(v)diag(v) for some function v:{0,…,D−1}→Cv:\{0,\ldots,D-1\}\to\mathbb Cv:{0,…,D−1}→C. Its diagonal entries are unrestricted complex numbers, and all off-diagonal entries are zero. When D=0D=0D=0, the set consists of the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P10.cqaYjm

For any natural numbers d,nd,nd,n and any index k∈{0,…,n−1}k\in\{0,\ldots,n-1\}k∈{0,…,n−1}, this defines a complex matrix on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n by

J~k={I,k=0,∑0≤j<nj<kT(j k),k≠0,(T(j k))y,x=1{y=x∘(j k)},\widetilde J_k= \begin{cases} I,&k=0,\\[2mm] \displaystyle\sum_{\substack{0\le j<n\\j<k}}T_{(j\,k)},&k\ne0, \end{cases} \qquad (T_{(j\,k)})_{y,x}=\mathbf1_{\{y=x\circ(j\,k)\}},Jk​=⎩⎨⎧​I,0≤j<nj<k​∑​T(jk)​,​k=0,k=0,​(T(jk)​)y,x​=1{y=x∘(jk)}​,

where III is the identity matrix and (j k)(j\,k)(jk) swaps the indicated sites. There is no admissible index kkk when n=0n=0n=0. The value d=0d=0d=0 is permitted, in which case the matrices have empty index set whenever kkk exists.

QAlgorithms.Papers.Independent.Extend50.P10.evolutionGroup

For any finite index type ι\iotaι with decidable equality and any set SSS of complex ι×ι\iota\times\iotaι×ι matrices, this defines the smallest multiplicative submonoid containing every matrix exp⁡(−iH)\exp(-\mathrm{i}H)exp(−iH) with H∈SH\in SH∈S. Its elements are exactly finite products of such exponentials, including the empty product, which is the identity matrix. This is algebraic submonoid generation; no topological closure is taken. No Hermitian assumption is imposed on the matrices in SSS. The index type and SSS may be empty.

QAlgorithms.Papers.Independent.Extend50.P10.generalizedQaoaGroup

For any natural number nnn and any complex matrix HHH indexed by the bit strings Bn={0,1}nB_n=\{0,1\}^nBn​={0,1}n, define In={∗}⊔{0,…,n−1}I_n=\{*\}\sqcup\{0,\ldots,n-1\}In​={∗}⊔{0,…,n−1}, z∗(x)=1z_*(x)=1z∗​(x)=1, and zi(x)=1z_i(x)=1zi​(x)=1 if xi=0x_i=0xi​=0 and −1-1−1 if xi=1x_i=1xi​=1. This defines the multiplicative submonoid consisting of all finite products of matrices of the forms exp⁡(−iDβ)\exp(-\mathrm{i}D_\beta)exp(−iDβ​) and exp⁡(−itH)\exp(-\mathrm{i}tH)exp(−itH), where t∈Rt\in\mathbb Rt∈R, β:In×In→R\beta:I_n\times I_n\to\mathbb Rβ:In​×In​→R is arbitrary, and DβD_\betaDβ​ is diagonal with

(Dβ)xx=∑(a,b)∈In×Inβabza(x)zb(x).(D_\beta)_{xx}=\sum_{(a,b)\in I_n\times I_n}\beta_{ab}z_a(x)z_b(x).(Dβ​)xx​=(a,b)∈In​×In​∑​βab​za​(x)zb​(x).

The sum uses ordered pairs, including repeated indices and the auxiliary index ∗*∗. The empty product is included, and no topological closure or Hermitian assumption on HHH is required. The definition includes n=0n=0n=0, when BnB_nBn​ has one element.

QAlgorithms.Papers.Independent.Extend50.P10.generatedLie

Let KKK be any field, let AAA be any ring equipped with a KKK-module structure, and let S⊆AS\subseteq AS⊆A. This defines the KKK-submodule obtained by intersecting all KKK-submodules V⊆AV\subseteq AV⊆A that contain SSS and satisfy ab−ba∈Vab-ba\in Vab−ba∈V for every a,b∈Va,b\in Va,b∈V. Equivalently, it is the smallest KKK-linear subspace containing SSS and closed under the ring commutator [a,b]=ab−ba[a,b]=ab-ba[a,b]=ab−ba. No compatibility between scalar multiplication and ring multiplication beyond the stated module and ring structures is assumed. The set SSS may be empty; in that case the defined submodule is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Extend50.P10.imaginaryRealDiagonals

For every natural number DDD, this defines the set of matrices idiag⁡(v)i\operatorname{diag}(v)idiag(v), where i=−1i=\sqrt{-1}i=−1​ and v:{0,…,D−1}→Rv:\{0,\ldots,D-1\}\to\mathbb Rv:{0,…,D−1}→R is arbitrary, with its entries regarded as complex numbers. Thus these are precisely the complex diagonal matrices whose diagonal entries are purely imaginary, including zero entries. When D=0D=0D=0, the set consists of the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P10.indexGraph

For any type ι\iotaι and any complex matrix HHH with rows and columns indexed by ι\iotaι, this defines a simple undirected graph with vertex set ι\iotaι. Two vertices i,ji,ji,j are adjacent exactly when i≠ji\ne ji=j and at least one of HijH_{ij}Hij​ and HjiH_{ji}Hji​ is nonzero. Diagonal entries do not create edges. Neither finiteness of ι\iotaι nor Hermiticity of HHH is required, and the vertex set may be empty.

QAlgorithms.Papers.Independent.Extend50.P10.invariantLocalGroup

For any natural numbers d,n,kd,n,kd,n,k, this defines the submonoid of complex matrices on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n consisting of all finite products

exp⁡(−iH1)⋯exp⁡(−iHm),m≥0,\exp(-\mathrm iH_1)\cdots\exp(-\mathrm iH_m),\qquad m\ge0,exp(−iH1​)⋯exp(−iHm​),m≥0,

where each HℓH_\ellHℓ​ is Hermitian, commutes with every matrix GgG_gGg​ whose entries are (Gg)x,y=∏i=0n−1gx(i),y(i)(G_g)_{x,y}=\prod_{i=0}^{n-1}g_{x(i),y(i)}(Gg​)x,y​=∏i=0n−1​gx(i),y(i)​ for g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d), and has some support Sℓ⊆{0,…,n−1}S_\ell\subseteq\{0,\ldots,n-1\}Sℓ​⊆{0,…,n−1} with ∣Sℓ∣≤k|S_\ell|\le k∣Sℓ​∣≤k: there is a matrix AℓA_\ellAℓ​ on configurations of SℓS_\ellSℓ​ such that (Hℓ)x,y=(Aℓ)x∣Sℓ,y∣Sℓ(H_\ell)_{x,y}=(A_\ell)_{x|_{S_\ell},y|_{S_\ell}}(Hℓ​)x,y​=(Aℓ​)x∣Sℓ​​,y∣Sℓ​​​ when x,yx,yx,y agree outside SℓS_\ellSℓ​, and zero otherwise. The product with m=0m=0m=0 is the identity. This is algebraic generation by finite products; the definition does not take a topological closure. Zero parameters and empty supports are allowed, and products over an empty site set equal 111.

QAlgorithms.Papers.Independent.Extend50.P10.invariantLocalSumGroup

For any natural numbers d,n,kd,n,kd,n,k, let L\mathcal LL be the set of Hermitian complex matrices on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n that commute with every GgG_gGg​, where (Gg)x,y=∏i=0n−1gx(i),y(i)(G_g)_{x,y}=\prod_{i=0}^{n-1}g_{x(i),y(i)}(Gg​)x,y​=∏i=0n−1​gx(i),y(i)​ for g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d), and that can each be written using some support SSS with ∣S∣≤k|S|\le k∣S∣≤k as Hx,y=Ax∣S,y∣SH_{x,y}=A_{x|_S,y|_S}Hx,y​=Ax∣S​,y∣S​​ when x,yx,yx,y agree outside SSS, and zero otherwise. This definition gives the submonoid consisting of all finite products of matrices exp⁡(−iK)\exp(-\mathrm iK)exp(−iK), where KKK is any finite real linear combination of elements of L\mathcal LL. Both the linear combination and the product may be empty, giving K=0K=0K=0 and the identity matrix respectively. Zero values of d,n,kd,n,kd,n,k and empty supports are permitted, and the site product defining GgG_gGg​ is 111 when n=0n=0n=0. The generated submonoid uses finite products without a topological closure.

QAlgorithms.Papers.Independent.Extend50.P10.liftSupported

For arbitrary natural numbers d,nd,nd,n, a finite set S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1}, and any complex matrix AAA indexed by functions S→{0,…,d−1}S\to\{0,\ldots,d-1\}S→{0,…,d−1}, this defines the matrix on full words x,y:{0,…,n−1}→{0,…,d−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x,y:{0,…,n−1}→{0,…,d−1} by

A~x,y={Ax∣S,y∣S,x(i)=y(i) for every i∉S,0,otherwise.\widetilde A_{x,y}= \begin{cases} A_{x|_S,y|_S},&x(i)=y(i)\text{ for every }i\notin S,\\ 0,&\text{otherwise}. \end{cases}Ax,y​={Ax∣S​,y∣S​​,0,​x(i)=y(i) for every i∈/S,otherwise.​

There is no assumption that AAA is unitary or Hermitian, and no bound on ∣S∣|S|∣S∣. For empty SSS, this is the unique entry of AAA times the identity matrix; zero values of d,nd,nd,n are also included.

QAlgorithms.Papers.Independent.Extend50.P10.localInvariantHamiltonians

For any natural numbers d,n,kd,n,kd,n,k, this defines the set of complex matrices HHH indexed by configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n satisfying all three conditions: HHH is Hermitian; HHH commutes with every matrix GgG_gGg​ having entries (Gg)x,y=∏i=0n−1gx(i),y(i)(G_g)_{x,y}=\prod_{i=0}^{n-1}g_{x(i),y(i)}(Gg​)x,y​=∏i=0n−1​gx(i),y(i)​ for g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d); and there exist a subset S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} with ∣S∣≤k|S|\le k∣S∣≤k and a complex matrix AAA indexed by functions S→{0,…,d−1}S\to\{0,\ldots,d-1\}S→{0,…,d−1} such that

Hx,y={Ax∣S,y∣S,x(i)=y(i) for every i∉S,0,otherwise.H_{x,y}= \begin{cases} A_{x|_S,y|_S},&x(i)=y(i)\text{ for every }i\notin S,\\ 0,&\text{otherwise}. \end{cases}Hx,y​={Ax∣S​,y∣S​​,0,​x(i)=y(i) for every i∈/S,otherwise.​

All three parameters may be zero, and SSS may be empty; an empty support gives a scalar multiple of the identity. The existential condition requires one such support and one such matrix.

QAlgorithms.Papers.Independent.Extend50.P10.occupationModule

For arbitrary natural numbers d,nd,nd,n and a function μ:{0,…,d−1}→N\mu:\{0,\ldots,d-1\}\to\mathbb Nμ:{0,…,d−1}→N, this defines the complex linear subspace of C{0,…,d−1}{0,…,n−1}\mathbb C^{\{0,\ldots,d-1\}^{\{0,\ldots,n-1\}}}C{0,…,d−1}{0,…,n−1} spanned by the coordinate vectors exe_xex​ for words xxx satisfying

#{i∈{0,…,n−1}:x(i)=a}=μ(a)for every a∈{0,…,d−1}.\#\{i\in\{0,\ldots,n-1\}:x(i)=a\}=\mu(a) \quad\text{for every }a\in\{0,\ldots,d-1\}.#{i∈{0,…,n−1}:x(i)=a}=μ(a)for every a∈{0,…,d−1}.

Here exe_xex​ has coordinate 111 at xxx and 000 elsewhere. No condition such as ∑aμ(a)=n\sum_a\mu(a)=n∑a​μ(a)=n is assumed; if no word satisfies these counts, the span is the zero subspace. In particular, when n=0n=0n=0, the unique empty word qualifies exactly when every μ(a)=0\mu(a)=0μ(a)=0; when d=0<nd=0<nd=0<n, there are no words.

QAlgorithms.Papers.Independent.Extend50.P10.originalYjm

For any natural numbers d,nd,nd,n and any index k∈{0,…,n−1}k\in\{0,\ldots,n-1\}k∈{0,…,n−1}, this defines the complex matrix on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n

Jk=∑0≤j<nj<kT(j k),(T(j k))y,x=1{y=x∘(j k)},J_k=\sum_{\substack{0\le j<n\\j<k}}T_{(j\,k)}, \qquad (T_{(j\,k)})_{y,x}=\mathbf1_{\{y=x\circ(j\,k)\}},Jk​=0≤j<nj<k​∑​T(jk)​,(T(jk)​)y,x​=1{y=x∘(jk)}​,

where (j k)(j\,k)(jk) exchanges the two site indices j,kj,kj,k and fixes all others. The index kkk is zero-based, so J0=0J_0=0J0​=0 by the empty-sum convention. There is no admissible kkk when n=0n=0n=0; d=0d=0d=0 is allowed, yielding matrices with empty index set whenever kkk exists.

QAlgorithms.Papers.Independent.Extend50.P10.pairAmplitude

For every natural number ddd and every x,y∈{0,…,d−1}x,y\in\{0,\ldots,d-1\}x,y∈{0,…,d−1}, this defines the complex number

a(x,y)={1/2,x=0, y=1,−1/2,x=1, y=0,0,otherwise.a(x,y)= \begin{cases} 1/\sqrt2,&x=0,\ y=1,\\ -1/\sqrt2,&x=1,\ y=0,\\ 0,&\text{otherwise}. \end{cases}a(x,y)=⎩⎨⎧​1/2​,−1/2​,0,​x=0, y=1,x=1, y=0,otherwise.​

The definition applies to arbitrary ddd, rather than requiring d=2d=2d=2. For d=1d=1d=1 its only value is zero, and for d=0d=0d=0 there are no possible arguments.

QAlgorithms.Papers.Independent.Extend50.P10.physicalAlgebraMatrix

For any natural numbers d,nd,nd,n and any function f:Sn→Cf:\mathfrak S_n\to\mathbb Cf:Sn​→C, this defines the complex matrix on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n given by

Af=∑π∈Snf(π)Tπ,(Tπ)y,x={1,y=x∘π−1,0,otherwise.A_f=\sum_{\pi\in\mathfrak S_n}f(\pi)T_\pi, \qquad (T_\pi)_{y,x}= \begin{cases} 1,&y=x\circ\pi^{-1},\\ 0,&\text{otherwise}. \end{cases}Af​=π∈Sn​∑​f(π)Tπ​,(Tπ​)y,x​={1,0,​y=x∘π−1,otherwise.​

There are no restrictions on the coefficients f(π)f(\pi)f(π). If n=0n=0n=0, both the permutation set and the configuration set are singletons, and AfA_fAf​ is the 1×11\times11×1 matrix with entry f(id)f(\mathrm{id})f(id), including when d=0d=0d=0. If d=0<nd=0<nd=0<n, the matrix has empty index set.

QAlgorithms.Papers.Independent.Extend50.P10.physicalCqaGroup

For arbitrary natural numbers d,nd,nd,n, let XXX be the set of functions from nnn positions to ddd symbols, and define (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. Set J0=IJ_0=IJ0​=I if n>0n>0n>0, Jk=∑j<kT(j k)J_k=\sum_{j<k}T_{(j\,k)}Jk​=∑j<k​T(jk)​ for 1≤k<n1\le k<n1≤k<n, and Hadj=∑i: i+1<nT(i  i+1)H_{\mathrm{adj}}=\sum_{i:\,i+1<n}T_{(i\,\,i+1)}Hadj​=∑i:i+1<n​T(ii+1)​. The declaration defines the submonoid of complex matrices indexed by XXX consisting of all finite products of matrices exp⁡(−iH)\exp(-\mathrm i H)exp(−iH), where each factor independently uses either

H=∑k,ℓ=0n−1βkℓJkJℓ(βkℓ∈R),orH=tHadj(t∈R).H=\sum_{k,\ell=0}^{n-1}\beta_{k\ell}J_kJ_\ell \quad(\beta_{k\ell}\in\mathbb R), \qquad\text{or}\qquad H=tH_{\mathrm{adj}}\quad(t\in\mathbb R).H=k,ℓ=0∑n−1​βkℓ​Jk​Jℓ​(βkℓ​∈R),orH=tHadj​(t∈R).

The empty product is included and equals the identity; the closure used here is generation as a submonoid, without taking any topological closure. Zero values of d,nd,nd,n are allowed. In particular, when n=0n=0n=0, both kinds of HHH are zero, so the submonoid contains only the identity matrix.

QAlgorithms.Papers.Independent.Extend50.P10.physicalShapeProjector

For arbitrary natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ, this defines a complex matrix indexed by words x:{0,…,n−1}→{0,…,d−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x:{0,…,n−1}→{0,…,d−1}. If λ\lambdaλ does not have exactly nnn cells and at most ddd rows, the matrix is zero. Otherwise, use the definition’s chosen numbering of the cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ be the permutations preserving, respectively, the row and column of every numbered cell. On CSn\mathbb C^{S_n}CSn​, define matrices

(Yλ)g,h=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{g=hab},(Lπ)g,h=1{g=πh}.(Y_\lambda)_{g,h}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\,\mathbf1_{\{g=hab\}}, \qquad (L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}.(Yλ​)g,h​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,(Lπ​)g,h​=1{g=πh}​.

Let Wλ=range⁡(Yλ)W_\lambda=\operatorname{range}(Y_\lambda)Wλ​=range(Yλ​), let QλQ_\lambdaQλ​ be its orthogonal projection, and put χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​). The defined matrix is

Pλ=dim⁡CWλn!∑π∈Snχλ(π−1)Tπ,(Tπ)y,x=1{y=x∘π−1}.P_\lambda=\frac{\dim_{\mathbb C}W_\lambda}{n!} \sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\pi, \qquad (T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}.Pλ​=n!dimC​Wλ​​π∈Sn​∑​χλ​(π−1)Tπ​,(Tπ​)y,x​=1{y=x∘π−1}​.

There are no positivity assumptions on d,nd,nd,n; zero values are included, with the same condition and formulas.

QAlgorithms.Papers.Independent.Extend50.P10.preparationMatrix

For arbitrary natural numbers d,nd,nd,n and a circuit CCC consisting of ordered layers of gates with supports of size at most two, unitary local matrices, and pairwise disjoint supports within each layer, this defines a matrix on words {0,…,n−1}→{0,…,d−1}\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}{0,…,n−1}→{0,…,d−1}. For each gate ggg with support SgS_gSg​ and local matrix UgU_gUg​, put

(U~g)x,y={(Ug)x∣Sg,y∣Sg,x(i)=y(i) for every i∉Sg,0,otherwise.(\widetilde U_g)_{x,y}= \begin{cases} (U_g)_{x|_{S_g},y|_{S_g}},&x(i)=y(i)\text{ for every }i\notin S_g,\\ 0,&\text{otherwise}. \end{cases}(Ug​)x,y​={(Ug​)x∣Sg​​,y∣Sg​​​,0,​x(i)=y(i) for every i∈/Sg​,otherwise.​

If the layers in list order are ℓ1,…,ℓL\ell_1,\ldots,\ell_Lℓ1​,…,ℓL​, with ℓj=[gj,1,…,gj,mj]\ell_j=[g_{j,1},\ldots,g_{j,m_j}]ℓj​=[gj,1​,…,gj,mj​​], the defined matrix is

(U~gL,1⋯U~gL,mL)⋯(U~g1,1⋯U~g1,m1).\bigl(\widetilde U_{g_{L,1}}\cdots\widetilde U_{g_{L,m_L}}\bigr) \cdots \bigl(\widetilde U_{g_{1,1}}\cdots\widetilde U_{g_{1,m_1}}\bigr).(UgL,1​​⋯UgL,mL​​​)⋯(Ug1,1​​⋯Ug1,m1​​​).

Thus gate matrices are multiplied in list order within each layer, and successive layer products multiply on the left. An empty layer contributes the identity, and a circuit with no layers gives the identity; zero values of d,nd,nd,n are included.

QAlgorithms.Papers.Independent.Extend50.P10.qaoaControls

For every natural number nnn, this defines a set of complex matrices indexed by Boolean strings of length nnn. Write In={⊥,0,…,n−1}I_n=\{\bot,0,\ldots,n-1\}In​={⊥,0,…,n−1}, where ⊥\bot⊥ is an extra element, and put zx(⊥)=1z_x(\bot)=1zx​(⊥)=1 and zx(i)=(−1)xiz_x(i)=(-1)^{x_i}zx​(i)=(−1)xi​, interpreting false as 000 and true as 111. A matrix belongs to the defined set exactly when, for some arbitrary real coefficient function β:In×In→R\beta:I_n\times I_n\to\mathbb Rβ:In​×In​→R, it is diagonal with entry ∑(a,b)∈In×Inβa,bzx(a)zx(b)\sum_{(a,b)\in I_n\times I_n}\beta_{a,b}z_x(a)z_x(b)∑(a,b)∈In​×In​​βa,b​zx​(a)zx​(b) at the Boolean string xxx, regarded as a complex number. The sum includes all ordered pairs, including repeated indices and ⊥\bot⊥, and no symmetry condition is imposed on β\betaβ. When n=0n=0n=0, there is one Boolean string and the set consists of all 1×11\times11×1 matrices with a real entry.

QAlgorithms.Papers.Independent.Extend50.P10.quadraticPauliLabel

For every natural number nnn and every Boolean string xxx of length nnn, define zx(⊥)=1z_x(\bot)=1zx​(⊥)=1 and zx(i)=−1z_x(i)=-1zx​(i)=−1 if xix_ixi​ is true, zx(i)=1z_x(i)=1zx​(i)=1 otherwise, where ⊥\bot⊥ is an extra element distinct from all indices. This defines the real-valued function on ordered pairs (a,b)(a,b)(a,b) of such augmented indices by zx(a)zx(b)z_x(a)z_x(b)zx​(a)zx​(b). In particular, its value is 111 when both entries are ⊥\bot⊥ or when both entries are the same ordinary index, and it equals zx(i)z_x(i)zx​(i) when one entry is ⊥\bot⊥ and the other is iii. When n=0n=0n=0, the only pair is (⊥,⊥)(\bot,\bot)(⊥,⊥), with value 111.

QAlgorithms.Papers.Independent.Extend50.P10.quadraticPhysicalControls

For natural numbers d,nd,nd,n, let X={0,…,d−1}{0,…,n−1}X=\{0,\ldots,d-1\}^{\{0,\ldots,n-1\}}X={0,…,d−1}{0,…,n−1}. For a permutation π\piπ of the nnn positions, define the complex matrix TπT_\piTπ​, indexed by XXX, by (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. Put J0=IJ_0=IJ0​=I when n>0n>0n>0, and Jk=∑j<kT(j k)J_k=\sum_{j<k}T_{(j\,k)}Jk​=∑j<k​T(jk)​ for 1≤k<n1\le k<n1≤k<n, where (j k)(j\,k)(jk) exchanges positions j,kj,kj,k. The declaration defines the set of matrices

{∑k,ℓ=0n−1βkℓJkJℓ:βkℓ∈R},\left\{\sum_{k,\ell=0}^{n-1}\beta_{k\ell}J_kJ_\ell: \beta_{k\ell}\in\mathbb R\right\},⎩⎨⎧​k,ℓ=0∑n−1​βkℓ​Jk​Jℓ​:βkℓ​∈R⎭⎬⎫​,

with the real coefficients regarded as complex scalars. The coefficients are arbitrary and need not be symmetric in k,ℓk,\ellk,ℓ. Both d=0d=0d=0 and n=0n=0n=0 are allowed; when n=0n=0n=0, the sum is empty and the defined set is the singleton containing the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P10.quditSiteMatrix

For natural numbers d,nd,nd,n, a site i∈{0,…,n−1}i\in\{0,\ldots,n-1\}i∈{0,…,n−1}, and any complex d×dd\times dd×d matrix AAA, this defines a matrix MMM indexed by configurations x,y:{0,…,n−1}→{0,…,d−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x,y:{0,…,n−1}→{0,…,d−1}, whose entries are

Mxy={Axi,yi,xj=yj for every j≠i,0,otherwise.M_{xy}= \begin{cases} A_{x_i,y_i},&x_j=y_j\text{ for every }j\neq i,\\ 0,&\text{otherwise}. \end{cases}Mxy​={Axi​,yi​​,0,​xj​=yj​ for every j=i,otherwise.​

No Hermitian or unitary assumption is imposed on AAA. The supplied site requires n≥1n\geq1n≥1; d=0d=0d=0 is allowed, in which case there are no configurations and the resulting matrix has empty index sets.

QAlgorithms.Papers.Independent.Extend50.P10.singletInitialization

For every pair of natural numbers k,bk,bk,b, this defines a vector ψ\psiψ in the complex Euclidean space indexed by configurations x:{0,…,k+2b−1}→{0,1}x:\{0,\ldots,k+2b-1\}\to\{0,1\}x:{0,…,k+2b−1}→{0,1}, with amplitudes

ψ(x)=1{x0=⋯=xk−1=0}∏j=0b−1a(xk+2j,xk+2j+1),\psi(x)= \mathbf1_{\{x_0=\cdots=x_{k-1}=0\}} \prod_{j=0}^{b-1}a(x_{k+2j},x_{k+2j+1}),ψ(x)=1{x0​=⋯=xk−1​=0}​j=0∏b−1​a(xk+2j​,xk+2j+1​),

where a(0,1)=1/2a(0,1)=1/\sqrt2a(0,1)=1/2​, a(1,0)=−1/2a(1,0)=-1/\sqrt2a(1,0)=−1/2​, and a(0,0)=a(1,1)=0a(0,0)=a(1,1)=0a(0,0)=a(1,1)=0. When k=0k=0k=0, the condition in the indicator is vacuous; when b=0b=0b=0, the product is 111. In particular, for k=b=0k=b=0k=b=0, the unique empty configuration has amplitude 111.

QAlgorithms.Papers.Independent.Extend50.P10.spechtAlgebraMatrix

For any natural numbers d,nd,nd,n, any Young diagram λ\lambdaλ with nnn cells and at most ddd nonempty rows, and any function f:Sn→Cf:\mathfrak S_n\to\mathbb Cf:Sn​→C, fix the cell numbering supplied by a bijection between the cells of λ\lambdaλ and {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}. Let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq\mathfrak S_nRλ​,Cλ​⊆Sn​ be the permutations preserving, respectively, the row and column of each numbered cell. On CSn\mathbb C^{\mathfrak S_n}CSn​, define

Yλeh=∑a∈Rλ∑c∈Cλsgn⁡(c)ehac,Sλ=range⁡Yλ,Lπeh=eπh.Y_\lambda e_h =\sum_{a\in R_\lambda}\sum_{c\in C_\lambda} \operatorname{sgn}(c)e_{hac}, \qquad S_\lambda=\operatorname{range}Y_\lambda, \qquad L_\pi e_h=e_{\pi h}.Yλ​eh​=a∈Rλ​∑​c∈Cλ​∑​sgn(c)ehac​,Sλ​=rangeYλ​,Lπ​eh​=eπh​.

Let PSλP_{S_\lambda}PSλ​​ be orthogonal projection onto SλS_\lambdaSλ​, let bbb be its chosen standard orthonormal basis, and set s=dim⁡CSλs=\dim_{\mathbb C}S_\lambdas=dimC​Sλ​. The declaration defines the s×ss\times ss×s matrix

∑π∈Snf(π) [ v↦PSλ(Lπv) ]b,\sum_{\pi\in\mathfrak S_n} f(\pi)\,[\,v\mapsto P_{S_\lambda}(L_\pi v)\,]_b,π∈Sn​∑​f(π)[v↦PSλ​​(Lπ​v)]b​,

where the matrix of each map uses bbb for both domain and codomain. Zero values of d,nd,nd,n are permitted whenever such a diagram exists; if s=0s=0s=0, the resulting matrix has empty index set.

QAlgorithms.Papers.Independent.Extend50.P10.specialInvariantLocalGroup

For any natural numbers d,n,kd,n,kd,n,k, this defines the set of complex matrices UUU on configurations in {0,…,d−1}n\{0,\ldots,d-1\}^{n}{0,…,d−1}n satisfying two conditions. First, UUU is a finite product of exp⁡(−iH)\exp(-\mathrm iH)exp(−iH), where each HHH is Hermitian, commutes with every GgG_gGg​ having entries (Gg)x,y=∏igx(i),y(i)(G_g)_{x,y}=\prod_i g_{x(i),y(i)}(Gg​)x,y​=∏i​gx(i),y(i)​ for g∈SU(d)g\in\mathrm{SU}(d)g∈SU(d), and admits a support SSS with ∣S∣≤k|S|\le k∣S∣≤k and entries Hx,y=Ax∣S,y∣SH_{x,y}=A_{x|_S,y|_S}Hx,y​=Ax∣S​,y∣S​​ when x,yx,yx,y agree outside SSS, and zero otherwise. Second, there exists one function f:Sn→Cf:\mathfrak S_n\to\mathbb Cf:Sn​→C such that

U=∑π∈Snf(π)Tπ,(Tπ)y,x=1{y=x∘π−1},U=\sum_{\pi\in\mathfrak S_n}f(\pi)T_\pi, \qquad (T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}},U=π∈Sn​∑​f(π)Tπ​,(Tπ​)y,x​=1{y=x∘π−1}​,

and the following determinant equals 111 for every Young diagram λ\lambdaλ with nnn cells and at most ddd nonempty rows:

det⁡ ⁣(∑π∈Snf(π) [ v↦PSλ(Lπv) ]bλ)=1.\det\!\left( \sum_{\pi\in\mathfrak S_n} f(\pi)\,[\,v\mapsto P_{S_\lambda}(L_\pi v)\,]_{b_\lambda} \right)=1.det(π∈Sn​∑​f(π)[v↦PSλ​​(Lπ​v)]bλ​​)=1.

Here a fixed cell numbering defines row-preserving permutations RλR_\lambdaRλ​ and column-preserving permutations CλC_\lambdaCλ​; SλS_\lambdaSλ​ is the range of the operator Yλeh=∑a∈Rλ,c∈Cλsgn⁡(c)ehacY_\lambda e_h=\sum_{a\in R_\lambda,c\in C_\lambda}\operatorname{sgn}(c)e_{hac}Yλ​eh​=∑a∈Rλ​,c∈Cλ​​sgn(c)ehac​ on CSn\mathbb C^{\mathfrak S_n}CSn​; Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​; PSλP_{S_\lambda}PSλ​​ is orthogonal projection onto SλS_\lambdaSλ​; and bλb_\lambdabλ​ is its chosen standard orthonormal basis. Zero parameters, empty supports, and empty products are included; the latter give the identity. The site product is 111 for n=0n=0n=0, a determinant on a zero-dimensional space is 111, and the universal diagram condition is vacuous if there are no such diagrams.

QAlgorithms.Papers.Independent.Extend50.P10.spinDot

For any natural number nnn and sites i,j∈{0,…,n−1}i,j\in\{0,\ldots,n-1\}i,j∈{0,…,n−1}, this defines the matrix

Si(X)Sj(X)+Si(Y)Sj(Y)+Si(Z)Sj(Z)S_i(X)S_j(X)+S_i(Y)S_j(Y)+S_i(Z)S_j(Z)Si​(X)Sj​(X)+Si​(Y)Sj​(Y)+Si​(Z)Sj​(Z)

on configurations in {0,1}n\{0,1\}^n{0,1}n, where, in the order 0,10,10,1,

X=(0110),Y=(0−ii0),Z=(100−1),X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad Y=\begin{pmatrix}0&-\mathrm{i}\\\mathrm{i}&0\end{pmatrix},\qquad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix},X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​),

and Sℓ(A)xy=12Axℓ,yℓS_\ell(A)_{xy}=\frac12A_{x_\ell,y_\ell}Sℓ​(A)xy​=21​Axℓ​,yℓ​​ when xxx and yyy agree at every site other than ℓ\ellℓ, and is zero otherwise. Products are ordinary matrix products in the displayed order. The sites may coincide; their existence excludes n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P10.spinOperator

For any natural number nnn, any site i∈{0,…,n−1}i\in\{0,\ldots,n-1\}i∈{0,…,n−1}, and any complex matrix AAA indexed by the two Boolean values, this defines a matrix Si(A)S_i(A)Si​(A) indexed by configurations x,y:{0,…,n−1}→{0,1}x,y:\{0,\ldots,n-1\}\to\{0,1\}x,y:{0,…,n−1}→{0,1}. Identifying 000 with false and 111 with true, its entries are

Si(A)xy={12Axi,yi,xj=yj for every j≠i,0,otherwise.S_i(A)_{xy}= \begin{cases} \frac12 A_{x_i,y_i},&x_j=y_j\text{ for every }j\neq i,\\ 0,&\text{otherwise}. \end{cases}Si​(A)xy​={21​Axi​,yi​​,0,​xj​=yj​ for every j=i,otherwise.​

No Hermitian or unitary assumption on AAA is required, and the existence of iii excludes n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P10.su3Initialization

For arbitrary natural numbers a,b,ca,b,ca,b,c, put n=a+2b+3cn=a+2b+3cn=a+2b+3c. This defines a vector ψ∈C{0,1,2}n\psi\in\mathbb C^{\{0,1,2\}^n}ψ∈C{0,1,2}n whose coordinate at a word xxx is

ψ(x)=1{x(i)=0 for all 0≤i<a}∏j=0b−1ϵ(x(a+2j),x(a+2j+1))∏j=0c−1t(x(a+2b+3j),x(a+2b+3j+1),x(a+2b+3j+2)),\psi(x)= \mathbf1_{\{x(i)=0\text{ for all }0\le i<a\}} \prod_{j=0}^{b-1}\epsilon\bigl(x(a+2j),x(a+2j+1)\bigr) \prod_{j=0}^{c-1}t\bigl(x(a+2b+3j),x(a+2b+3j+1),x(a+2b+3j+2)\bigr),ψ(x)=1{x(i)=0 for all 0≤i<a}​j=0∏b−1​ϵ(x(a+2j),x(a+2j+1))j=0∏c−1​t(x(a+2b+3j),x(a+2b+3j+1),x(a+2b+3j+2)),

where ϵ(0,1)=1/2\epsilon(0,1)=1/\sqrt2ϵ(0,1)=1/2​, ϵ(1,0)=−1/2\epsilon(1,0)=-1/\sqrt2ϵ(1,0)=−1/2​, and ϵ\epsilonϵ is zero on all other pairs from {0,1,2}\{0,1,2\}{0,1,2}; ttt is 1/61/\sqrt61/6​ on (0,1,2),(1,2,0),(2,0,1)(0,1,2),(1,2,0),(2,0,1)(0,1,2),(1,2,0),(2,0,1), is −1/6-1/\sqrt6−1/6​ on (0,2,1),(1,0,2),(2,1,0)(0,2,1),(1,0,2),(2,1,0)(0,2,1),(1,0,2),(2,1,0), and is zero otherwise. Zero values of any parameter are allowed, with empty products equal to 111; when all three are zero, the coordinate at the unique empty word is 111.

QAlgorithms.Papers.Independent.Extend50.P10.threeRowDiagram

For arbitrary natural numbers a,b,ca,b,ca,b,c, this defines the Young diagram with successive row lengths

a+b+c,b+c,c,a+b+c,\qquad b+c,\qquad c,a+b+c,b+c,c,

and all later row lengths zero. These lengths are weakly decreasing, and their sum is a+2b+3ca+2b+3ca+2b+3c. Zero parameters are allowed; zero-length rows contribute no cells, and a=b=c=0a=b=c=0a=b=c=0 gives the empty diagram.

QAlgorithms.Papers.Independent.Extend50.P10.tripleAmplitude

For any x,y,z∈{0,1,2}x,y,z\in\{0,1,2\}x,y,z∈{0,1,2}, this defines the complex number

t(x,y,z)={1/6,(x,y,z)∈{(0,1,2),(1,2,0),(2,0,1)},−1/6,(x,y,z)∈{(0,2,1),(1,0,2),(2,1,0)},0,otherwise.t(x,y,z)= \begin{cases} 1/\sqrt6,&(x,y,z)\in\{(0,1,2),(1,2,0),(2,0,1)\},\\ -1/\sqrt6,&(x,y,z)\in\{(0,2,1),(1,0,2),(2,1,0)\},\\ 0,&\text{otherwise}. \end{cases}t(x,y,z)=⎩⎨⎧​1/6​,−1/6​,0,​(x,y,z)∈{(0,1,2),(1,2,0),(2,0,1)},(x,y,z)∈{(0,2,1),(1,0,2),(2,1,0)},otherwise.​

Thus every triple with a repeated entry has amplitude zero.

QAlgorithms.Papers.Independent.Extend50.P10.twoRowDiagram

For every pair of natural numbers k,bk,bk,b, this defines the Young diagram with prescribed row lengths k+bk+bk+b and bbb, which are weakly decreasing because k+b≥bk+b\geq bk+b≥b. Explicitly, using row and column indices starting at zero, its cells are exactly

{(0,c):0≤c<k+b} ∪ {(1,c):0≤c<b}.\{(0,c):0\leq c<k+b\}\ \cup\ \{(1,c):0\leq c<b\}.{(0,c):0≤c<k+b} ∪ {(1,c):0≤c<b}.

Zero-length rows contribute no cells: if b=0b=0b=0, only a row of length kkk remains, and if k=b=0k=b=0k=b=0, the diagram is empty.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me