Documentation

SeedKernel.Ising.Hamiltonian

The Ising ring Hamiltonian in the computational basis #

IsingLongitudinal.model g h is built from RPRing.bondOp and RPRing.siteOp. This file computes its action on a vector,

(H x)(σ) = E(σ) x(σ) - g ∑ⱼ x(flipₖ σ), E(σ) = -∑ⱼ zⱼ zⱼ₊₁ - h ∑ⱼ zⱼ,

with zⱼ = ±1 for σ j = 0, 1 (hamiltonian_mulVec_apply), and the comparison of its quadratic form with the classical energies, Re ⟪x, H x⟫ ≥ ∑_σ (E(σ) - g L) |x(σ)|² for g ≥ 0 (re_quadratic_ge). The entries of one-site and diagonal two-site operators come from Ring/Hamiltonian.lean (siteOp_mulVec_apply, bondOp_diag_apply), the quadratic form and Cauchy–Schwarz from Spectral/ (Spectral.qform, Spectral.re_dotProduct_sq_le).

The eigenvalue ±1 of Z on the basis state a.

Equations
Instances For
    noncomputable def SeedKernel.Ising.diagE {L : ℕ} (h : ℝ) (σ : Fin L → Fin 2) :

    The classical energy E(σ) = -∑ⱼ zⱼ zⱼ₊₁ - h ∑ⱼ zⱼ of a configuration.

    Equations
    Instances For
      def SeedKernel.Ising.flipAt {L : ℕ} (j : Fin L) (σ : Fin L → Fin 2) :
      Fin L → Fin 2

      The configuration with spin j flipped.

      Equations
      Instances For
        theorem SeedKernel.Ising.flipAt_flipAt {L : ℕ} (j : Fin L) (σ : Fin L → Fin 2) :
        flipAt j (flipAt j σ) = σ
        def SeedKernel.Ising.flipPerm {L : ℕ} (j : Fin L) :
        Equiv.Perm (Fin L → Fin 2)

        Flipping a spin as a permutation of the configurations.

        Equations
        Instances For

          The Ising Hamiltonian #

          theorem SeedKernel.Ising.model_bond_apply {L : ℕ} (g h : ℝ) (j : Fin L) (σ τ : Fin L → Fin 2) :
          (CertifiedGaps.IsingLongitudinal.model g h).bond L j σ τ = if σ = τ then -↑(zR (σ j) * zR (σ ((finRotate L) j))) else 0
          theorem SeedKernel.Ising.model_oc_apply (g h : ℝ) (a b : Fin 2) :
          (CertifiedGaps.IsingLongitudinal.model g h).oc a b = if b = a then ↑(-(h * zR a)) else ↑(-g)
          theorem SeedKernel.Ising.model_site_mulVec_apply {L : ℕ} (g h : ℝ) (j : Fin L) (x : (Fin L → Fin 2) → ℂ) (σ : Fin L → Fin 2) :
          ((CertifiedGaps.IsingLongitudinal.model g h).site L j).mulVec x σ = ↑(-(h * zR (σ j))) * x σ - ↑g * x (flipAt j σ)
          theorem SeedKernel.Ising.hamiltonian_mulVec_apply {L : ℕ} (g h : ℝ) (x : (Fin L → Fin 2) → ℂ) (σ : Fin L → Fin 2) :
          ((CertifiedGaps.IsingLongitudinal.model g h).hamiltonian L).mulVec x σ = ↑(diagE h σ) * x σ - ↑g * ∑ j : Fin L, x (flipAt j σ)

          The Hamiltonian on a vector. (H x)(σ) = E(σ) x(σ) - g ∑ⱼ x(flipⱼ σ).

          theorem SeedKernel.Ising.re_quadratic_ge {L : ℕ} (g h : ℝ) (hg : 0 ≤ g) (x : (Fin L → Fin 2) → ℂ) :

          Comparison with the classical energies. For g ≥ 0, Re ⟪x, H x⟫ ≥ ∑_σ (E(σ) - g L) |x(σ)|².