Sample Codes

If you save the any of the programs below as example.cpp, under Linux you can compile it using:
g++ example.cpp -o example -O3 -std=c++11 -larmadillo -lnlopt -I PATH_TO_QIClib_INCLUDE_DIRECTORY
Note that -lnlopt flag is optional, see here.

Basic matrix operartions