Skip to content

Commit 8e90428

Browse files
Fix very high qubit widths (v1.0.1)
1 parent 2d8eb91 commit 8e90428

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PyQrackIsing/_pyqrack_ising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ std::vector<std::string> generate_tfim_samples_cpp(double J, double h, double th
154154
while (true) {
155155
BigInteger candidate = 0U;
156156
for (size_t pos : idx) {
157-
candidate |= (1ULL << pos);
157+
candidate |= (BigInteger("1") << pos);
158158
}
159159
tot_cprob += (1.0 + closeness_like_bits(candidate, n_rows, n_cols)) /
160160
(1.0 + expected_closeness_weight(n_rows, n_cols, m));

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_extension(self, ext):
4040

4141
setup(
4242
name='PyQrackIsing',
43-
version='1.0.0',
43+
version='1.0.1',
4444
author='Dan Strano',
4545
author_email='stranoj@gmail.com',
4646
description='Near-ideal closed-form solutions for transverse field Ising model (TFIM)',

0 commit comments

Comments
 (0)