]> foleosoft.com Git - QAnsel.git/commitdiff
Thu Mar 7 06:28:25 PM EST 2024
authormiha-q <>
Thu, 7 Mar 2024 23:28:25 +0000 (18:28 -0500)
committermiha-q <>
Thu, 7 Mar 2024 23:28:25 +0000 (18:28 -0500)
src/QAnsel.c

index a978926530b58820de8c4cf662053c21ba854f99..851ec99d3a7c3da637e23a46ae6367a5dabebbb1 100644 (file)
@@ -12,7 +12,7 @@ FILE* RANDOM_FILE;
 #define GPU_ENABLED
 unsigned char USE_GPU = 1;
 unsigned char USE_THREADS = 1;
-//#define SPEED_TEST
+#define SPEED_TEST
 
 typedef struct
 {
@@ -251,6 +251,10 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr
                cpx_mtx_knk(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);
                us2 = get_time();
                printf("\tBare: %lu\n", us2 - us1);
+               us1 = get_time();
+               cpx_mtx_knk_2x2(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);
+               us2 = get_time();
+               printf("\tBare2x2: %lu\n", us2 - us1);
 
                //us1 = get_time();
                //cpx_mtx_knk(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);