Definitions for Theory of Quantum Circuits with Abelian Symmetries
DefinitionQAlgorithms_Papers_Independent_Intake100_P83The objects the formalized statements of Theory of Quantum Circuits with Abelian Symmetries (arXiv:2302.12466) are stated in. Each was checked against the paper by a blind read-back and a moderator.
WordsIsOnsite: PDF p.6: the diagonal entries are unit-modulus characters of the same group.productCharacter: PDF pp.4,6: the character of an actual product basis vector, including the empty product.productSymmetryMatrix: PDF p.4: the actual system representation u(g) tensor n in the chosen product basis.charges: PDF p.20: only characters actually occurring in this tensor power are counted.chargeCount: PDF p.20: the number of distinct occurring characters, not the number of basis strings.embedOnSites: PDF p.4: embedding on any ordered list of distinct named sites, with identity outside it.IsSupportedOnAtMost: PDF p.4: acts on at most k sites; zero-site scalar operators are allowed.CommutesWithSymmetry: PDF p.4: symmetry means commutation with the specified tensor-power action at every g.finiteGateProducts: PDF p.4: exact finite products in temporal order; the empty word gives identity.symmetricLocalGroup: PDF p.4: the actual group generated by individually invariant local unitary gates.derived: PDF pp.5,19: the derived subgroup, generated by actual multiplicative commutators.symmetricCircuitCommutant: PDF p.6 Eq.(6): the full complex operator commutant.blockPreservingUnitaries: PDF pp.5,6: block-diagonality for a relation on the physical product basis.blockSpecial: PDF pp.5,6: determinant one independently on every whole physical block. Representatives may repeat a block; each determinant is taken on its full support.sameCharge: PDF p.6: equal charge means equality of complete character functions on all G.SemiUniversal: PDF p.5 Eq.(5): every independent charge-block special unitary is realizable.NoExtra: PDF p.6 Eq.(6), including the fixed second equality with the representation span.CommDimension: PDF p.6 Eq.(7): dimension of the complex commutant.basisPath: PDF pp.7,12: a finite path with both endpoints, allowing a one-vertex path.TransitiveCharges: PDF p.7 Theorem 2 prime, condition 3.component: PDF p.12 Eq.(28): canonical joint-eigenspace relation of the actual commutant. This is defined from the generated group, not from the desired basis paths.componentSpace: PDF p.12: the full physical span of one commutant-defined basis block.InvariantSpace: PDF p.12: invariance under every actually generated unitary.ComponentDecomposition: PDF pp.6,12: completeness, orthogonality, charge refinement and actual irreducibility.reservoirLength: PDF p.7 Eq.(13): the least positive reservoir length attaining the n-site charge count. For n positive the defining set contains n; no default infimum is used in a theorem.leftRegularPermutationMatrix: PDF p.7: left regular action, |h> maps to |g h>.IsRegularOnsiteRepresentation: PDF p.7: the chosen diagonal representation is unitarily equivalent to the regular one.traceCharacter: PDF pp.7,18: the actual trace character of one qudit.localChargeSpan: PDF pp.19-20: real span of the complete functions r^(n-k) f_mu on all G.lieSpace: PDF p.19: the actual Lie algebra, characterized by one-parameter subgroups. Its real linear span is used, never a freely supplied Lie-algebra dimension.groupDimension: PDF p.19: real Lie dimension of the actual generated subgroup.CompactLie: PDF p.18: a compact finite-dimensional real Lie group, with its actual topology.cyclicPhases: PDF pp.5,8: the specified Z_p qubit representation, on its actual residues. Only the values are needed to define commutation; no abstract charge labels are supplied.excitationPhases: PDF p.7: diag(1,z) for z on the unit circle, equivalent for invariance to z rotations.residueCharge: PDF p.8: total Z_p charge is excitation number modulo p.basisMatrixUnit: PDF p.13: the dyad |r><s| on the complete physical Hilbert space.twoX: PDF p.13: the two-level X operator, zero on every other basis vector.twoY: PDF p.13: the paper's Y has +i on |r><s|, hence is minus the usual ordered Pauli Y.twoZ: PDF p.13: Z = (i/2)[X,Y] = |r><r| - |s><s|.positiveImaginaryEvolution: PDF pp.8,13: the source's positive-sign exponential exp(i theta H).RedistributionTransition: PDF p.8: a redistribution dyad on at most k qudits, with its actual local basis labels.transitionOps: PDF p.8 Eq.(18): allowed embeddings of the Hermitian partial swaps, not permutation swaps.Redistributes: PDF p.8: R is invariant and acts transitively at the stated k-site scale.czFamily: PDF pp.8,14: all named-site two-qudit controlled phases from Eq.(37).phaseFamily: PDF p.8: the fixed pi/2 phase on each on-site basis vector, on every site.synthesisFamily: PDF p.8 Corollary 5: exactly the three stated gate families.liftOneQubitMatrix: PDF p.9: a one-qubit matrix expressed on the one-site register, without changing bit order.twoSite: PDF p.9: a two-qubit matrix on the first and second named local sites.sFamily: PDF pp.8-9: S on every named site, reusing the accepted phaseS matrix.standardCZFamily: PDF p.9: the CZ gate on each pair of distinct sites.rotationFamily: PDF p.9: continuous rotations of H on every embedding of its local sites.exchangeHamiltonian: PDF p.9 Eq.(20): the full XX+YY generator, retaining the source's angular convention.excitationFamily: PDF p.9: the explicit U(1) synthesis family, including all four gates of Eq.(19).cyclicSynthesisGates: PDF p.9: add the simultaneous flip of p excitations, on any p named sites.parityFamily: PDF p.9 Corollary 6: XX rotations, S, and all four controlled phases of Eq.(19).DefiniteCharge: PDF p.9: an arbitrary normalized on-site state supported in one actually occurring charge.appendAncilla: PDF pp.9-10: system tensor ancilla, the ancilla is the final wire.ImplementsWithAncilla: PDF pp.9-10: exact returned-ancilla implementation, uniformly for every system vector.divideByOnsiteCharacter: PDF p.20: divide by an actually occurring on-site character; invariant operators are unchanged.characterProducts: PDF p.20: pointwise products of two finite sets of complete characters.parityZ: PDF p.9 Eq.(22): tensor-product Pauli Z, with its standard computational-basis sign.parityDet: PDF p.9 Eq.(23): determinant on the entire even or odd physical sector.controlGroup: PDF pp.4,11: exact control by finite concatenations of local symmetric Hamiltonian pulses.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
/-!
# Theory of quantum circuits with Abelian symmetries
Source: I. Marvian, arXiv:2302.12466v3. All page numbers below are PDF pages.
A finite nonempty alphabet is the chosen orthonormal on-site basis; its cardinality is d.
For alphabet Bool the register is definitionally the accepted QAlgorithms.Qubits register.
The phase functions specify the actual diagonal on-site representation; system actions are
its tensor powers. No closure is taken in the finite-product synthesis definitions.
-/
noncomputable section
open scoped BigOperators ComplexConjugate Matrix Kronecker Manifold ContDiff
attribute [local instance] Classical.propDecidable
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
namespace QAlgorithms.Papers.Independent.Intake100.P83
abbrev Words (A : Type*) (n : ℕ) := Fin n → A
variable {A G : Type*} [Fintype A] [DecidableEq A]
/-- PDF p.6: the diagonal entries are unit-modulus characters of the same group. -/
def IsOnsite [Monoid G] (chi : A → G → ℂ) : Prop :=
∀ a, chi a 1 = 1 ∧ (∀ g h, chi a (g * h) = chi a g * chi a h) ∧
∀ g, ‖chi a g‖ = 1
/-- PDF pp.4,6: the character of an actual product basis vector, including the empty product. -/
def productCharacter (chi : A → G → ℂ) {n : ℕ} (r : Words A n) : G → ℂ :=
fun g => ∏ j, chi (r j) g
/-- PDF p.4: the actual system representation u(g) tensor n in the chosen product basis. -/
def productSymmetryMatrix (chi : A → G → ℂ) (n : ℕ) (g : G) : Op (Words A n) :=
Matrix.diagonal fun r => productCharacter chi r g
/-- PDF p.20: only characters actually occurring in this tensor power are counted. -/
def charges (chi : A → G → ℂ) (n : ℕ) : Finset (G → ℂ) := by
classical
exact Finset.univ.image (fun r : Words A n => productCharacter chi r)
/-- PDF p.20: the number of distinct occurring characters, not the number of basis strings. -/
def chargeCount (chi : A → G → ℂ) (n : ℕ) : ℕ := (charges chi n).card
/-- PDF p.4: embedding on any ordered list of distinct named sites, with identity outside it. -/
def embedOnSites {l n : ℕ} (f : Fin l ↪ Fin n) (B : Op (Words A l)) : Op (Words A n) := by
classical
exact fun r s =>
if ∀ j, j ∉ Set.range f → r j = s j then B (r ∘ f) (s ∘ f) else 0
/-- PDF p.4: acts on at most k sites; zero-site scalar operators are allowed. -/
def IsSupportedOnAtMost {n : ℕ} (k : ℕ) (B : Op (Words A n)) : Prop :=
∃ l, l ≤ k ∧ ∃ f : Fin l ↪ Fin n, ∃ C : Op (Words A l), B = embedOnSites f C
/-- PDF p.4: symmetry means commutation with the specified tensor-power action at every g. -/
def CommutesWithSymmetry (chi : A → G → ℂ) {n : ℕ} (B : Op (Words A n)) : Prop :=
∀ g, B * productSymmetryMatrix chi n g = productSymmetryMatrix chi n g * B
/-- PDF p.4: exact finite products in temporal order; the empty word gives identity. -/
def finiteGateProducts {n : ℕ} (S : Set (Op (Words A n))) : Set (Op (Words A n)) :=
{B | ∃ L : List (Op (Words A n)), (∀ C ∈ L, C ∈ S) ∧ L.reverse.prod = B}
/-- PDF p.4: the actual group generated by individually invariant local unitary gates. -/
def symmetricLocalGroup (chi : A → G → ℂ) (n k : ℕ) : Set (Op (Words A n)) :=
finiteGateProducts {B | B ∈ Matrix.unitaryGroup (Words A n) ℂ ∧ IsSupportedOnAtMost k B ∧ CommutesWithSymmetry chi B}
/-- PDF pp.5,19: the derived subgroup, generated by actual multiplicative commutators. -/
def derived {n : ℕ} (V : Set (Op (Words A n))) : Set (Op (Words A n)) :=
finiteGateProducts {C | ∃ U ∈ V, ∃ W ∈ V, C = U * W * U.conjTranspose * W.conjTranspose}
/-- PDF p.6 Eq.(6): the full complex operator commutant. -/
def symmetricCircuitCommutant {n : ℕ} (V : Set (Op (Words A n))) : Submodule ℂ (Op (Words A n)) where
carrier := {B | ∀ U ∈ V, B * U = U * B}
zero_mem' := by simp
add_mem' := by
intro B C hB hC U hU
simp only [Matrix.add_mul, Matrix.mul_add, hB U hU, hC U hU]
smul_mem' := by
intro z B hB U hU
simp only [Matrix.smul_mul, Matrix.mul_smul, hB U hU]
/-- PDF pp.5,6: block-diagonality for a relation on the physical product basis. -/
def blockPreservingUnitaries {n : ℕ} (R : Words A n → Words A n → Prop) : Set (Op (Words A n)) :=
{U | U ∈ Matrix.unitaryGroup (Words A n) ℂ ∧ ∀ r s, ¬ R r s → U r s = 0}
/-- PDF pp.5,6: determinant one independently on every whole physical block.
Representatives may repeat a block; each determinant is taken on its full support. -/
def blockSpecial {n : ℕ} (R : Words A n → Words A n → Prop) : Set (Op (Words A n)) := by
classical
exact {U | U ∈ blockPreservingUnitaries R ∧ ∀ r,
Matrix.det (U.submatrix (fun s : {s // R r s} => s.val)
(fun s : {s // R r s} => s.val)) = 1}
/-- PDF p.6: equal charge means equality of complete character functions on all G. -/
def sameCharge (chi : A → G → ℂ) (n : ℕ) (r s : Words A n) : Prop :=
productCharacter chi r = productCharacter chi s
/-- PDF p.5 Eq.(5): every independent charge-block special unitary is realizable. -/
def SemiUniversal (chi : A → G → ℂ) (n k : ℕ) : Prop :=
blockSpecial (sameCharge chi n) ⊆ symmetricLocalGroup chi n k
/-- PDF p.6 Eq.(6), including the fixed second equality with the representation span. -/
def NoExtra (chi : A → G → ℂ) (n k : ℕ) : Prop :=
symmetricCircuitCommutant (symmetricLocalGroup chi n k) = symmetricCircuitCommutant (symmetricLocalGroup chi n n) ∧
symmetricCircuitCommutant (symmetricLocalGroup chi n n) = Submodule.span ℂ (Set.range (productSymmetryMatrix chi n))
/-- PDF p.6 Eq.(7): dimension of the complex commutant. -/
def CommDimension (chi : A → G → ℂ) (n k : ℕ) : Prop :=
Module.finrank ℂ (symmetricCircuitCommutant (symmetricLocalGroup chi n k)) = chargeCount chi n
/-- PDF pp.7,12: a finite path with both endpoints, allowing a one-vertex path. -/
def basisPath {n : ℕ} (k : ℕ) (C : Words A n → Prop) (r s : Words A n) : Prop :=
∃ m : ℕ, ∃ v : Fin (m + 1) → Words A n,
v 0 = r ∧ v (Fin.last m) = s ∧ (∀ j, C (v j)) ∧
∀ j : Fin m, hammingDist (v j.castSucc) (v j.succ) ≤ k
/-- PDF p.7 Theorem 2 prime, condition 3. -/
def TransitiveCharges (chi : A → G → ℂ) (n k : ℕ) : Prop :=
∀ r s : Words A n, sameCharge chi n r s →
basisPath k (fun t => sameCharge chi n r t) r s
/-- PDF p.12 Eq.(28): canonical joint-eigenspace relation of the actual commutant.
This is defined from the generated group, not from the desired basis paths. -/
def component (chi : A → G → ℂ) (n k : ℕ) (r s : Words A n) : Prop :=
∀ B ∈ symmetricCircuitCommutant (symmetricLocalGroup chi n k), B r r = B s s
/-- PDF p.12: the full physical span of one commutant-defined basis block. -/
def componentSpace (chi : A → G → ℂ) (n k : ℕ) (r : Words A n) :
Submodule ℂ (EuclideanSpace ℂ (Words A n)) :=
Submodule.span ℂ {v | ∃ s, component chi n k r s ∧ v = QAlgorithms.ket s}
/-- PDF p.12: invariance under every actually generated unitary. -/
def InvariantSpace {n : ℕ} (V : Set (Op (Words A n)))
(S : Submodule ℂ (EuclideanSpace ℂ (Words A n))) : Prop :=
∀ U ∈ V, ∀ v ∈ S, QAlgorithms.act U v ∈ S
/-- PDF pp.6,12: completeness, orthogonality, charge refinement and actual irreducibility. -/
def ComponentDecomposition (chi : A → G → ℂ) (n k : ℕ) : Prop :=
Equivalence (component chi n k) ∧
(⨆ r, componentSpace chi n k r) = ⊤ ∧
(∀ r s, ¬ component chi n k r s →
∀ v ∈ componentSpace chi n k r, ∀ w ∈ componentSpace chi n k s,
inner ℂ v w = 0) ∧
(∀ r s, component chi n k r s → sameCharge chi n r s) ∧
∀ r, componentSpace chi n k r ≠ ⊥ ∧
InvariantSpace (symmetricLocalGroup chi n k) (componentSpace chi n k r) ∧
∀ S : Submodule ℂ (EuclideanSpace ℂ (Words A n)),
S ≤ componentSpace chi n k r → InvariantSpace (symmetricLocalGroup chi n k) S →
S = ⊥ ∨ S = componentSpace chi n k r
/-- PDF p.7 Eq.(13): the least positive reservoir length attaining the n-site charge count.
For n positive the defining set contains n; no default infimum is used in a theorem. -/
def reservoirLength (chi : A → G → ℂ) (n : ℕ) : ℕ :=
sInf {l : ℕ | 0 < l ∧ chargeCount chi l = chargeCount chi n}
/-- PDF p.7: left regular action, |h> maps to |g h>. -/
def leftRegularPermutationMatrix [Group G] [DecidableEq G] (g : G) : Matrix G G ℂ :=
fun h j => if h = g * j then 1 else 0
/-- PDF p.7: the chosen diagonal representation is unitarily equivalent to the regular one. -/
def IsRegularOnsiteRepresentation [Group G] [Fintype G] [DecidableEq G] (chi : A → G → ℂ) : Prop :=
∃ T : Matrix A G ℂ, T * T.conjTranspose = 1 ∧ T.conjTranspose * T = 1 ∧
∀ g, Matrix.diagonal (fun a => chi a g) * T = T * leftRegularPermutationMatrix g
/-- PDF pp.7,18: the actual trace character of one qudit. -/
def traceCharacter (chi : A → G → ℂ) : G → ℂ := fun g => ∑ a, chi a g
/-- PDF pp.19-20: real span of the complete functions r^(n-k) f_mu on all G. -/
def localChargeSpan (chi : A → G → ℂ) (n k : ℕ) : Submodule ℝ (G → ℂ) :=
Submodule.span ℝ {f | ∃ c ∈ charges chi k,
f = fun g => traceCharacter chi g ^ (n - k) * c g}
/-- PDF p.19: the actual Lie algebra, characterized by one-parameter subgroups.
Its real linear span is used, never a freely supplied Lie-algebra dimension. -/
def lieSpace {n : ℕ} (V : Set (Op (Words A n))) : Submodule ℝ (Op (Words A n)) :=
Submodule.span ℝ {B | B.conjTranspose = -B ∧
∀ t : ℝ, NormedSpace.exp (t • B) ∈ V}
/-- PDF p.19: real Lie dimension of the actual generated subgroup. -/
def groupDimension {n : ℕ} (V : Set (Op (Words A n))) : ℕ := Module.finrank ℝ (lieSpace V)
/-- PDF p.18: a compact finite-dimensional real Lie group, with its actual topology. -/
def CompactLie (G : Type*) [Group G] [TopologicalSpace G] : Prop :=
CompactSpace G ∧ T2Space G ∧
∃ m : ℕ, ∃ atlas : ChartedSpace (EuclideanSpace ℝ (Fin m)) G,
letI := atlas
IsManifold (𝓘(ℝ, EuclideanSpace ℝ (Fin m))) ∞ G ∧
LieGroup (𝓘(ℝ, EuclideanSpace ℝ (Fin m))) ∞ G
/-- PDF pp.5,8: the specified Z_p qubit representation, on its actual residues.
Only the values are needed to define commutation; no abstract charge labels are supplied. -/
def cyclicPhases (p : ℕ) : Bool → ZMod p → ℂ :=
fun b a => if b then Complex.exp (Complex.I * (2 * Real.pi * (a.val : ℝ) / p)) else 1
/-- PDF p.7: diag(1,z) for z on the unit circle, equivalent for invariance to z rotations. -/
def excitationPhases : Bool → Circle → ℂ := fun b z => if b then (z : ℂ) else 1
/-- PDF p.8: total Z_p charge is excitation number modulo p. -/
def residueCharge (p : ℕ) {n : ℕ} (r : Words Bool n) : ZMod p :=
(QAlgorithms.hammingWeight r : ZMod p)
/-- PDF p.13: the dyad |r><s| on the complete physical Hilbert space. -/
def basisMatrixUnit {n : ℕ} (r s : Words A n) : Op (Words A n) := by
classical
exact fun a b => if a = r ∧ b = s then 1 else 0
/-- PDF p.13: the two-level X operator, zero on every other basis vector. -/
def twoX {n : ℕ} (r s : Words A n) : Op (Words A n) := basisMatrixUnit r s + basisMatrixUnit s r
/-- PDF p.13: the paper's Y has +i on |r><s|, hence is minus the usual ordered Pauli Y. -/
def twoY {n : ℕ} (r s : Words A n) : Op (Words A n) := Complex.I • (basisMatrixUnit r s - basisMatrixUnit s r)
/-- PDF p.13: Z = (i/2)[X,Y] = |r><r| - |s><s|. -/
def twoZ {n : ℕ} (r s : Words A n) : Op (Words A n) := basisMatrixUnit r r - basisMatrixUnit s s
/-- PDF pp.8,13: the source's positive-sign exponential exp(i theta H). -/
def positiveImaginaryEvolution {n : ℕ} (H : Op (Words A n)) (theta : ℝ) : Op (Words A n) :=
NormedSpace.exp ((Complex.I * (theta : ℂ)) • H)
/-- PDF p.8: a redistribution dyad on at most k qudits, with its actual local basis labels. -/
structure RedistributionTransition (A : Type*) (k : ℕ) where
arity : ℕ
bound : arity ≤ k
left : Words A arity
right : Words A arity
/-- PDF p.8 Eq.(18): allowed embeddings of the Hermitian partial swaps, not permutation swaps. -/
def transitionOps {k : ℕ} (R : Set (RedistributionTransition A k)) (n : ℕ) : Set (Op (Words A n)) :=
{B | ∃ t ∈ R, ∃ f : Fin t.arity ↪ Fin n, B = embedOnSites f (twoX t.left t.right)}
/-- PDF p.8: R is invariant and acts transitively at the stated k-site scale. -/
def Redistributes (chi : A → G → ℂ) (k : ℕ) (R : Set (RedistributionTransition A k)) : Prop :=
(∀ t ∈ R, CommutesWithSymmetry chi (twoX t.left t.right)) ∧
∀ r s : Words A k, sameCharge chi k r s →
∃ L : List (Op (Words A k)), (∀ B ∈ L, B ∈ transitionOps R k) ∧
QAlgorithms.act L.reverse.prod (QAlgorithms.ket r) = QAlgorithms.ket s
/-- PDF pp.8,14: all named-site two-qudit controlled phases from Eq.(37). -/
def czFamily (A : Type*) [Fintype A] [DecidableEq A] (n : ℕ) : Set (Op (Words A n)) :=
{B | ∃ f : Fin 2 ↪ Fin n, ∃ r : Words A 2,
B = embedOnSites f (1 - (2 : ℂ) • basisMatrixUnit r r)}
/-- PDF p.8: the fixed pi/2 phase on each on-site basis vector, on every site. -/
def phaseFamily (A : Type*) [Fintype A] [DecidableEq A] (n : ℕ) : Set (Op (Words A n)) :=
{B | ∃ f : Fin 1 ↪ Fin n, ∃ a : A,
B = embedOnSites f (positiveImaginaryEvolution (basisMatrixUnit (fun _ => a) (fun _ => a)) (Real.pi / 2))}
/-- PDF p.8 Corollary 5: exactly the three stated gate families. -/
def synthesisFamily {k : ℕ} (R : Set (RedistributionTransition A k)) (n : ℕ) : Set (Op (Words A n)) :=
phaseFamily A n ∪ czFamily A n ∪
{B | ∃ t ∈ R, ∃ f : Fin t.arity ↪ Fin n, ∃ theta ∈ Set.Ico (0 : ℝ) (2 * Real.pi),
B = embedOnSites f (positiveImaginaryEvolution (twoX t.left t.right) theta)}
/-- PDF p.9: a one-qubit matrix expressed on the one-site register, without changing bit order. -/
def liftOneQubitMatrix (B : Matrix Bool Bool ℂ) : Op (Words Bool 1) := fun r s => B (r 0) (s 0)
/-- PDF p.9: a two-qubit matrix on the first and second named local sites. -/
def twoSite (B : Matrix (Bool × Bool) (Bool × Bool) ℂ) : Op (Words Bool 2) :=
fun r s => B (r 0, r 1) (s 0, s 1)
/-- PDF pp.8-9: S on every named site, reusing the accepted phaseS matrix. -/
def sFamily (n : ℕ) : Set (Op (Words Bool n)) :=
{B | ∃ f : Fin 1 ↪ Fin n, B = embedOnSites f (liftOneQubitMatrix QAlgorithms.phaseS)}
/-- PDF p.9: the CZ gate on each pair of distinct sites. -/
def standardCZFamily (n : ℕ) : Set (Op (Words Bool n)) :=
{B | ∃ f : Fin 2 ↪ Fin n, B = embedOnSites f
(1 - (2 : ℂ) • basisMatrixUnit (fun _ => true) (fun _ => true))}
/-- PDF p.9: continuous rotations of H on every embedding of its local sites. -/
def rotationFamily {l : ℕ} (H : Op (Words Bool l)) (n : ℕ) : Set (Op (Words Bool n)) :=
{B | ∃ f : Fin l ↪ Fin n, ∃ theta ∈ Set.Ico (0 : ℝ) (2 * Real.pi),
B = embedOnSites f (positiveImaginaryEvolution H theta)}
/-- PDF p.9 Eq.(20): the full XX+YY generator, retaining the source's angular convention. -/
def exchangeHamiltonian : Op (Words Bool 2) :=
twoSite (QAlgorithms.pauliX ⊗ₖ QAlgorithms.pauliX + QAlgorithms.pauliY ⊗ₖ QAlgorithms.pauliY)
/-- PDF p.9: the explicit U(1) synthesis family, including all four gates of Eq.(19). -/
def excitationFamily (n : ℕ) : Set (Op (Words Bool n)) :=
sFamily n ∪ czFamily Bool n ∪ rotationFamily exchangeHamiltonian n
/-- PDF p.9: add the simultaneous flip of p excitations, on any p named sites. -/
def cyclicSynthesisGates (p n : ℕ) : Set (Op (Words Bool n)) :=
excitationFamily n ∪ rotationFamily (twoX (fun _ : Fin p => false) (fun _ => true)) n
/-- PDF p.9 Corollary 6: XX rotations, S, and all four controlled phases of Eq.(19). -/
def parityFamily (n : ℕ) : Set (Op (Words Bool n)) :=
sFamily n ∪ czFamily Bool n ∪
rotationFamily (twoSite (QAlgorithms.pauliX ⊗ₖ QAlgorithms.pauliX)) n
/-- PDF p.9: an arbitrary normalized on-site state supported in one actually occurring charge. -/
def DefiniteCharge (chi : A → G → ℂ) (a : EuclideanSpace ℂ A) : Prop :=
∃ j : A, ∀ i, a i ≠ 0 → chi i = chi j
/-- PDF pp.9-10: system tensor ancilla, the ancilla is the final wire. -/
def appendAncilla {n : ℕ} (v : EuclideanSpace ℂ (Words A n)) (a : EuclideanSpace ℂ A) :
EuclideanSpace ℂ (Words A (n + 1)) :=
WithLp.toLp 2 (fun r => v (fun j => r j.castSucc) * a (r (Fin.last n)))
/-- PDF pp.9-10: exact returned-ancilla implementation, uniformly for every system vector. -/
def ImplementsWithAncilla (chi : A → G → ℂ) (n k : ℕ)
(a : EuclideanSpace ℂ A) (V : Op (Words A n)) : Prop :=
∃ W ∈ symmetricLocalGroup chi (n + 1) k, ∀ v : EuclideanSpace ℂ (Words A n),
QAlgorithms.act W (appendAncilla v a) = appendAncilla (QAlgorithms.act V v) a
/-- PDF p.20: divide by an actually occurring on-site character; invariant operators are unchanged. -/
def divideByOnsiteCharacter (chi : A → G → ℂ) (a : A) : A → G → ℂ :=
fun b g => chi b g / chi a g
/-- PDF p.20: pointwise products of two finite sets of complete characters. -/
def characterProducts (S T : Finset (G → ℂ)) : Finset (G → ℂ) := by
classical
exact (S.product T).image (fun p => fun g => p.1 g * p.2 g)
/-! Sanity examples pin non-tautological boundaries and the finite-product convention.
They are definition checks, not proofs of the paper's targets. -/
example {n : ℕ} (S : Set (Op (Words A n))) : (1 : Op (Words A n)) ∈ finiteGateProducts S := by
exact ⟨[], by simp, by simp⟩
example (chi : A → G → ℂ) (r : Words A 0) (g : G) : productCharacter chi r g = 1 := by
simp [productCharacter]
example {n : ℕ} (r : Words A n) : hammingDist r r = 0 := by
exact hammingDist_self r
example {n : ℕ} (k : ℕ) (r : Words A n) : basisPath k (fun _ => True) r r := by
refine ⟨0, fun _ => r, rfl, rfl, ?_, ?_⟩
· intro j; trivial
· intro j; exact Fin.elim0 j
example {n : ℕ} (r s : Words A n) : basisMatrixUnit r s r s = 1 := by
simp [basisMatrixUnit]
example [Group G] [DecidableEq G] (g h : G) : leftRegularPermutationMatrix g (g * h) h = 1 := by
simp [leftRegularPermutationMatrix]
example : liftOneQubitMatrix QAlgorithms.phaseS (fun _ => true) (fun _ => true) = Complex.I := by
simp [liftOneQubitMatrix, QAlgorithms.phaseS]
/-- PDF p.9 Eq.(22): tensor-product Pauli Z, with its standard computational-basis sign. -/
def parityZ (n : ℕ) : Op (Words Bool n) :=
Matrix.diagonal fun r => (-1 : ℂ) ^ QAlgorithms.hammingWeight r
/-- PDF p.9 Eq.(23): determinant on the entire even or odd physical sector. -/
def parityDet {n : ℕ} (V : Op (Words Bool n)) (b : Bool) : ℂ := by
classical
let support := {r : Words Bool n // QAlgorithms.hammingWeight r % 2 = if b then 1 else 0}
exact Matrix.det (V.submatrix (fun r : support => r.val) (fun r : support => r.val))
/-- PDF pp.4,11: exact control by finite concatenations of local symmetric Hamiltonian pulses. -/
def controlGroup (chi : A → G → ℂ) (n k : ℕ) : Set (Op (Words A n)) :=
finiteGateProducts {U | ∃ H : Op (Words A n), H.IsHermitian ∧ IsSupportedOnAtMost k H ∧ CommutesWithSymmetry chi H ∧
∃ theta : ℝ, U = positiveImaginaryEvolution H theta}
end QAlgorithms.Papers.Independent.Intake100.P83
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P83.CommDimension
For a finite alphabet with decidable equality, a type , any function , and natural numbers , put , , and . Let be the set of finite products whose factors are unitary, commute with every , and have the following form: for some natural , injection , and matrix on length- words, when agree outside the image of , and otherwise. This proposition asserts
where the right side counts distinct functions , rather than words with multiplicity. Empty products give the identity, and may be zero; at there is one product function, the constant function . No representation condition on is assumed.
QAlgorithms.Papers.Independent.Intake100.P83.CommutesWithSymmetry
For a finite alphabet with decidable equality, a type , a function , a natural number , and a complex square matrix indexed by length- words, this predicate requires
where is diagonal with . Neither unitarity of nor any condition on is assumed. If is empty, the requirement is vacuous; at , each is the identity.
QAlgorithms.Papers.Independent.Intake100.P83.CompactLie
For a type equipped with a group structure and a topology, this predicate means that is compact and Hausdorff, and that there exist a natural number and a charted-space structure on modeled on the real Euclidean space such that, with that chosen structure and the standard smooth model on , is a smooth manifold and a smooth Lie group. Thus multiplication and inversion must be smooth for the chosen structure. The dimension is permitted, and the definition asserts existence of such a structure without specifying one uniquely.
QAlgorithms.Papers.Independent.Intake100.P83.ComponentDecomposition
For a finite alphabet with decidable equality, a type , any function , and natural numbers , let be the complex Euclidean space indexed by words . Let consist of all finite products of unitary matrices on that each act on at most sites and commute, for every , with the diagonal matrix having entry at . Here acting on at most sites means having the form when agree outside the image of an injection , and otherwise, for some and arbitrary local matrix ; empty products are allowed and equal the identity. Define to mean that for every complex matrix commuting with every member of , and let be the complex span of the coordinate vectors with . The predicate holds exactly when is an equivalence relation, the subspaces together span , vectors from and have zero inner product whenever , and implies equality of the functions and ; moreover, every is nonzero and preserved by every , and every complex linear subspace preserved by every is either or . The parameters may be zero, and no multiplicativity or unit-modulus assumption on is included.
QAlgorithms.Papers.Independent.Intake100.P83.DefiniteCharge
For types , a function , and a complex Euclidean vector indexed by , this property means that there exists such that every with satisfies as functions on , meaning for every . Neither normalization of nor any character property of is required. For the zero vector, the property holds exactly when is nonempty; if is empty, the required does not exist.
QAlgorithms.Papers.Independent.Intake100.P83.ImplementsWithAncilla
For an alphabet , symmetry-label type , function , natural numbers , vector , and complex matrix on length- words, this property asserts the existence of a matrix on length- words that is a finite product , possibly the empty product . Each must be unitary, commute with every diagonal matrix
and have the following form for some , injection , and local complex matrix : its entry at equals if agree outside , and zero otherwise. The required must satisfy for every complex Euclidean vector on length- words, where . No normalization or definite-charge assumption on , unitarity assumption on , or character assumption on is included. Both and are allowed; if , the property holds for every , using .
QAlgorithms.Papers.Independent.Intake100.P83.InvariantSpace
For a finite alphabet , a natural number , any set of complex matrices indexed by , and any complex linear subspace of the Euclidean space , this defines the proposition
No unitarity assumption on or normalization assumption on is imposed. If is empty, the condition is vacuous; the zero subspace and the value are allowed.
QAlgorithms.Papers.Independent.Intake100.P83.IsOnsite
For a type , a monoid , and a function , this predicate requires that, for every ,
There is no continuity assumption. If is empty, all these requirements hold vacuously.
QAlgorithms.Papers.Independent.Intake100.P83.IsRegularOnsiteRepresentation
For a finite alphabet with decidable equality, a finite group with decidable equality, and any function , this predicate means that there exists a complex matrix with rows indexed by and columns indexed by such that , , and, for every ,
Here is the conjugate transpose. The definition includes no separate assumption that the functions are homomorphisms or have unit modulus; if no such exists, the predicate is false.
QAlgorithms.Papers.Independent.Intake100.P83.IsSupportedOnAtMost
For any type , natural numbers , and a complex square matrix indexed by length- words, this predicate means that there exist a natural number , an injection , and a complex square matrix indexed by length- words such that
No unitarity or Hermitian condition is imposed. The choice is allowed; in particular, at , the predicate requires to be a scalar multiple of the identity.
QAlgorithms.Papers.Independent.Intake100.P83.NoExtra
For a finite alphabet with decidable equality, a type , any function , and natural numbers , let and . For each natural , let consist of all finite products of unitary matrices commuting with every , where each factor has, for some , an injection and a matrix on length- words, entries if agree outside the image of , and zero otherwise. Define . The proposition is the conjunction
The span consists of finite complex linear combinations. The parameters may be zero, and the product defining may be empty, yielding the identity. No representation properties of are assumed.
QAlgorithms.Papers.Independent.Intake100.P83.Redistributes
For a finite alphabet , a type , a function , a natural number , and a set of transitions of arity at most , this predicate requires two conditions. First, for every transition , with arity and words , the matrix commutes, for every , with the diagonal matrix whose entry at a length- word is . Second, whenever length- words satisfy for every , there is a finite list such that , where is the coordinate vector at . Each must arise from some transition in , placed on injectively selected sites: its entry at words is the corresponding entry of on their selected coordinates if they agree on all unselected coordinates, and is zero otherwise. The list may be empty, with product , so it already suffices when . The definition does not require to satisfy any character axioms, nor require these transition matrices to be unitary.
QAlgorithms.Papers.Independent.Intake100.P83.RedistributionTransition
For a type and a natural number , a redistribution transition consists of a natural number , a proof that , and two words , designated as its left and right words. No distinctness or charge condition is imposed on these words. The arity may be zero; when , it must be zero, and both words are the unique empty word.
QAlgorithms.Papers.Independent.Intake100.P83.SemiUniversal
For a finite alphabet with decidable equality, a type , any function , and natural numbers , write , , and . This proposition says that every unitary matrix satisfying whenever , and for every , where , can be expressed as for some finite list of matrices . Each must be unitary, must commute with every , and must admit natural , an injection , and a matrix indexed by length- words such that its entry at is when agree outside the image of , and is zero otherwise. Empty lists are allowed and give the identity; may be zero. No onsite-representation condition on is assumed.
QAlgorithms.Papers.Independent.Intake100.P83.TransitiveCharges
For an alphabet with decidable equality, a type , any function , and natural numbers , define for each length- word by . This proposition says that for every two words with , there exist a natural number and words with , , for every , and at most differing coordinates between each consecutive pair. The number may be zero, so a word can be joined to itself without any steps. The values and are allowed, and no representation properties of are assumed.
QAlgorithms.Papers.Independent.Intake100.P83.Words
For any type and natural number , denotes the functions , that is, words of length over . For , there is exactly one word, the empty function, even if is empty.
QAlgorithms.Papers.Independent.Intake100.P83.appendAncilla
For any natural number , alphabet , complex Euclidean vector indexed by length- words over , and complex Euclidean vector indexed by , this defines a vector on length- words by
Neither vector is required to be normalized or nonzero. For , has its single empty-word coordinate, which multiplies each coordinate of .
QAlgorithms.Papers.Independent.Intake100.P83.basisMatrixUnit
For a type , a natural number , and words , this defines the complex matrix , whose rows and columns are indexed by such words, by
The words and need not be distinct. When , there is one empty word, and this is the matrix with entry .
QAlgorithms.Papers.Independent.Intake100.P83.basisPath
For an alphabet with decidable equality, natural numbers , a predicate on length- words, and two such words , this defines the proposition that there exist a natural number and words such that , , every satisfies , and, for each , the number of coordinates on which and differ is at most . The path length is allowed; it requires and , with no adjacency conditions. When , consecutive words must coincide. The value is also included.
QAlgorithms.Papers.Independent.Intake100.P83.blockPreservingUnitaries
For a finite alphabet with decidable equality, a natural number , and an arbitrary relation on the length- words , this defines the set of unitary complex matrices indexed by such that, for every , implies . There is no assumption that is an equivalence relation, reflexive, or symmetric. The value is included, in which case there is one empty word.
QAlgorithms.Papers.Independent.Intake100.P83.blockSpecial
For a finite alphabet , a natural number , and an arbitrary relation on , this defines the set of unitary complex matrices satisfying both whenever , and
Here is the principal submatrix with both indices restricted to . No equivalence-relation properties of are assumed. If is empty, its determinant is the empty determinant , so that particular determinant condition imposes no restriction. The natural number may be zero.
QAlgorithms.Papers.Independent.Intake100.P83.characterProducts
For finite sets of complex-valued functions on a type , this defines the finite set of their pointwise products:
Identical resulting functions occur only once. If either input set is empty, the result is empty. No character, continuity, or group-homomorphism condition is imposed on the functions.
QAlgorithms.Papers.Independent.Intake100.P83.chargeCount
For a finite alphabet , a type , a function , and a natural number , this defines the number of distinct functions of the form
Distinct words producing the same function contribute only once. The count is when , and is when is empty and .
QAlgorithms.Papers.Independent.Intake100.P83.charges
For a finite alphabet , a type , an arbitrary function , and a natural number , this defines the finite set of functions
Repeated functions are included only once, and equality means equality at every . No condition making these functions characters is required. For , the set consists of the constant function ; if is empty and , it is empty.
QAlgorithms.Papers.Independent.Intake100.P83.component
For a finite alphabet with decidable equality, a type , any function , natural numbers , and words , let . Let consist of all finite products whose factors are unitary and commute with every , and where each factor has entries when agree outside the image of some injection , and zero otherwise, for some natural and matrix on length- words. This defines the proposition
The quantified matrices need not be Hermitian or unitary. Empty products are included in , and zero values of are allowed.
QAlgorithms.Papers.Independent.Intake100.P83.componentSpace
For a finite alphabet with decidable equality, a type , any function , natural numbers , and a word , put . Let consist of all finite products of unitary matrices commuting with every , each factor having, for some natural , injection , and matrix on length- words, entries if agree outside the image of , and zero otherwise. This defines the complex linear span in , equipped with its Euclidean inner product, of all coordinate vectors such that every matrix commuting with every has equal diagonal entries at and ; here if and otherwise. Thus the span consists of finite complex linear combinations of exactly those specified coordinate vectors. Empty matrix products give the identity, and may be zero.
QAlgorithms.Papers.Independent.Intake100.P83.controlGroup
For a finite alphabet with decidable equality, a type , an arbitrary function , and natural numbers , this defines the following set of complex matrices on . For , write for the diagonal matrix with entry at a word . A matrix belongs to the defined set exactly when it is a finite product, in reverse list order, of matrices , where each factor may use its own real number and Hermitian matrix , subject to for every , and subject to the following support condition: there exist a natural number , an injection , and a complex matrix on such that
The empty product is included and equals the identity. The definition allows , , and , and imposes no onsite-character condition on .
QAlgorithms.Papers.Independent.Intake100.P83.cyclicPhases
For every natural number , this defines a function on a Boolean and an element of by
For , is the representative in . No positivity assumption on is imposed: when , the domain is , and division by zero is defined as zero, so the function is identically .
QAlgorithms.Papers.Independent.Intake100.P83.cyclicSynthesisGates
For all natural numbers , this defines the union of four sets of matrices on length- Boolean words: single-site diagonal operations with entries ; two-site operations for any two-bit word ; rotations , where ; and rotations
where means , means , and every rotation angle satisfies . Each operation is embedded on an injectively chosen ordered set of sites, with entry when the global words agree outside those sites and zero otherwise. The -site rotation set is empty if . For , the two empty words coincide, so on the one-dimensional empty-word space, and these embeddings give . No primality or positivity assumption on is imposed.
QAlgorithms.Papers.Independent.Intake100.P83.czFamily
For a finite type with decidable equality and a natural number , this defines the set of complex matrices indexed by length- words obtained by choosing two distinct sites, in an ordered injection , and a word , then embedding on those sites. Equivalently, the resulting matrix is diagonal: its entry at a word is if , and otherwise. Here is the matrix with its sole nonzero entry at . For , or for empty , this family is empty.
QAlgorithms.Papers.Independent.Intake100.P83.derived
For a finite alphabet with decidable equality, a natural number , and an arbitrary set of complex square matrices indexed by length- words, this defines the set of finite reversed products , where each factor has the form
and denotes conjugate transpose. The empty product is the identity. The matrices in are not required to be unitary, so the conjugate transposes here are not assumed to be inverses; no closure under limits is taken.
QAlgorithms.Papers.Independent.Intake100.P83.divideByOnsiteCharacter
For types , any function , and any selected , this defines a new function by
No character, unit-modulus, or nonzero-denominator condition is imposed. Complex division is total: whenever , the defined value is for every .
QAlgorithms.Papers.Independent.Intake100.P83.embedOnSites
For any type , natural numbers , an injection , and a complex square matrix indexed by length- words, this defines a matrix indexed by length- words by
The injection requires and specifies the ordering of the selected sites. When , has a single entry, and the resulting matrix is that scalar times the identity.
QAlgorithms.Papers.Independent.Intake100.P83.exchangeHamiltonian
This defines a complex matrix on length-two Boolean words by identifying each word with its ordered pair of bits and using , where
in the order . Explicitly, the matrix has entry from to and in the reverse direction, and every other entry is zero.
QAlgorithms.Papers.Independent.Intake100.P83.excitationFamily
For every natural number , this defines a set of complex matrices on length- Boolean words as the union of three sets: the single-site diagonal operations with entries ; the two-site diagonal operations , where is any of the four two-bit words; and the operations for , where has entry between the two words and in both directions and zero elsewhere. Each local matrix is placed on an injectively chosen ordered set of sites: its global entry at is if agree outside those sites, and zero otherwise. The two-site sets are empty for , and the entire union is empty for .
QAlgorithms.Papers.Independent.Intake100.P83.excitationPhases
This defines a function on a Boolean and an element of the unit circle , with value equal to the underlying complex number when , and equal to when .
QAlgorithms.Papers.Independent.Intake100.P83.finiteGateProducts
For a finite alphabet with decidable equality, a natural number , and any set of complex square matrices indexed by length- words, this defines the set of matrices for which there is a finite list , every entry of which belongs to , such that
The empty list is permitted and has product equal to the identity, so the identity belongs to this set even when is empty. No unitarity, inverse closure, or limiting operation is required.
QAlgorithms.Papers.Independent.Intake100.P83.groupDimension
For a finite alphabet , a natural number , and any set of complex square matrices indexed by length- words in , this defines a natural number: the dimension over of the real linear span of all matrices such that and for every real . The set is not assumed to be a group. If there are no such matrices , this dimension is zero; is included.
QAlgorithms.Papers.Independent.Intake100.P83.leftRegularPermutationMatrix
For any group equipped with decidable equality and any , this defines the complex matrix indexed by whose entries are
No finiteness assumption on is imposed.
QAlgorithms.Papers.Independent.Intake100.P83.lieSpace
For a finite alphabet , a natural number , and any set of complex square matrices indexed by length- words in , this defines the real linear span of all matrices satisfying
Here is the conjugate transpose and is the matrix exponential. No group, closure, or regularity assumption on is made. In particular, every generator requires ; if , the span is zero. The length is allowed and gives a single empty word as the matrix index.
QAlgorithms.Papers.Independent.Intake100.P83.liftOneQubitMatrix
For any complex matrix with Boolean row and column indices, this defines a complex matrix indexed by one-bit words , with entry . Thus it reindexes by one-bit words. No unitarity or Hermiticity assumption is imposed on .
QAlgorithms.Papers.Independent.Intake100.P83.localChargeSpan
For a finite alphabet , a type , any function , and , this is the real linear subspace of all functions spanned by the functions
where ranges over all length- words in , and is truncated natural-number subtraction. Thus need not be at most ; when , the power factor is , even if its base is zero. When , the word product is . If there are no length- words, the generating set is empty and its span is the zero subspace.
QAlgorithms.Papers.Independent.Intake100.P83.parityDet
For every natural number , every complex matrix indexed by Boolean words of length , and every Boolean , this defines the determinant of the principal submatrix indexed by words satisfying when is true and when is false, where counts the true coordinates. No unitarity or preservation of these index sets is assumed for . An empty principal submatrix has determinant ; in particular, for , the true branch gives , while the false branch gives the sole entry of .
QAlgorithms.Papers.Independent.Intake100.P83.parityFamily
For every natural number , this defines the union of the single-site diagonal operations with entries , the two-site diagonal operations for any two-bit word , and the rotations for , where exchanges and . Thus exchanges each two-bit word with the word obtained by flipping both bits. Each local matrix is embedded on injectively chosen ordered sites, giving entry when agree outside those sites and zero otherwise. The two-site sets are empty for , and the entire set is empty for .
QAlgorithms.Papers.Independent.Intake100.P83.parityZ
For every natural number , let the basis labels be Boolean words , and let count the positions at which is true. This defines the complex diagonal matrix whose diagonal entry at is and whose off-diagonal entries are zero. Thus its diagonal entry is on words of even weight and on words of odd weight. For , there is one empty word, and the matrix is the identity.
QAlgorithms.Papers.Independent.Intake100.P83.phaseFamily
For a finite type with decidable equality and a natural number , this defines the set of complex matrices indexed by length- words obtained by choosing a site through an injection and a symbol , then embedding on that site, where projects onto the one-site word with value . Equivalently, the resulting matrix is diagonal, with entry at each word whose selected symbol is , and entry at every other word. For , or for empty , the family is empty.
QAlgorithms.Papers.Independent.Intake100.P83.positiveImaginaryEvolution
For a natural number , a finite alphabet , an arbitrary complex matrix indexed by words , and any real number , this defines the matrix exponential
There is no hypothesis that is Hermitian or that is nonnegative. The definition includes , when the matrix is indexed by the single empty word.
QAlgorithms.Papers.Independent.Intake100.P83.productCharacter
For types , an arbitrary function , a natural number , and a word , this defines the function
No monoid structure on or condition on is required. When , this is the constant function .
QAlgorithms.Papers.Independent.Intake100.P83.productSymmetryMatrix
For an alphabet with decidable equality, a type , a function , a natural number , and , this defines the complex square matrix indexed by length- words whose entries are
No condition on , including unit modulus, is imposed. At , the matrix has one entry, equal to .
QAlgorithms.Papers.Independent.Intake100.P83.reservoirLength
For a finite alphabet , a type , any function , and , define as the number of distinct functions of the form , as ranges over all length- words in . The reservoir length is the least positive integer satisfying , with value if no such positive integer exists. For , the admissible set contains ; for , existence of a positive admissible length is not required. The length-zero product is the constant function , so , including when is empty.
QAlgorithms.Papers.Independent.Intake100.P83.residueCharge
For any natural numbers and any Boolean word of length , this defines the element of obtained by casting the number of positions at which is true into that ring:
The parameters may be zero: for the value is zero, while for the target ring is and the value is the integer Hamming weight without modular reduction.
QAlgorithms.Papers.Independent.Intake100.P83.rotationFamily
For natural numbers and any complex matrix on length- Boolean words, this defines the set of matrices for which there exist an injection and a real angle such that
No Hermitian assumption on is imposed, so the definition does not require these matrices to be unitary. If , the set is empty. The case is included: then has one entry , and the resulting matrices are .
QAlgorithms.Papers.Independent.Intake100.P83.sFamily
For every natural number , this defines the set of complex matrices on length- Boolean words obtained by choosing one site and applying the diagonal matrix with entries on and on at that site. Explicitly, its members are precisely the matrices
for some . For , the set is empty.
QAlgorithms.Papers.Independent.Intake100.P83.sameCharge
For types , any function , a natural number , and words , this defines the proposition that their product functions on are equal:
No multiplicativity, normalization, or unit-modulus condition on is required. When , both products are , so the condition holds for the empty words; when is empty, equality of the functions is vacuous.
QAlgorithms.Papers.Independent.Intake100.P83.standardCZFamily
For every natural number , this defines the set of complex matrices on length- Boolean words obtained by choosing two distinct sites and multiplying a basis word by exactly when both chosen bits are , and by otherwise. All off-diagonal entries are zero. The two sites are specified by an injection from the two-element index set into the sites; consequently, this set is empty when .
QAlgorithms.Papers.Independent.Intake100.P83.symmetricCircuitCommutant
For a finite alphabet , a natural number , and any set of complex matrices indexed by the words , this defines the complex vector subspace
The matrices in need not be unitary. If is empty, the condition is vacuous and this is the entire matrix space. The value is allowed; then consists of the single empty word.
QAlgorithms.Papers.Independent.Intake100.P83.symmetricLocalGroup
For a finite alphabet with decidable equality, a type , a function , and natural numbers , this defines the set of finite reversed products in which every factor is unitary, commutes with every diagonal matrix , and has the following form for some , injection , and matrix :
The number of factors may be zero, giving the identity, and is allowed. No condition on or closure under limits is imposed.
QAlgorithms.Papers.Independent.Intake100.P83.synthesisFamily
For a finite alphabet with decidable equality, natural numbers , and a set of transitions of arity at most , this defines a union of three sets of complex matrices indexed by length- words: matrices that multiply a word by when a chosen site has a chosen symbol and by otherwise; matrices that multiply a word by when two chosen distinct sites have a chosen ordered pair of symbols and by otherwise; and matrices obtained by choosing , an injection from its sites into the sites, and a real angle , then embedding , where are its left and right words and has its sole nonzero entry at . For this embedding, an entry at words is the local matrix entry at if agree outside the selected sites, and is zero otherwise. Zero angles and zero-arity transitions are allowed; a zero-arity transition contributes . Membership is in this union itself, without taking products or a closure.
QAlgorithms.Papers.Independent.Intake100.P83.traceCharacter
For a finite alphabet , a type , and any function , this defines the function
The sum is zero when is empty. No group structure on or character property of is required by this formula.
QAlgorithms.Papers.Independent.Intake100.P83.transitionOps
For a type , natural numbers , and a set of transitions, each consisting of an arity and left and right words of length , this defines the following set of complex matrices indexed by length- words: choose a transition in and an injection ; the resulting matrix has entry
where has a single entry at . Membership requires some such choices. Transitions with admit no injection; a zero-arity transition gives . If is empty, the set is empty.
QAlgorithms.Papers.Independent.Intake100.P83.twoSite
For every complex matrix indexed by pairs of Boolean values, this defines a complex matrix on length-two Boolean words by
Here . No unitarity or other condition on is required.
QAlgorithms.Papers.Independent.Intake100.P83.twoX
For a type , a natural number , and words , this defines the complex matrix , where has entry at row , column , and elsewhere. If , its only nonzero entries are at and . If , it is ; in particular, for , it is the scalar matrix .
QAlgorithms.Papers.Independent.Intake100.P83.twoY
For a type , a natural number , and words , this defines the complex matrix , where has entry at row , column , and elsewhere. For distinct , its entries at and are respectively and , with all other entries zero. If , including necessarily when , the matrix is zero.
QAlgorithms.Papers.Independent.Intake100.P83.twoZ
For a type , a natural number , and words , this defines the complex matrix , where has a single entry at . For distinct , this is diagonal with entries at , at , and zero elsewhere. If , including necessarily when , it is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.