From 3d24bb33ca34235e69b3d710d1eed05155fd387a Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Tue, 22 Oct 2024 08:40:30 -0400 Subject: [PATCH] Fix WASM --- CMakeLists.txt | 2 +- debian/changelog | 24 ++++++++++++++++++++++++ src/wasm_api.cpp | 8 ++++---- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71f1fc1b0..86a3e4ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required (VERSION 3.9) -project (Qrack VERSION 9.11.12 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX) +project (Qrack VERSION 9.11.15 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX) # Installation commands include (GNUInstallDirs) diff --git a/debian/changelog b/debian/changelog index 00f72fa30..5b00b4166 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,27 @@ +libqrack (9.11.15) bionic; urgency=medium + + * Improved TrySeparate(); sparse state vector removed (Bionic 4/4) + + -- Daniel Strano Mon, 21 Oct 2024 11:45:45 -0400 + +libqrack (9.11.14) focal; urgency=medium + + * Improved TrySeparate(); sparse state vector removed (Focal 3/4) + + -- Daniel Strano Mon, 21 Oct 2024 11:43:51 -0400 + +libqrack (9.11.13) jammy; urgency=medium + + * Improved TrySeparate(); sparse state vector removed (Jammy 2/4) + + -- Daniel Strano Mon, 21 Oct 2024 11:42:14 -0400 + +libqrack (9.11.12) noble; urgency=medium + + * Improved TrySeparate(); sparse state vector removed (Noble 1/4) + + -- Daniel Strano Mon, 21 Oct 2024 11:39:26 -0400 + libqrack (9.11.11) bionic; urgency=medium * Fix QUnit Detach() (Bionic 4/4) diff --git a/src/wasm_api.cpp b/src/wasm_api.cpp index c95c83f51..278545d8a 100644 --- a/src/wasm_api.cpp +++ b/src/wasm_api.cpp @@ -747,7 +747,7 @@ quid init_clone(quid sid) return nsid; } -uintq init_clone_size(uintq sid, uintq n) +quid init_clone_size(quid sid, bitLenInt n) { META_LOCK_GUARD() @@ -760,9 +760,9 @@ uintq init_clone_size(uintq sid, uintq n) std::unique_ptr> simulatorLock( new const std::lock_guard(simulatorMutexes[oSimulator.get()])); - uintq nsid = (uintq)simulators.size(); + quid nsid = (quid)simulators.size(); - for (uintq i = 0U; i < simulators.size(); ++i) { + for (quid i = 0U; i < simulators.size(); ++i) { if (simulatorReservations[i] == false) { nsid = i; simulatorReservations[i] = true; @@ -796,7 +796,7 @@ uintq init_clone_size(uintq sid, uintq n) } shards[simulator.get()] = {}; - for (uintq i = 0U; i < simulator->GetQubitCount(); ++i) { + for (bitLenInt i = 0U; i < simulator->GetQubitCount(); ++i) { shards[simulator.get()][i] = shards[simulators[sid].get()][i]; }