Documentation

CslibFrontier.Computability.Circuit.Rational.QuantumMatrices

Weyl matrices and the quantum Fourier lift #

The Weyl matrices D^a S^b over ZMod d, built from a diagonal character matrix D and a cyclic shift S, multiply like monomials up to scalars, and for a primitive character they span all matrices by finite Fourier inversion. Assigning the Weyl unit of (a, b) to the exponent (a, b) ∈ ℤ ×ₗ ℤ makes the monomial-line Hahn series of QuantumSeries a division ring, which receives the Fourier lift of every matrix. Splitting matrix-valued Hahn series entrywise gives a matrix representation of this division ring over a commutative Hahn field.

Main definitions #

Main results #

References #

theorem Cslib.Circuits.Rational.HahnMatrix.coeff_mul_support_superset {Γ : Type u_1} {R : Type u_2} [AddCommGroup Γ] [LinearOrder Γ] [IsOrderedAddMonoid Γ] [Ring R] (x y : HahnSeries Γ R) (a : Γ) (s t : Set Γ) (hs : s.IsPWO) (ht : t.IsPWO) (hxs : x.support ⊆ s) (hyt : y.support ⊆ t) :
(x * y).coeff a = ∑ ij ∈ Finset.antidiagonal hs ht a, x.coeff ij.1 * y.coeff ij.2
def Cslib.Circuits.Rational.HahnMatrix.entry {Γ : Type u_1} {R : Type u_2} [LinearOrder Γ] [Ring R] {ι : Type u_3} (x : HahnSeries Γ (Matrix ι ι R)) (i j : ι) :

Extract one matrix entry from every Hahn-series coefficient.

@[simp]
theorem Cslib.Circuits.Rational.HahnMatrix.entry_coeff {Γ : Type u_1} {R : Type u_2} [LinearOrder Γ] [Ring R] {ι : Type u_3} (x : HahnSeries Γ (Matrix ι ι R)) (i j : ι) (a : Γ) :
(entry x i j).coeff a = x.coeff a i j

The a-th Hahn-series coefficient of entry x i j is the (i, j) entry of x.coeff a.

def Cslib.Circuits.Rational.HahnMatrix.split {Γ : Type u_1} {R : Type u_2} [AddCommGroup Γ] [LinearOrder Γ] [IsOrderedAddMonoid Γ] [Ring R] {ι : Type u_3} [Fintype ι] [DecidableEq ι] :
HahnSeries Γ (Matrix ι ι R) →+* Matrix ι ι (HahnSeries Γ R)

Identify a matrix-valued Hahn series with a matrix of scalar Hahn series.

Splitting a matrix-valued Hahn series into its scalar entries is injective.

def Cslib.Circuits.Rational.QuantumMatrices.weyl {K : Type u_1} [Field K] {d : ℕ} (χ : AddChar (ZMod d) K) (a b : ZMod d) :
Matrix (ZMod d) (ZMod d) K

The Weyl monomial D^a S^b.

@[simp]
theorem Cslib.Circuits.Rational.QuantumMatrices.weyl_zero {K : Type u_1} [Field K] {d : ℕ} (χ : AddChar (ZMod d) K) :
weyl χ 0 0 = 1

The (0, 0) Weyl matrix is the identity matrix.

theorem Cslib.Circuits.Rational.QuantumMatrices.weyl_mul {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (a b c e : ZMod d) :
weyl χ a b * weyl χ c e = χ (-c * b) • weyl χ (a + c) (b + e)

Two Weyl matrices multiply to a scalar multiple of the Weyl matrix at the sum of exponents.

theorem Cslib.Circuits.Rational.QuantumMatrices.weyl_inverse_right {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (a b : ZMod d) :
weyl χ a b * χ (-a * b) • weyl χ (-a) (-b) = 1

Right inverse identity for the Weyl matrix weyl χ a b.

theorem Cslib.Circuits.Rational.QuantumMatrices.weyl_inverse_left {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (a b : ZMod d) :
χ (-a * b) • weyl χ (-a) (-b) * weyl χ a b = 1

Left inverse identity for the Weyl matrix weyl χ a b.

def Cslib.Circuits.Rational.QuantumMatrices.weylUnit {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (a b : ZMod d) :
(Matrix (ZMod d) (ZMod d) K)ˣ

A Weyl matrix with its explicit two-sided inverse.

@[simp]
theorem Cslib.Circuits.Rational.QuantumMatrices.weylUnit_val {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (a b : ZMod d) :
↑(weylUnit χ a b) = weyl χ a b

The underlying matrix of weylUnit χ a b is weyl χ a b.

@[simp]
theorem Cslib.Circuits.Rational.QuantumMatrices.weylUnit_zero {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) :
weylUnit χ 0 0 = 1

The (0, 0) Weyl unit is 1.

def Cslib.Circuits.Rational.QuantumMatrices.fourierCoeff {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (R : Matrix (ZMod d) (ZMod d) K) (a b : ZMod d) :
K

The coefficient of a Weyl matrix in the finite Fourier expansion.

theorem Cslib.Circuits.Rational.QuantumMatrices.fourier_reconstruction {K : Type u_1} [Field K] [CharZero K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (hχ : χ.IsPrimitive) (R : Matrix (ZMod d) (ZMod d) K) :
∑ a : ZMod d, ∑ b : ZMod d, fourierCoeff χ R a b • weyl χ a b = R

Fourier inversion on each cyclic matrix diagonal.

@[reducible, inline]

Lexicographically ordered pairs of integer exponents.

@[reducible, inline]

Hahn series with matrix coefficients and two integer exponents.

def Cslib.Circuits.Rational.QuantumLift.monomialUnit {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (g : Exponents) :
(Matrix (ZMod d) (ZMod d) K)ˣ

The Weyl unit assigned to an exponent pair.

The Weyl monomial unit at exponent 0 is 1.

theorem Cslib.Circuits.Rational.QuantumLift.monomialUnit_mul {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (g h : Exponents) :
∃ (c : K), ↑(monomialUnit χ g) * ↑(monomialUnit χ h) = c • ↑(monomialUnit χ (g + h))

The product of two Weyl monomial units is a scalar multiple of the unit at their sum.

@[reducible, inline]

The Hahn-series subring whose coefficients lie on the Weyl monomial lines.

@[instance_reducible]

The division ring structure of divisionSubring.

noncomputable def Cslib.Circuits.Rational.QuantumLift.lift {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (R : Matrix (ZMod d) (ZMod d) K) :

The Fourier lift as a finite Hahn series.

theorem Cslib.Circuits.Rational.QuantumLift.lift_mem {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (R : Matrix (ZMod d) (ZMod d) K) :

The Fourier lift of any matrix belongs to divisionSubring χ.

noncomputable def Cslib.Circuits.Rational.QuantumLift.liftD {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) (R : Matrix (ZMod d) (ZMod d) K) :

The finite Fourier lift as an element of the division subring.

noncomputable def Cslib.Circuits.Rational.QuantumLift.representation {K : Type u_1} [Field K] {d : ℕ} [NeZero d] (χ : AddChar (ZMod d) K) :

The representation used in the rank-gap argument. Its coefficient field is a commutative Hahn field; all inversion takes place inside the division subring, never by adjoining arbitrary matrix-field scalars.