""" reflection.py -- checks the results on the quantum reflection groups, section 4. Part 1: the graph N C_s formed by N disjoint copies of the oriented s-cycle, d = 1_N x shift. It is normal, regular and has N components; its classical automorphism group, computed by brute force, has order s^N N!, that of H_N^s = Z_s wr S_N; the matrices commuting with d = shift x 1_N, in the ordering (cycle position, copy), are the block-circulant ones, giving the sudoku pattern; and the smallest subspace containing 1, J, d and stable under the 4 basic operations has dimension s+1 for N >= 2, the dimension of End(u) for H_N^{s+}, since u = 1 + r_0 + r_1 + ... + r_{s-1}. Part 2: the fusion rules of H_N^{s+}, over the words in Z_s. The fusion ring is implemented, and it is checked that the multiplicity of 1 in c_{i_1} x ... x c_{i_k}, with c_i = r_i + delta_{i0} 1, is the number of noncrossing partitions of i_1 ... i_k whose blocks have sums 0 modulo s, along with the count 1, 3, 12, 55, ... = binom(3m,m)/(2m+1) for s=2 and i = 1 ... 1. Results are written to reflection.log. """ import itertools from math import comb, factorial from collections import Counter import numpy as np from qspace import QSpace, Logger, close from products import closure rng = np.random.default_rng(4) log = Logger("reflection.log") def oriented_cycles(N, s): """N copies of the oriented s-cycle, points (copy i, position a) -> index i*s + a""" P = np.roll(np.eye(s), 1, axis=0) # e_a -> e_{a+1} return np.kron(np.eye(N), P) log("=== Part 1: N copies of the oriented s-cycle") for (N, s) in [(1, 3), (2, 2), (2, 3), (3, 2), (2, 4), (3, 3), (4, 2), (2, 5), (4, 3), (3, 4)]: d = oriented_cycles(N, s) M = N * s q = QSpace([1] * M) normal = close(d @ d.T, d.T @ d) comps = int(np.sum(np.abs(np.linalg.eigvals(2 * np.eye(M) - d - d.T)) < 1e-9)) line = f" N={N}, s={s}: normal {normal}, regular {close(d @ np.ones(M), np.ones(M))}, components {comps}" if M <= 8: A = (d > 0.5) aut = sum(1 for k in itertools.permutations(range(M)) if (A[np.ix_(k, k)] == A).all()) line += f", automorphisms {aut} = s^N N! {aut == s ** N * factorial(N)}" # commutant of Sigma = shift x 1_N, in the ordering (position, copy) Sig = np.kron(np.roll(np.eye(s), 1, axis=0), np.eye(N)) T = np.kron(np.eye(M), Sig) - np.kron(Sig.T, np.eye(M)) comm = M * M - np.linalg.matrix_rank(T) blocks_circ = True for t in range(3): X = rng.normal(size=(M, M)) Xc = sum(np.linalg.matrix_power(Sig, k) @ X @ np.linalg.matrix_power(Sig, -k) for k in range(s)) / s Bk = [[Xc[a * N:(a + 1) * N, b * N:(b + 1) * N] for b in range(s)] for a in range(s)] blocks_circ &= all(close(Bk[a][b], Bk[(a + 1) % s][(b + 1) % s]) for a in range(s) for b in range(s)) line += f", commutant of Sigma: dimension {comm} = sN^2 {comm == s * N * N}, block-circulant {blocks_circ}" c = closure(q, [q.identity(), q.J(), d.astype(complex)]) line += f", closure dimension {c} (expected {s + 1 if N >= 2 else s})" log(line) log("") log("=== Part 2: the fusion rules of H_N^{s+}, over the words in Z_s") def bar(x, s): return tuple((-i) % s for i in reversed(x)) def fuse(x, y, s): """r_x r_y = sum_{x = vz, y = bar(z) w} r_{vw} + r_{v.w}""" out = Counter() for j in range(min(len(x), len(y)) + 1): v, z = x[:len(x) - j], x[len(x) - j:] if tuple(y[:j]) != bar(z, s): continue w = y[j:] out[v + w] += 1 if v and w: out[v[:-1] + ((v[-1] + w[0]) % s,) + w[1:]] += 1 return out def tensor(A, B, s): out = Counter() for x, a in A.items(): for y, b in B.items(): for z, c in fuse(x, y, s).items(): out[z] += a * b * c return out def set_partitions(k): if k == 0: yield [] return for p in set_partitions(k - 1): for i in range(len(p)): yield p[:i] + [p[i] + [k - 1]] + p[i + 1:] yield p + [[k - 1]] def noncrossing(p): for A in p: for B in p: if A is B: continue for a1, a2 in itertools.combinations(sorted(A), 2): if any(a1 < b < a2 for b in B) and any(b < a1 or b > a2 for b in B): return False return True NC = {k: [p for p in set_partitions(k) if noncrossing(p)] for k in range(1, 8)} log(f" noncrossing partitions: {[len(NC[k]) for k in range(1, 8)]} (Catalan numbers)") for s in [1, 2, 3, 4]: ok = True tested = 0 for k in range(1, 8): seqs = list(itertools.product(range(s), repeat=k)) if len(seqs) > 60: seqs = [seqs[i] for i in rng.choice(len(seqs), 60, replace=False)] for seq in seqs: prod = Counter({(): 1}) for i in seq: c = Counter({(i,): 1}) if i == 0: c[()] += 1 prod = tensor(prod, c, s) count = sum(1 for p in NC[k] if all(sum(seq[a] for a in B) % s == 0 for B in p)) ok &= prod[()] == count tested += 1 log(f" s={s}: multiplicity of 1 = number of partitions in NC_s, for {tested} sequences: {ok}") seq_counts = [] for m in range(1, 4): prod = Counter({(): 1}) for i in range(2 * m): prod = tensor(prod, Counter({(1,): 1}), 2) seq_counts.append(prod[()]) log(f" s=2, i = 1...1 of length 2m: {seq_counts}, binom(3m,m)/(2m+1) = {[comb(3 * m, m) // (2 * m + 1) for m in range(1, 4)]}") log(f" s=1, SO_3 type fusion rules: r_2 r_3 = {sorted(fuse((0, 0), (0, 0, 0), 1).items())}") log(f" s=3, example: r_(1,2) r_(1) = {dict(fuse((1, 2), (1,), 3))}, r_(1) r_(2) = {dict(fuse((1,), (2,), 3))}") log.save()