From 39463576300cfc6ecf0df1cbd1dad8d62bc7a888 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Mon, 4 Mar 2024 12:25:03 -0500 Subject: [PATCH] Mon Mar 4 12:25:03 PM EST 2024 --- src/QAnsel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/QAnsel.c b/src/QAnsel.c index 77574da..5769cc3 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -214,7 +214,7 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr tmp.ptr = malloc(tmp.rows * (tmp.cols * 2) * sizeof(float)); #ifdef GPU_ENABLED - if (USE_GPU && (tmp.rows >= 1024 || tmp.cols >= 1024)) + if (USE_GPU && (tmp.rows >= 1024 && tmp.cols >= 1024)) { cpx_mtx_knk_metal(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols); } @@ -244,11 +244,6 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr cpx_mtx_dot(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); } #else - //cpx_ncpx_mmul_mt - //( - // tmp.ptr, stateVector->ptr, filter.ptr, - // stateVector->rows * 2, filter.cols * 2, stateVector->cols * 2 - //); cpx_mtx_dot ( tmp.ptr, stateVector->ptr, filter.ptr, -- 2.39.5