From 266667ece8200484321d953b3adb38e9ef8b1ff7 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Mon, 4 Mar 2024 17:33:34 -0500 Subject: [PATCH] Mon Mar 4 05:33:34 PM EST 2024 --- src/QAnsel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QAnsel.c b/src/QAnsel.c index db9885a..067d7a2 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -11,7 +11,7 @@ unsigned char HIDDEN_VARIABLE = 0; FILE* RANDOM_FILE; #define GPU_ENABLED unsigned char USE_GPU = 1; -unsigned char USE_THREADS = 0; +unsigned char USE_THREADS = 1; typedef struct { @@ -215,15 +215,15 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr printf("%ix%i (knk)\n", tmp.rows, tmp.cols); unsigned long int us1, us2; us1 = get_time(); - cpx_mtx_knk_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); + cpx_mtx_knk_metal(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols); us2 = get_time(); printf("\tMetal: %lu\n", us2 - us1); us1 = get_time(); - cpx_mtx_knk_threads(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); + cpx_mtx_knk_threads(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols); us2 = get_time(); printf("\tThreads: %lu\n", us2 - us1); us1 = get_time(); - cpx_mtx_knk(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); + 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); -- 2.39.5