Skip to content

Commit

Permalink
Fix QCircuit ostream
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 15, 2024
1 parent d08b644 commit ac45a8e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 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.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)
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.12.26) bionic; urgency=medium

* Option to disable low-fidelity exception (Bionic 4/4)

-- Daniel Strano <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> Thu, 14 Nov 2024 11:29:32 -0500

libqrack (9.12.22) bionic; urgency=medium

* QUnit classical shadows debugging (Bionic 4/4)
Expand Down
4 changes: 2 additions & 2 deletions src/qcircuit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] << " ";
}
Expand Down Expand Up @@ -63,7 +63,7 @@ std::istream& operator>>(std::istream& is, QCircuitGatePtr& g)
bitCapInt k;
is >> k;

g->payloads[k] = std::shared_ptr<complex>(new complex[4], std::default_delete<complex[]>());
g->payloads[k] = std::shared_ptr<complex>(new complex[4U], std::default_delete<complex[]>());
for (size_t j = 0U; j < 4U; ++j) {
is >> g->payloads[k].get()[j];
}
Expand Down

0 comments on commit ac45a8e

Please sign in to comment.