Manual for RTNI_light


How to run the program

One can execute the following Python file to run the program.
RTNI_light.py:

from RTNI_light_source import *

Input =  ""

# One can customize by changing the following part.
rms = ("U","V")        
powers_dic = {"transpose":"+","conjugate":"-","adjoint":"*"}
limit = 4

readable, pythonic = RTNI_light(Input, rms=rms, powers_dic = powers_dic, limit = limit)
print("readable data\n",readable)
print("pythonic data\n",pythonic) 

I believe one can even use some symbols for Haar unitary matrices and some alphabests for matrix operations, but no gurantee. However, "?" and "@" are used within the program, so please do not use them at least. The calculation of "limit" is a bit tricky:
`prod_(i)^(N) s_i <= L `
Here, we have `N` i.i.d. Haar unitary matrices, the number (only counting without-complex-conjugate ones) of each is `s_i`, and `L` is "limit". The square of the LHS shows how many terms appear in the Weingarten Calculus. By default, it is set to be 4, so two i.i.d. Haar unitary matrices are allowed where one can use two for each.

How to write input data

An input is a sequence of two kinds of brackets and each bracket contains alphabets and some selected symbols (spaces will be ignored), and it is supposed to be written in the quotation marks of "Input = """ in the above file.

Some examples (you do not need the outer "" for the input.):


How to read output data

In the "readable" output, the bracket "( )" represents the space which was connected to the matrix in the bracket. For example,

In the pythonic data: