From ac45a8edf1fe4ed6f8057690bfc7dc980ea1b88b Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Fri, 15 Nov 2024 16:21:57 -0500 Subject: [PATCH] Fix QCircuit ostream --- CMakeLists.txt | 2 +- debian/changelog | 24 ++++++++++++++++++++++++ src/qcircuit.cpp | 4 ++-- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 026c11806..eb33d8f1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required (VERSION 3.9) -project (Qrack VERSION 9.12.23 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX) +project (Qrack VERSION 9.12.27 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX) # Installation commands include (GNUInstallDirs) diff --git a/debian/changelog b/debian/changelog index ae204e7fe..820fbffaf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,27 @@ +libqrack (9.12.26) bionic; urgency=medium + + * Option to disable low-fidelity exception (Bionic 4/4) + + -- Daniel Strano Thu, 14 Nov 2024 11:35:16 -0500 + +libqrack (9.12.25) focal; urgency=medium + + * Option to disable low-fidelity exception (Focal 3/4) + + -- Daniel Strano Thu, 14 Nov 2024 11:33:29 -0500 + +libqrack (9.12.24) jammy; urgency=medium + + * Option to disable low-fidelity exception (Jammy 2/4) + + -- Daniel Strano Thu, 14 Nov 2024 11:31:55 -0500 + +libqrack (9.12.23) noble; urgency=medium + + * Option to disable low-fidelity exception (Noble 1/4) + + -- Daniel Strano Thu, 14 Nov 2024 11:29:32 -0500 + libqrack (9.12.22) bionic; urgency=medium * QUnit classical shadows debugging (Bionic 4/4) diff --git a/src/qcircuit.cpp b/src/qcircuit.cpp index 24ea319c0..1356bc697 100644 --- a/src/qcircuit.cpp +++ b/src/qcircuit.cpp @@ -32,7 +32,7 @@ std::ostream& operator<<(std::ostream& os, const QCircuitGatePtr g) os << std::setprecision(17); #endif for (const auto& p : g->payloads) { - os << p.first << " "; + os << (size_t)p.first << " "; for (size_t i = 0U; i < 4U; ++i) { os << p.second.get()[i] << " "; } @@ -63,7 +63,7 @@ std::istream& operator>>(std::istream& is, QCircuitGatePtr& g) bitCapInt k; is >> k; - g->payloads[k] = std::shared_ptr(new complex[4], std::default_delete()); + g->payloads[k] = std::shared_ptr(new complex[4U], std::default_delete()); for (size_t j = 0U; j < 4U; ++j) { is >> g->payloads[k].get()[j]; }