The deri.m is the main code that can run.
A brief introduction about the functions in main code.
EA: Entanglement asymmetry between the given state and psi.
distance: Frobenius distance between state abc and psi.
getgate: Getting needed quantum gate distribution.
inirand: Getting a random initial state.
PBCevo: Evolving quantum state with given gates.
ptrace, ptrace3, ptracepbc2, ptracepbc2: Taking the partial trace.
renyi2: Renyi entropy.
threecorr: Correlation function.
TMI and totmi: Tripartite mutual information.