MATLAB code for analyzing finite sets of quantum gates