#include #include "../cRz/cRz.scaffold" #include "../SWAP/SWAP.scaffold" scaff_module endian ( const unsigned int width, qbit qbits[] ) { int i = 0, j = width-1; while ( i= 0; t-- ) { for ( int c = width-1; c > t; c-- ) { cRz ( qbits[c], qbits[t], -M_PI/pow(2,c-t) ); } H(qbits[t]); } }