From 1d2580a9909c9d282c2d48747c4b270cde531cc3 Mon Sep 17 00:00:00 2001 From: raunakkumarsingh Date: Sun, 24 Mar 2024 00:24:28 +0530 Subject: [PATCH] =?UTF-8?q?conversion=20from=20=E2=80=98BigInteger?= =?UTF-8?q?=E2=80=99=20to=20=E2=80=98bool=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: raunakkumarsingh --- quantum/plugins/qrack/accelerator/QrackVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/plugins/qrack/accelerator/QrackVisitor.cpp b/quantum/plugins/qrack/accelerator/QrackVisitor.cpp index 3085a1b1d..f53094fdd 100644 --- a/quantum/plugins/qrack/accelerator/QrackVisitor.cpp +++ b/quantum/plugins/qrack/accelerator/QrackVisitor.cpp @@ -89,7 +89,7 @@ namespace quantum { for (auto it = measureDist.begin(); it != measureDist.end(); it++) { std::string bitString = ""; for (int i = 0; i < m_measureBits.size(); i++) { - bitString.append((Qrack::pow2(i) & it->first) ? "1" : "0"); + bitString.append(bi_compare_0((Qrack::pow2(i) & it->first)) ? "1" : "0"); } for (int j = 0; j < it->second; j++) { m_buffer->appendMeasurement(bitString);