Research Atlas

Home / Seeing the gap on an SU(2) lattice / Computing the window criterion threshold

Python program

Computing the window criterion threshold

Seeing the gap on an SU(2) lattice

Python programreplay_chordal_window_barrier.py
"""Rational bracket of the sliding chordal-window threshold."""

from fractions import Fraction
from math import factorial


def bessel_bounds(field, label, count=12):
    half = field / 2
    terms = [
        half ** (2 * index + label)
        / (factorial(index) * factorial(index + label))
        for index in range(count + 1)
    ]
    ratio = half**2 / ((count + 1) * (count + 1 + label))
    assert 0 < ratio < 1
    partial = sum(terms)
    return partial, partial + terms[-1] * ratio / (1 - ratio)


def limiting_row(field, ratio):
    return 3 * field * (1 + ratio) / (1 - ratio)


left, right = Fraction(28861, 100000), Fraction(14431, 50000)
assert Fraction(2, 7) < left < right < Fraction(3, 10)
i1_lower, _ = bessel_bounds(left, 1)
_, i2_upper = bessel_bounds(left, 2)
assert limiting_row(left, i2_upper / i1_lower) < 1
_, i1_upper = bessel_bounds(right, 1)
i2_lower, _ = bessel_bounds(right, 2)
assert limiting_row(right, i2_lower / i1_upper) > 1
assert right / 4 < Fraction(1, 13)

# Exact checks of both displacement sums against the closed expression.
for width in range(1, 15):
    r = Fraction(7, 97)
    spatial = 12 * (
        1 + 2 * sum((1 - Fraction(d, width)) * r**d for d in range(1, width))
    )
    temporal = Fraction(2, width) * sum(r**d for d in range(width))
    closed = (
        12 * (1 + r) / (1 - r)
        + Fraction(2, width) * (1 - r**width) * (1 - 13 * r) / (1 - r)**2
    )
    assert spatial + temporal == closed

print("PASS: 28861/100000 < beta_* < 28862/100000 and finite row identity")

The original records reflect the work at the time of writing. The article gives the final interpretation and scope.

Original file checksum · SHA-2565b2dd26a6cc823fc7e461ad34d9780a584e9e83fc2587ddc1543348b08432088