Documentation

Complexity.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.

Instances For
    @[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
    theorem Cslib.Circuits.Rational.HahnMatrix.entry_support {Γ : Type u_1} {R : Type u_2} [LinearOrder Γ] [Ring R] {ι : Type u_3} (x : HahnSeries Γ (Matrix ι ι R)) (i j : ι) :
    (entry x i j).support ⊆ x.support
    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.

    Instances For
      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.

      Instances For
        @[simp]
        theorem Cslib.Circuits.Rational.QuantumMatrices.weyl_zero {K : Type u_1} [Field K] {d : ℕ} (χ : AddChar (ZMod d) K) :
        weyl χ 0 0 = 1
        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)
        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
        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
        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.

        Instances For
          @[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
          @[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
          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.

          Instances For
            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.

            Instances For
              @[reducible, inline]

              Hahn series with matrix coefficients and two integer exponents.

              Instances For
                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.

                Instances For
                  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))
                  @[reducible, inline]

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

                  Instances For
                    @[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.

                    Instances For
                      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) :
                      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.

                      Instances For
                        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.

                        Instances For