Research Atlas

Home / Seeing the gap on an SU(2) lattice / Local bound for two types

Python program

Local bound for two types

Seeing the gap on an SU(2) lattice

Python programreplay_two_type_cutoff_bound.py
"""Exact rational endpoint and two-type constants for spherical Wilson comparison."""
from fractions import Fraction as Q
from math import factorial


def error(beta, cutoff):
    h = beta / 2
    m = cutoff + 1
    return Q(9, 7) * (m + 1)**2 * h**m / (factorial(m + 1) * (1 - 2*h))


assert error(Q(1, 9), 0) == Q(9, 56)
assert Q(1) / (1 - 2*Q(1, 9)) == Q(9, 7)
for beta in (Q(1, 20), Q(1, 12), Q(1, 10), Q(11, 100)):
    assert 9*beta < 1
    denominator = 2*(1-beta)*(1-9*beta)
    spatial = (1+3*beta)/denominator
    temporal = (3-15*beta)/denominator
    assert (1-7*beta)*spatial - 2*beta*temporal == Q(1, 2)
    assert -6*beta*spatial + (1-3*beta)*temporal == Q(3, 2)
    assert 0 < spatial < temporal < Q(3, 2)/(1-9*beta)
    for cutoff in range(4):
        assert 0 < error(beta, cutoff+1) < error(beta, cutoff) < 1
print('PASS: spherical coupling window, positive character cutoff, and two-type resolvent')

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

Original file checksum · SHA-256dc1b5efdb99cd9199e7a7702a03aff51defe734c280058e2a92d74d6183731b7