""" quantumdims.py - small numerical companion to "No-go theorems for non-Kac quantum groups". 1. Quantum dimensions of the irreducible representations of SU_q(2) versus their classical dimensions (Table 1 of the paper). 2. The inequality dim_q(u) = Tr(Q) >= dim(u) for positive matrices Q with Tr(Q) = Tr(Q^{-1}), tested on random examples, with equality only at Q = 1. 3. For O_F^+ with F Fbar = 1, the quantum dimension of the fundamental representation is Tr(F^*F), tested on random examples of such F. 4. In the Woronowicz representation of C(SU_q(2)) on l^2(N), the fundamental matrix u is unitary, while its conjugate ubar is not: the upper left entry of ubar ubar^* - 1 equals -(1 - q^2) g^*g, of norm 1 - q^2. 5. At the parameters |q| + |q|^{-1} = N, with N >= 3 an integer, the quantum dimensions of SU_q(2) are integers, given by the recurrence d_{k+1} = N d_k - d_{k-1}, which are the dimensions of the irreducible representations of O_N^+ (for q < 0), or of the free symplectic quantum group (for q > 0, N even). Run: python3 quantumdims.py """ import numpy as np rng = np.random.default_rng(2026) def qint(n, q): """Quantum integer [n]_q = (q^{-n} - q^n) / (q^{-1} - q), for 0 < q < 1.""" return (q ** (-n) - q ** n) / (q ** (-1) - q) def table_suq2(q=0.5, kmax=8): print("Part 1. SU_q(2), q = %g: dim versus dim_q" % q) print(" dim dim_q ratio") for n in range(1, kmax + 1): dq = qint(n, q) print(" %3d %10.4f %10.4f" % (n, dq, dq / n)) print() def random_Q_test(trials=2000, size=5): print("Part 2. Tr(Q) >= dim for positive Q with Tr(Q) = Tr(Q^-1)") worst = np.inf for _ in range(trials): lam = np.exp(rng.normal(size=size)) # rescale so that Tr(Q) = Tr(Q^{-1}): Q -> cQ with c^2 = Tr(Q^-1)/Tr(Q) c = np.sqrt(np.sum(1 / lam) / np.sum(lam)) lam = c * lam assert abs(np.sum(lam) - np.sum(1 / lam)) < 1e-9 worst = min(worst, np.sum(lam) - size) print(" smallest value of Tr(Q) - dim over %d random Q: %.6f" % (trials, worst)) lam = np.ones(size) print(" Q = 1 gives Tr(Q) - dim = %.6f" % (np.sum(lam) - size)) print() def random_orthogonal_F(n): """Random F with F Fbar = 1, of the form F = A Abar^{-1}, with A a random complex matrix.""" A = rng.normal(size=(n, n)) + 1j * rng.normal(size=(n, n)) return A @ np.linalg.inv(np.conj(A)) def qdim_orthogonal(F): """Quantum dimension of the fundamental representation of O_F^+, computed from P = F^*F, normalized so that Tr(P) = Tr(P^{-1}); returns (Tr P, Tr P^{-1}).""" P = F.conj().T @ F return np.trace(P).real, np.trace(np.linalg.inv(P)).real def orthogonal_test(trials=5, n=3): print("Part 3. O_F^+ with F Fbar = 1: Tr(F^*F) = Tr((F^*F)^{-1}) >= N") for _ in range(trials): F = random_orthogonal_F(n) err = np.linalg.norm(F @ np.conj(F) - np.eye(n)) t, ti = qdim_orthogonal(F) print(" |F Fbar - 1| = %.1e Tr(F^*F) = %10.4f Tr((F^*F)^-1) = %10.4f" % (err, t, ti)) F = np.eye(n) t, ti = qdim_orthogonal(F) print(" F = 1 (O_N^+, Kac): Tr(F^*F) = %.4f" % t) print() def woronowicz_rep(q=0.5, M=60): print("Part 4. Woronowicz representation of C(SU_q(2)), q = %g" % q) alpha = np.zeros((M, M)) gamma = np.zeros((M, M)) for n in range(M): gamma[n, n] = q ** n if n >= 1: alpha[n - 1, n] = np.sqrt(1 - q ** (2 * n)) a, g = alpha, gamma ad, gd = a.T, g.T u = np.block([[a, -q * gd], [g, ad]]) # conjugate matrix: entrywise adjoints ubar = np.block([[ad, -q * g], [gd, a]]) one = np.eye(2 * M) # truncation only spoils the last basis vector of each block: compare on the rest keep = [i for i in range(2 * M) if i % M < M - 2] def err(X): X = X[np.ix_(keep, keep)] return np.linalg.norm(X, 2) print(" |u u^* - 1| = %.2e" % err(u @ u.T - one)) print(" |u^* u - 1| = %.2e" % err(u.T @ u - one)) print(" |ubar ubar^* - 1| = %.6f (nonzero: ubar is not unitary)" % err(ubar @ ubar.T - one)) # its upper left entry is a^*a + q^2 g g^* - 1 = -(1 - q^2) g^*g, of norm 1 - q^2 d = (ubar @ ubar.T - one)[:M, :M] d = d[np.ix_(keep[:M - 2], keep[:M - 2])] print(" |(ubar ubar^*)_11 - 1| = %.6f (1 - q^2 = %.6f)" % (np.linalg.norm(d, 2), 1 - q ** 2)) print() def integer_qdims(Nmax=6, kmax=6): print("Part 5. Quantum dimensions of SU_q(2) at |q| + 1/|q| = N") for N in range(3, Nmax + 1): q = (-N + np.sqrt(N * N - 4)) / 2 # the root in (-1,0) of q + 1/q = -N dq = [abs((q ** (-k) - q ** k) / (q ** (-1) - q)) for k in range(1, kmax + 1)] d = [1, N] while len(d) < kmax: d.append(N * d[-1] - d[-2]) err = max(abs(x - y) for x, y in zip(dq, d)) print(" N = %d q = %+.6f dims %s max error %.1e" % (N, q, d, err)) print() if __name__ == "__main__": table_suq2() random_Q_test() orthogonal_test() woronowicz_rep() integer_qdims()