Skip to content

Commit

Permalink
Fix wire label exception
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Sep 4, 2024
1 parent 65e1c31 commit 16f4941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_qrack/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.8.8"
__version__ = "0.9.0"
1 change: 1 addition & 0 deletions pennylane_qrack/qrack_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
auto AllocateQubit() -> QubitIdType override {
const QubitIdType label = qsim->GetQubitCount();
qsim->Allocate(1U);
qubit_map[label] = (bitLenInt)label;
return label;
}
auto AllocateQubits(size_t num_qubits) -> std::vector<QubitIdType> override {
Expand Down

0 comments on commit 16f4941

Please sign in to comment.