This uses a nonlinear solver based on the method by Yamashita et. al. to search for Mutually Unbiased Bases (MUBs).
This code requires OpenMP for parallelisation and Eigen for matrix calculations, which can both be installed using the following command on Debian-based distributions:
sudo apt-get install libomp-dev libeigen3-devYou also need make and g++ (in case they aren't installed already):
sudo apt-get install make g++To compile the code, first clone this repository somewhere:
git clone https://github.com/Lumorti/nonlinearThen enter this directory and compile:
cd nonlinear
makeTo run the code for the case of dimension-2 with 3 bases (d2n2):
./nonlin -d 2 -n 3See the help for other command-line arguments:
./nonlin -h