Skip to content

Commit

Permalink
Bump version (v8.15.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jul 21, 2023
1 parent 04f7a30 commit 1ba8fe5
Show file tree
Hide file tree
Showing 3 changed files with 5 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 8.15.3 DESCRIPTION "High Performance Quantum Bit Simulation")
project (Qrack VERSION 8.15.4 DESCRIPTION "High Performance Quantum Bit Simulation")

# Installation commands
include (GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion include/qstabilizerhybrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class QStabilizerHybrid : public QParity, public QInterface {
}
}

void CombineAncillae(bool isMeasuring = false);
void CombineAncillae(bool isApproxSampling = false);
void PrepareLowRankCache();
bitCapInt WeakSampleAncillae();

Expand Down
6 changes: 3 additions & 3 deletions src/qstabilizerhybrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ bool QStabilizerHybrid::ForceMParity(bitCapInt mask, bool result, bool doForce)
return QINTERFACE_TO_QPARITY(engine)->ForceMParity(mask, result, doForce);
}

void QStabilizerHybrid::CombineAncillae(bool isMeasuring)
void QStabilizerHybrid::CombineAncillae(bool isApproxSampling)
{
if (engine || !ancillaCount) {
return;
Expand Down Expand Up @@ -1782,7 +1782,7 @@ void QStabilizerHybrid::CombineAncillae(bool isMeasuring)
}
}

if (!isMeasuring) {
if (!isApproxSampling) {
continue;
}

Expand Down Expand Up @@ -1866,7 +1866,7 @@ void QStabilizerHybrid::CombineAncillae(bool isMeasuring)
}

// We should fail to find any toCombine entries before exit.
CombineAncillae(isMeasuring);
CombineAncillae(isApproxSampling);
}

void QStabilizerHybrid::PrepareLowRankCache()
Expand Down

0 comments on commit 1ba8fe5

Please sign in to comment.