From: miha-q <> Date: Thu, 7 Mar 2024 23:28:25 +0000 (-0500) Subject: Thu Mar 7 06:28:25 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=f6247e637ef97d0c2bdbebd2e127490a8efdd888;p=QAnsel.git Thu Mar 7 06:28:25 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index a978926..851ec99 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -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);