Skip to content

Commit

Permalink
Fix WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Oct 22, 2024
1 parent d458dac commit 3d24bb3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
24 changes: 24 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
libqrack (9.11.15) bionic; urgency=medium

* Improved TrySeparate(); sparse state vector removed (Bionic 4/4)

-- Daniel Strano <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> Mon, 21 Oct 2024 11:39:26 -0400

libqrack (9.11.11) bionic; urgency=medium

* Fix QUnit Detach() (Bionic 4/4)
Expand Down
8 changes: 4 additions & 4 deletions src/wasm_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -760,9 +760,9 @@ uintq init_clone_size(uintq sid, uintq n)
std::unique_ptr<const std::lock_guard<std::mutex>> simulatorLock(
new const std::lock_guard<std::mutex>(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;
Expand Down Expand Up @@ -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];
}

Expand Down

0 comments on commit 3d24bb3

Please sign in to comment.