Definitions for Gradient Flows for Optimisation and Quantum Control: Foundations and Applications
DefinitionQAlgorithms_Papers_Independent_Advance50_P38The objects the formalized statements of Gradient Flows for Optimisation and Quantum Control: Foundations and Applications (arXiv:0802.4195) are stated in. Each was checked against the paper by a blind read-back and a moderator.
realHSPairing: Real Hilbert--Schmidt pairing (123), PDF p.22.frobSq: Squared Frobenius norm, never the default matrix norm.comm: The source's commutator.skew: Skew-Hermitian part, including 1/2.IsSpecialSkew: Special skew-Hermitian matrices include trace zero (101).realTraceOverlap: Real overlap (115), for arbitrary complex A,C.vInner: Inner product (176), conjugate-linear in its first argument.rankOneMatrix: Rank-one operator xx dagger.pureStateTransfer: Pure transfer (169); normalization is imposed only where the source does.IsHSProjection: Universal property of the real orthogonal projection.hsOrthogonal: Orthogonal complement for the given real pairing.matrixCarrier: Ambient matrix image of a subgroup of GL(n,C).matrixLieSet: Actual real Lie algebra via its one-parameter subgroups; H is closed at use.basisProjection: Real orthonormal-basis expression (124).skewPauli: The skew-Hermitian generators (111), not Hermitian Pauli matrices.LocalQubitIndexlocalGenerator: Generator in tensor position k, (112).localAlgebra: Real local algebra (121).localProjection: Formula (127), including denominator 2^n.numericalRadius: Radius (100); attainment is part of the statement below.ComplexCollinear: Complex collinearity means dependence, allowing either matrix to vanish.lineCosSq: Squared cosine between complex lines (114), used only for nonzero A,C.IsSUGradient: Gradient defined by (106) with right-trivialized metric (103), using actual derivatives along exp(t Omega)U rather than an assumed formula.unitaryGradientField: Ascent field (108).unitaryAscentStep: Step (109), with C dagger as fixed by (104)--(108) and Table II U1.colVec: Column vectorization (172), with column coordinate first.rectangularSigma: Rectangular diagonal matrix of singular values.FullSVD: Full SVD with nonnegative decreasing singular values, PDF p.27.svdOptimizer: Sufficient determinant-one optimizer (171).cSpectralSq: Squared C-spectral norm, Corollary IV.1, PDF p.27.ArrayIndex: Lexicographic array indexing (179), with factors in their stated order.tensorProduct: Outer product (177).tensorUnitary: Tensor product of actual SU factors (174).unitTensorFactors: Unit Euclidean norm of each factor, not the Pi sup norm.tensorSeed: Product of the first basis vectors, (180).pureProductProjectors: Pure product states as projectors, (167).centralizerAlgebra: Centralizer algebra (197), in u(N) with no trace-zero restriction.centralizerMatrix: Homogeneous linear system (199), in column vectorization order.IsBoundedQuadratic: Bounded quadratic form means the diagonal of a bounded symmetric real bilinear form, exactly (202), PDF p.35.orbitEulerStep: Standard Euler update (156), PDF p.25.IsSmoothHilbertEmbedding: A finite-dimensional manifold smoothly embedded in a real Hilbert space. The topology is the induced topology and the differential is injective. These are conditions on the actual map, not an arbitrary tangent-space label.embeddedRestriction: The restriction of an ambient map through its two embeddings. Membership of the image supplies existence; embedding injectivity supplies uniqueness.metricRepresentative: Metric dual representative; the fallback is used only outside the nondegenerate finite-dimensional metrics appearing in the theorems.riemannianGradient: Riemannian gradient (33) constructed from the actual smooth positive metric and the manifold differential, not supplied as unrelated field data.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Defs_Information
/-! Statements from arXiv:0802.4195v2. All added definitions are paper-local.
Orthogonality of complex matrices is real. Frobenius norms are explicit. -/
namespace QAlgorithms.Papers.Independent.Advance50.P38
open scoped BigOperators Topology Manifold ContDiff
noncomputable section
/-- Real Hilbert--Schmidt pairing (123), PDF p.22. -/
def realHSPairing {ι κ : Type*} [Fintype ι] [Fintype κ] (A B : Matrix ι κ ℂ) : ℝ :=
(Matrix.trace (A.conjTranspose * B)).re
/-- Squared Frobenius norm, never the default matrix norm. -/
def frobSq {ι κ : Type*} [Fintype ι] [Fintype κ] (A : Matrix ι κ ℂ) : ℝ :=
∑ i, ∑ j, Complex.normSq (A i j)
/-- The source's commutator. -/
def comm {ι : Type*} [Fintype ι] (A B : Matrix ι ι ℂ) := A * B - B * A
/-- Skew-Hermitian part, including 1/2. -/
def skew {ι : Type*} (A : Matrix ι ι ℂ) := (2 : ℂ)⁻¹ • (A - A.conjTranspose)
/-- Special skew-Hermitian matrices include trace zero (101). -/
def IsSpecialSkew {ι : Type*} [Fintype ι] (A : Matrix ι ι ℂ) : Prop :=
A.conjTranspose = -A ∧ Matrix.trace A = 0
/-- Real overlap (115), for arbitrary complex A,C. -/
def realTraceOverlap {ι : Type*} [Fintype ι] (A C U : Matrix ι ι ℂ) : ℝ :=
(Matrix.trace (C.conjTranspose * (U * A * U.conjTranspose))).re
/-- Inner product (176), conjugate-linear in its first argument. -/
def vInner {ι : Type*} [Fintype ι] (x y : ι → ℂ) : ℂ := ∑ i, star (x i) * y i
/-- Rank-one operator xx dagger. -/
def rankOneMatrix {ι : Type*} (x : ι → ℂ) : Matrix ι ι ℂ :=
QAlgorithms.pureDensity (WithLp.toLp 2 x)
/-- Pure transfer (169); normalization is imposed only where the source does. -/
def pureStateTransfer {ι : Type*} [Fintype ι] (x y : ι → ℂ) (U : Matrix ι ι ℂ) : ℝ :=
(Matrix.trace (rankOneMatrix x * U * rankOneMatrix y * U.conjTranspose)).re
/-- Universal property of the real orthogonal projection. -/
def IsHSProjection {ι : Type*} [Fintype ι] (S : Set (Matrix ι ι ℂ))
(g p : Matrix ι ι ℂ) : Prop := p ∈ S ∧ ∀ h ∈ S, realHSPairing (g - p) h = 0
/-- Orthogonal complement for the given real pairing. -/
def hsOrthogonal {ι : Type*} [Fintype ι] (S : Set (Matrix ι ι ℂ)) :
Set (Matrix ι ι ℂ) := {g | ∀ h ∈ S, realHSPairing g h = 0}
/-- Ambient matrix image of a subgroup of GL(n,C). -/
def matrixCarrier {n : ℕ} (H : Subgroup ((Matrix (Fin n) (Fin n) ℂ))ˣ) : Set ((Matrix (Fin n) (Fin n) ℂ)) :=
{A | ∃ u : ((Matrix (Fin n) (Fin n) ℂ))ˣ, u ∈ H ∧ (u : (Matrix (Fin n) (Fin n) ℂ)) = A}
/-- Actual real Lie algebra via its one-parameter subgroups; H is closed at use. -/
def matrixLieSet {n : ℕ} (H : Subgroup ((Matrix (Fin n) (Fin n) ℂ))ˣ) : Set ((Matrix (Fin n) (Fin n) ℂ)) :=
{A | ∀ t : ℝ, NormedSpace.exp (t • A) ∈ matrixCarrier H}
/-- Real orthonormal-basis expression (124). -/
def basisProjection {n m : ℕ} (b : Fin m → (Matrix (Fin n) (Fin n) ℂ)) (g : (Matrix (Fin n) (Fin n) ℂ)) : (Matrix (Fin n) (Fin n) ℂ) :=
∑ j, realHSPairing (b j) g • b j
example {n : ℕ} (g : (Matrix (Fin n) (Fin n) ℂ)) : basisProjection (fun j : Fin 0 => Fin.elim0 j) g = 0 := by
simp [basisProjection]
example {ι κ : Type*} [Fintype ι] [Fintype κ] : frobSq (0 : Matrix ι κ ℂ) = 0 := by
simp [frobSq]
/-- The skew-Hermitian generators (111), not Hermitian Pauli matrices. -/
def skewPauli (a : Fin 3) : (Matrix (Fin 2) (Fin 2) ℂ) :=
if a = 0 then Complex.I • (fun i j =>
QAlgorithms.pauliX (decide (i.val = 1)) (decide (j.val = 1)))
else if a = 1 then (-Complex.I) • (fun i j =>
QAlgorithms.pauliY (decide (i.val = 1)) (decide (j.val = 1)))
else Complex.I • (fun i j =>
QAlgorithms.pauliZ (decide (i.val = 1)) (decide (j.val = 1)))
abbrev LocalQubitIndex (n : ℕ) := Fin n → Fin 2
/-- Generator in tensor position k, (112). -/
def localGenerator {n : ℕ} (k : Fin n) (a : Fin 3) : Matrix (LocalQubitIndex n) (LocalQubitIndex n) ℂ :=
fun i j => ∏ l, if l = k then skewPauli a (i l) (j l) else if i l = j l then 1 else 0
/-- Real local algebra (121). -/
def localAlgebra (n : ℕ) : Submodule ℝ (Matrix (LocalQubitIndex n) (LocalQubitIndex n) ℂ) :=
Submodule.span ℝ (Set.range (fun ka : Fin n × Fin 3 => localGenerator ka.1 ka.2))
/-- Formula (127), including denominator 2^n. -/
def localProjection {n : ℕ} (g : Matrix (LocalQubitIndex n) (LocalQubitIndex n) ℂ) :=
((2 : ℝ) ^ n)⁻¹ • ∑ k : Fin n, ∑ a : Fin 3, realHSPairing g (localGenerator k a) • localGenerator k a
example : skewPauli 1 0 1 = -1 := by
change (-Complex.I) * (-Complex.I) = -1
simp
example : skewPauli 0 0 1 = Complex.I := by
change Complex.I * 1 = Complex.I
simp
/-- Radius (100); attainment is part of the statement below. -/
def numericalRadius {n : ℕ} (A C : (Matrix (Fin n) (Fin n) ℂ)) : ℝ :=
sSup {r | ∃ U : Matrix.specialUnitaryGroup (Fin n) ℂ,
r = ‖Matrix.trace (C.conjTranspose * ((U : (Matrix (Fin n) (Fin n) ℂ)) * A * (U : (Matrix (Fin n) (Fin n) ℂ)).conjTranspose))‖}
/-- Complex collinearity means dependence, allowing either matrix to vanish. -/
def ComplexCollinear {n : ℕ} (A C : (Matrix (Fin n) (Fin n) ℂ)) : Prop :=
∃ a b : ℂ, (a ≠ 0 ∨ b ≠ 0) ∧ a • A + b • C = 0
/-- Squared cosine between complex lines (114), used only for nonzero A,C. -/
def lineCosSq {n : ℕ} (A C U : (Matrix (Fin n) (Fin n) ℂ)) : ℝ :=
Complex.normSq (Matrix.trace (C.conjTranspose * (U * A * U.conjTranspose))) /
(frobSq A * frobSq C)
/-- Gradient defined by (106) with right-trivialized metric (103), using
actual derivatives along exp(t Omega)U rather than an assumed formula. -/
def IsSUGradient {n : ℕ} (A C U V : (Matrix (Fin n) (Fin n) ℂ)) : Prop :=
∃ K : (Matrix (Fin n) (Fin n) ℂ), IsSpecialSkew K ∧ V = K * U ∧
∀ Omega : (Matrix (Fin n) (Fin n) ℂ), IsSpecialSkew Omega →
HasDerivAt (fun t : ℝ => realTraceOverlap A C (NormedSpace.exp (t • Omega) * U)) (realHSPairing K Omega) 0
/-- Ascent field (108). -/
def unitaryGradientField {n : ℕ} (A C U : (Matrix (Fin n) (Fin n) ℂ)) : (Matrix (Fin n) (Fin n) ℂ) :=
-skew (comm (U * A * U.conjTranspose) C.conjTranspose) * U
/-- Step (109), with C dagger as fixed by (104)--(108) and Table II U1. -/
def unitaryAscentStep {n : ℕ} (A C U : (Matrix (Fin n) (Fin n) ℂ)) (a : ℝ) : (Matrix (Fin n) (Fin n) ℂ) :=
NormedSpace.exp (a • (-skew (comm (U * A * U.conjTranspose) C.conjTranspose))) * U
/-- Column vectorization (172), with column coordinate first. -/
def colVec {a b : ℕ} (X : Matrix (Fin a) (Fin b) ℂ) : Fin b × Fin a → ℂ :=
fun ji => X ji.2 ji.1
/-- Rectangular diagonal matrix of singular values. -/
def rectangularSigma {a b : ℕ} (s : Fin (min a b) → ℝ) : Matrix (Fin a) (Fin b) ℂ :=
fun i j => if h : i.val < min a b then
if i.val = j.val then (s ⟨i.val, h⟩ : ℂ) else 0 else 0
/-- Full SVD with nonnegative decreasing singular values, PDF p.27. -/
structure FullSVD {a b : ℕ} (X : Matrix (Fin a) (Fin b) ℂ) where
V : Matrix.unitaryGroup (Fin a) ℂ
W : Matrix.unitaryGroup (Fin b) ℂ
singularValues : Fin (min a b) → ℝ
nonneg : ∀ i, 0 ≤ singularValues i
sorted : Antitone singularValues
reconstruction : X = (V : (Matrix (Fin a) (Fin a) ℂ)) * rectangularSigma singularValues * (W : (Matrix (Fin b) (Fin b) ℂ)).conjTranspose
/-- Sufficient determinant-one optimizer (171). -/
def svdOptimizer {a b : ℕ} {X Y : Matrix (Fin a) (Fin b) ℂ}
(sx : FullSVD X) (sy : FullSVD Y) : Matrix (Fin b × Fin a) (Fin b × Fin a) ℂ :=
Matrix.kronecker ((sx.W : (Matrix (Fin b) (Fin b) ℂ)).map star) (sx.V : (Matrix (Fin a) (Fin a) ℂ)) *
Matrix.kronecker (sy.W : (Matrix (Fin b) (Fin b) ℂ)).transpose (sy.V : (Matrix (Fin a) (Fin a) ℂ)).conjTranspose
example : colVec (!![(1 : ℂ), 2; 3, 4]) (0, 1) = 3 := by rfl
/-- Squared C-spectral norm, Corollary IV.1, PDF p.27. -/
def cSpectralSq {a b : ℕ} (A C : Matrix (Fin a) (Fin b) ℂ) : ℝ :=
sSup {r | ∃ V : Matrix.unitaryGroup (Fin a) ℂ,
∃ W : Matrix.unitaryGroup (Fin b) ℂ,
r = Complex.normSq (Matrix.trace (C.conjTranspose * (V : (Matrix (Fin a) (Fin a) ℂ)) * A * (W : (Matrix (Fin b) (Fin b) ℂ)).conjTranspose))}
/-- Lexicographic array indexing (179), with factors in their stated order. -/
abbrev ArrayIndex {r : ℕ} (d : Fin r → ℕ) := (k : Fin r) → Fin (d k)
/-- Outer product (177). -/
def tensorProduct {r : ℕ} {d : Fin r → ℕ} (z : (k : Fin r) → Fin (d k) → ℂ) :
ArrayIndex d → ℂ := fun i => ∏ k, z k (i k)
/-- Tensor product of actual SU factors (174). -/
def tensorUnitary {r : ℕ} {d : Fin r → ℕ}
(U : (k : Fin r) → Matrix.specialUnitaryGroup (Fin (d k)) ℂ) :
Matrix (ArrayIndex d) (ArrayIndex d) ℂ := fun i j => ∏ k, (U k : (Matrix (Fin (d k)) (Fin (d k)) ℂ)) (i k) (j k)
/-- Unit Euclidean norm of each factor, not the Pi sup norm. -/
def unitTensorFactors {r : ℕ} {d : Fin r → ℕ} (z : (k : Fin r) → Fin (d k) → ℂ) : Prop :=
∀ k, ∑ j, Complex.normSq (z k j) = 1
/-- Product of the first basis vectors, (180). -/
def tensorSeed {r : ℕ} (d : Fin r → ℕ) : ArrayIndex d → ℂ :=
fun i => if ∀ k, (i k).val = 0 then 1 else 0
/-- Pure product states as projectors, (167). -/
def pureProductProjectors {r : ℕ} (d : Fin r → ℕ) :
Set (Matrix (ArrayIndex d) (ArrayIndex d) ℂ) :=
{P | ∃ z : (k : Fin r) → Fin (d k) → ℂ, unitTensorFactors z ∧ P = rankOneMatrix (tensorProduct z)}
example : tensorProduct (d := fun _ : Fin 0 => 2) (fun k => Fin.elim0 k) = fun _ => 1 := by
funext i
simp [tensorProduct]
/-- Centralizer algebra (197), in u(N) with no trace-zero restriction. -/
def centralizerAlgebra {n : ℕ} (E : (Matrix (Fin n) (Fin n) ℂ)) : Set ((Matrix (Fin n) (Fin n) ℂ)) :=
{K | K.conjTranspose = -K ∧ comm K E = 0}
/-- Homogeneous linear system (199), in column vectorization order. -/
def centralizerMatrix {n : ℕ} (E : (Matrix (Fin n) (Fin n) ℂ)) :
Matrix (Fin n × Fin n) (Fin n × Fin n) ℂ :=
Matrix.kronecker (1 : (Matrix (Fin n) (Fin n) ℂ)) E - Matrix.kronecker E.transpose (1 : (Matrix (Fin n) (Fin n) ℂ))
/-- Bounded quadratic form means the diagonal of a bounded symmetric
real bilinear form, exactly (202), PDF p.35. -/
def IsBoundedQuadratic {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H]
(beta : H → ℝ) : Prop :=
∃ B : H →L[ℝ] H →L[ℝ] ℝ, (∀ v w, B v w = B w v) ∧ ∀ v, beta v = B v v
example {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] :
IsBoundedQuadratic (fun _ : H => 0) := by
exact ⟨0, fun _ _ => rfl, fun _ => rfl⟩
/-- Standard Euler update (156), PDF p.25. -/
def orbitEulerStep {n : ℕ} (X C : (Matrix (Fin n) (Fin n) ℂ)) (a : ℝ) : (Matrix (Fin n) (Fin n) ℂ) :=
X + a • comm X (skew (comm X C.conjTranspose))
/-- A finite-dimensional manifold smoothly embedded in a real Hilbert space.
The topology is the induced topology and the differential is injective.
These are conditions on the actual map, not an arbitrary tangent-space label. -/
def IsSmoothHilbertEmbedding
{E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M]
{H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H]
(i : M → H) : Prop :=
ContMDiff 𝓘(ℝ, E) 𝓘(ℝ, H) ∞ i ∧ Function.Injective i ∧
(∀ s : Set M, IsOpen s ↔ ∃ t : Set H, IsOpen t ∧ s = i ⁻¹' t) ∧
∀ x, Function.Injective (mfderiv 𝓘(ℝ, E) 𝓘(ℝ, H) i x)
/-- The restriction of an ambient map through its two embeddings. Membership
of the image supplies existence; embedding injectivity supplies uniqueness. -/
def embeddedRestriction {M N H Hprime : Type*} (i : M → H) (j : N → Hprime)
(F : H → Hprime) (hF : ∀ x, ∃ y, j y = F (i x)) : M → N :=
fun x => Classical.choose (hF x)
example {M H : Type*} (i : M → H) (x : M) :
embeddedRestriction i id id (fun x => ⟨i x, rfl⟩) x = i x := by
exact Classical.choose_spec (show ∃ y, id y = id (i x) from ⟨i x, rfl⟩)
/-- Metric dual representative; the fallback is used only outside the
nondegenerate finite-dimensional metrics appearing in the theorems. -/
def metricRepresentative {V : Type*} [Zero V] (g : V → V → ℝ) (L : V → ℝ) : V := by
classical
exact if h : ∃ v, ∀ w, g v w = L w then Classical.choose h else 0
example {V : Type*} [Zero V] [Subsingleton V] (g : V → V → ℝ) (L : V → ℝ) :
metricRepresentative g L = 0 := by
exact Subsingleton.elim _ _
/-- Riemannian gradient (33) constructed from the actual smooth positive
metric and the manifold differential, not supplied as unrelated field data. -/
def riemannianGradient
{E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M]
[IsManifold 𝓘(ℝ, E) ∞ M]
(g : Bundle.ContMDiffRiemannianMetric 𝓘(ℝ, E) ∞ E
(fun x : M => TangentSpace 𝓘(ℝ, E) x)) (f : M → ℝ) (x : M) :
TangentSpace 𝓘(ℝ, E) x :=
metricRepresentative (fun v w => g.inner x v w) (mfderiv 𝓘(ℝ, E) 𝓘(ℝ, ℝ) f x)
/-- Sanity examples for the elementary local definitions. These pin zero,
empty-product, scalar-field and sign conventions; they are not theorem proofs. -/
example {n : ℕ} (A : (Matrix (Fin n) (Fin n) ℂ)) : comm A A = 0 := by
simp [comm]
example {n : ℕ} : skew (0 : (Matrix (Fin n) (Fin n) ℂ)) = 0 := by
simp [skew]
example {n : ℕ} : IsSpecialSkew (0 : (Matrix (Fin n) (Fin n) ℂ)) := by
simp [IsSpecialSkew]
example {n : ℕ} (C U : (Matrix (Fin n) (Fin n) ℂ)) : realTraceOverlap 0 C U = 0 := by
simp [realTraceOverlap]
example : vInner (fun _ : Fin 1 => (1 : ℂ)) (fun _ => 1) = 1 := by
simp [vInner]
example : rankOneMatrix (fun _ : Fin 1 => (1 : ℂ)) 0 0 = 1 := by
simp [rankOneMatrix, QAlgorithms.pureDensity]
example {n : ℕ} (y : Fin n → ℂ) (U : (Matrix (Fin n) (Fin n) ℂ)) : pureStateTransfer 0 y U = 0 := by
have hzero : rankOneMatrix (0 : Fin n → ℂ) = 0 := by
ext i j
simp [rankOneMatrix, QAlgorithms.pureDensity]
simp [pureStateTransfer, hzero]
example {n : ℕ} (H : Subgroup ((Matrix (Fin n) (Fin n) ℂ))ˣ) : (1 : (Matrix (Fin n) (Fin n) ℂ)) ∈ matrixCarrier H := by
exact ⟨1, H.one_mem, rfl⟩
example {n : ℕ} : hsOrthogonal (∅ : Set ((Matrix (Fin n) (Fin n) ℂ))) = Set.univ := by
ext x
simp [hsOrthogonal]
example (g : Matrix (LocalQubitIndex 0) (LocalQubitIndex 0) ℂ) : localProjection g = 0 := by
simp [localProjection]
example {a b : ℕ} : rectangularSigma (a := a) (b := b) (fun _ => 0) = 0 := by
ext i j
simp [rectangularSigma]
example : unitTensorFactors (d := fun _ : Fin 0 => 2) (fun k => Fin.elim0 k) := by
intro k
exact Fin.elim0 k
example {n : ℕ} (E : (Matrix (Fin n) (Fin n) ℂ)) : (0 : (Matrix (Fin n) (Fin n) ℂ)) ∈ centralizerAlgebra E := by
simp [centralizerAlgebra, comm]
example {n : ℕ} (X C : (Matrix (Fin n) (Fin n) ℂ)) : orbitEulerStep X C 0 = X := by
simp [orbitEulerStep]
end
end QAlgorithms.Papers.Independent.Advance50.P38
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P38.ArrayIndex
For any natural number and any family of natural numbers , indexed by , abbreviates the set of tuples with for every . When , this set contains exactly the empty tuple; if some , it is empty.
QAlgorithms.Papers.Independent.Advance50.P38.ComplexCollinear
For every natural number and every pair of complex matrices , this predicate means that there exist complex numbers , at least one of which is nonzero, such that
Either coefficient may individually be zero. In particular, the predicate holds whenever either matrix is zero, and it holds for the unique pair of empty matrices when .
QAlgorithms.Papers.Independent.Advance50.P38.FullSVD
For any natural numbers and complex matrix , a value of consists of a unitary complex matrix , a unitary complex matrix , and real numbers indexed by , together with the requirements that for every , that whenever , and that
The matrices need not have determinant . This declares the required data and properties, without asserting existence of such data for every . Zero dimensions are allowed; then the list of and its nonnegativity and ordering conditions are empty.
QAlgorithms.Papers.Independent.Advance50.P38.IsBoundedQuadratic
For any real normed vector space and any function , this property means that there exists a continuous real-linear map from into the space of continuous real-linear maps such that
Thus the required witness is a continuous symmetric real bilinear form whose diagonal values equal .
QAlgorithms.Papers.Independent.Advance50.P38.IsHSProjection
For any finite type , equipped with a finite enumeration, any set of complex square matrices indexed by , and any two such matrices , this predicate means
where the dagger denotes conjugate transpose. The set is arbitrary and need not be a subspace. If is empty, the predicate is false. If is empty, the orthogonality condition always holds, so the predicate reduces to .
QAlgorithms.Papers.Independent.Advance50.P38.IsSUGradient
For any natural number , including , and arbitrary complex matrices , the predicate means that there exists a complex matrix with , , and , such that for every complex matrix satisfying and , the real-valued function
has derivative at , where is the matrix exponential. The predicate itself does not require to be unitary or to have determinant . For , all matrices and traces are empty, and the predicate holds for the unique possible matrices.
QAlgorithms.Papers.Independent.Advance50.P38.IsSmoothHilbertEmbedding
Let be a real normed vector space, let be a topological space equipped with a charted-space structure modeled on , let be a real inner product space, and let be a function. This property is the conjunction of four requirements: is infinitely differentiable in the manifold sense using these charts and the standard chart structure on ; is injective; for every subset ,
and, for every , the manifold differential is injective. Completeness of and a separate smooth-manifold assumption on are not among this definition’s hypotheses.
QAlgorithms.Papers.Independent.Advance50.P38.IsSpecialSkew
For any finite type , equipped with a finite enumeration, and any complex square matrix indexed by , this predicate means that both
where is the conjugate transpose. If is empty, both conditions hold for its unique square matrix.
QAlgorithms.Papers.Independent.Advance50.P38.LocalQubitIndex
For every natural number , this abbreviates the set of all functions from to , equivalently all length- strings with entries or . When , this set contains exactly one element, the empty function.
QAlgorithms.Papers.Independent.Advance50.P38.basisProjection
For all natural numbers , every indexed family of complex matrices, and every complex matrix , this defines
where denotes conjugate transpose and each coefficient acts by real scalar multiplication. No independence, spanning, or orthonormality condition on is required. When , the sum is the zero matrix; is also allowed.
QAlgorithms.Papers.Independent.Advance50.P38.cSpectralSq
For any natural numbers , including zero, and arbitrary complex matrices , define
where ranges over complex unitary matrices and over complex unitary matrices, without determinant restrictions. The supremum is taken in the real numbers. No nonzero or normalization assumptions are imposed on ; if either dimension is zero, every displayed trace is zero and the defined value is .
QAlgorithms.Papers.Independent.Advance50.P38.centralizerAlgebra
For any natural number and any complex matrix , the defined set consists exactly of complex matrices such that
where denotes conjugate transpose and multiplication is ordinary matrix multiplication. No trace condition is imposed on , and no additional condition is imposed on . The case is included; in that case the unique empty matrix satisfies both conditions.
QAlgorithms.Papers.Independent.Advance50.P38.centralizerMatrix
For every natural number and every complex matrix , this defines the complex matrix indexed by pairs in to be
where is the Kronecker product and is the transpose without complex conjugation. Its entry at row and column is . The definition includes , when the indexing set is empty.
QAlgorithms.Papers.Independent.Advance50.P38.colVec
For any natural numbers and complex matrix , define a complex-valued function on by
Thus the function is indexed by the column index followed by the row index. If or , its domain is empty.
QAlgorithms.Papers.Independent.Advance50.P38.comm
For any finite type , equipped with a finite enumeration, and any complex square matrices indexed by , this defines the matrix , with entries
The index type may be empty, in which case this is the unique empty square matrix.
QAlgorithms.Papers.Independent.Advance50.P38.embeddedRestriction
For arbitrary types and functions , , and , suppose a witness is given that, for every , there exists such that . This defines a function by using classical choice to select such a for each . No topology, smoothness, or injectivity is assumed, and the required need not be unique; an empty domain is allowed.
QAlgorithms.Papers.Independent.Advance50.P38.frobSq
For any finite types and , equipped with finite enumerations, and any complex matrix with rows indexed by and columns indexed by , this defines
where . If either index type is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P38.hsOrthogonal
For any finite type , equipped with a finite enumeration, and any set of complex square matrices indexed by , this defines the set
where ranges over all complex square matrices indexed by , and the dagger denotes conjugate transpose. No subspace assumption is imposed on . If is empty, this set contains every such matrix; if is empty, it contains the unique empty square matrix for every .
QAlgorithms.Papers.Independent.Advance50.P38.lineCosSq
For any natural number , including , and arbitrary complex matrices , define
where denotes conjugate transpose. There is no unitarity assumption on or nonzero assumption on . Division by zero is defined to give , so this value is if either or is zero, including when .
QAlgorithms.Papers.Independent.Advance50.P38.localAlgebra
For every natural number , this defines the real linear subspace of complex matrices indexed by length- strings over consisting of all real linear combinations of the matrices , for and , where
Here is for equal indices and otherwise, and empty products equal . When , the generating family is empty and this subspace is .
QAlgorithms.Papers.Independent.Advance50.P38.localGenerator
For every natural number , every position , and every , this defines a complex matrix whose rows and columns are indexed by strings , with entries
where if and otherwise, and an empty product equals . For , there is no admissible position .
QAlgorithms.Papers.Independent.Advance50.P38.localProjection
For every natural number and every complex matrix indexed by length- strings over , this defines
where denotes conjugate transpose, all displayed coefficients act by real scalar multiplication, and
Here is for equal indices and otherwise, and empty products equal . When , the outer sum is empty and .
QAlgorithms.Papers.Independent.Advance50.P38.matrixCarrier
For every natural number , including , and every subgroup of the multiplicative group of units of the complex matrix ring, this defines the set
Here a unit is a matrix equipped with a two-sided multiplicative inverse. For , the defined set consists of the unique empty square matrix.
QAlgorithms.Papers.Independent.Advance50.P38.matrixLieSet
For every natural number and subgroup of the group of invertible complex matrices, this defines the set
Here is the matrix exponential and uses real scalar multiplication. The definition includes , in which case the unique empty matrix belongs to this set.
QAlgorithms.Papers.Independent.Advance50.P38.metricRepresentative
For any type equipped with a distinguished element , and any functions and , this definition returns a classically chosen element satisfying
if such an element exists, and returns if no such element exists. No vector-space structure, linearity, symmetry, positivity, continuity, or uniqueness is assumed; when several elements satisfy the equation, the definition chooses one without specifying which.
QAlgorithms.Papers.Independent.Advance50.P38.numericalRadius
For every natural number and every pair of complex matrices , this defines the real number
where consists of unitary complex matrices with determinant , denotes conjugate transpose, and the absolute value is the complex modulus. The definition includes zero matrices and ; for , all traces in the set are , so the value is .
QAlgorithms.Papers.Independent.Advance50.P38.orbitEulerStep
For every natural number , complex matrices , and real number , put , where denotes conjugate transpose. This defines the complex matrix
There are no Hermitian, unitary, or sign assumptions on these inputs; is allowed, and gives the matrix with empty indexing set.
QAlgorithms.Papers.Independent.Advance50.P38.pureProductProjectors
For any natural number and any family of natural dimensions for , let be the set of tuples with . The defined set consists exactly of complex matrices indexed by for which there exists a family of complex vectors satisfying
For , this set contains exactly the one-by-one matrix with entry . If some , the normalization requirement is impossible and the defined set is empty.
QAlgorithms.Papers.Independent.Advance50.P38.pureStateTransfer
For any finite type , equipped with a finite enumeration, any functions , and any complex square matrix indexed by , this defines
where is the conjugate transpose. Neither vector is required to be normalized or nonzero, and is not required to be unitary. If either vector is zero, or if is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P38.rankOneMatrix
For any type , with no finiteness assumption, and any function , this defines the complex square matrix whose entries are
No normalization or nonzero condition is imposed on ; in particular, gives the zero matrix. An empty index type gives the unique empty square matrix.
QAlgorithms.Papers.Independent.Advance50.P38.realHSPairing
For any finite types and , equipped with finite enumerations, and any complex matrices with rows indexed by and columns indexed by , this defines the real number
where is the conjugate transpose of . Either index type may be empty; in either case the value is .
QAlgorithms.Papers.Independent.Advance50.P38.realTraceOverlap
For any finite type , equipped with a finite enumeration, and any complex square matrices indexed by , this defines the real number
where the dagger denotes conjugate transpose. There are no unitarity, Hermitian, or normalization assumptions on these matrices. The index type may be empty, in which case the value is .
QAlgorithms.Papers.Independent.Advance50.P38.rectangularSigma
For any natural numbers and any real-valued function on , define the complex matrix by
The real values are regarded as complex numbers. No nonnegativity or ordering assumption on is imposed. If either dimension is zero, the matrix has no entries.
QAlgorithms.Papers.Independent.Advance50.P38.riemannianGradient
Let be a real normed vector space, and let be a topological space equipped with a charted-space structure modeled on that makes it a smooth real manifold. Given a smooth Riemannian metric on its tangent bundle, any function , and any , this definition returns a classically chosen tangent vector satisfying
if such a vector exists, and returns the zero tangent vector otherwise. Here is the manifold derivative supplied by the total derivative operation, which returns the zero linear map when is not differentiable at . The definition imposes no smoothness or differentiability assumption on , and no finite-dimensionality, Hausdorffness, or second-countability assumption on or its model space.
QAlgorithms.Papers.Independent.Advance50.P38.skew
For any type , with no finiteness assumption, and any complex square matrix indexed by , this defines
where is the conjugate transpose. An empty index type is allowed and gives the unique empty square matrix.
QAlgorithms.Papers.Independent.Advance50.P38.skewPauli
For each index , this defines a complex matrix , with rows and columns ordered , by
where .
QAlgorithms.Papers.Independent.Advance50.P38.svdOptimizer
For any natural numbers , complex matrices , and supplied decompositions and , where each is unitary of size , each is unitary of size , each is a nonnegative nonincreasing real list of length , and when and is zero otherwise, define
Here the arguments denote the complete supplied decompositions, the bar is entrywise complex conjugation, is transpose, is conjugate transpose, and is the Kronecker product. The result is indexed in both rows and columns by pairs with , . No determinant-one condition is required; zero dimensions are allowed and give an empty matrix.
QAlgorithms.Papers.Independent.Advance50.P38.tensorProduct
For any natural number , any family of natural dimensions for , and any family of complex vectors , the defined tensor product is the complex vector indexed by tuples with , whose coordinate is
No normalization or positivity of the dimensions is required. For , the sole coordinate, indexed by the empty tuple, is the empty product ; if some dimension is zero, there are no coordinates.
QAlgorithms.Papers.Independent.Advance50.P38.tensorSeed
For any natural number and any family of natural dimensions for , the defined seed is the complex vector indexed by tuples with , given by
No positivity of the dimensions is assumed. When , the condition is vacuous and the coordinate at the empty tuple is ; if some , the vector has no coordinates.
QAlgorithms.Papers.Independent.Advance50.P38.tensorUnitary
For any natural number , any family of natural dimensions for , and any family of complex special unitary matrices, the defined matrix is indexed in both rows and columns by tuples with , and has entries
Thus the definition gives the tensor product of the supplied matrices through this entry formula. Zero dimensions are allowed: if some , the row and column index set is empty. For , it is a one-by-one matrix whose sole entry is the empty product .
QAlgorithms.Papers.Independent.Advance50.P38.unitTensorFactors
For any natural number , any family of natural dimensions for , and any family of complex vectors , the defined predicate holds exactly when
When , this condition is vacuous. If any , the corresponding sum is , so the predicate cannot hold.
QAlgorithms.Papers.Independent.Advance50.P38.unitaryAscentStep
For any natural number , including , arbitrary complex matrices , and any real number , put and . Define
using the matrix exponential and conjugate transpose . No unitarity assumption on or sign restriction on is part of this definition. For , the result is the unique empty matrix.
QAlgorithms.Papers.Independent.Advance50.P38.unitaryGradientField
For any natural number , including , and arbitrary complex matrices , put and . The defined matrix is
Here denotes conjugate transpose; no unitarity, trace, or nonzero assumptions are imposed on the inputs. For , the result is the unique empty matrix.
QAlgorithms.Papers.Independent.Advance50.P38.vInner
For any finite type , equipped with a finite enumeration, and any functions , this defines the complex number
No normalization is required. If is empty, the sum is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.