Skip to content

Commit 06fbd08

Browse files
Fractional z (v1.3.0)
1 parent 179f6fd commit 06fbd08

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

PyQrackIsing/_pyqrack_ising.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static inline double expected_closeness_weight(size_t n_rows, size_t n_cols, siz
6363
return 2.0 * mu_k - 1.0;
6464
}
6565

66-
static inline std::vector<double> probability_by_hamming_weight(double J, double h, size_t z, double theta, double t, size_t n_qubits)
66+
static inline std::vector<double> probability_by_hamming_weight(double J, double h, double z, double theta, double t, size_t n_qubits)
6767
{
6868
// critical angle
6969
const double theta_c = std::asin(h / (z * J));
@@ -102,7 +102,7 @@ static inline std::vector<double> probability_by_hamming_weight(double J, double
102102
return bias;
103103
}
104104

105-
std::vector<std::string> generate_tfim_samples_cpp(double J, double h, size_t z, double theta, double t, size_t n_qubits, size_t shots) {
105+
std::vector<std::string> generate_tfim_samples_cpp(double J, double h, double z, double theta, double t, size_t n_qubits, size_t shots) {
106106
// lattice dimensions
107107
size_t n_rows = 1U;
108108
size_t n_cols = n_qubits;
@@ -188,7 +188,7 @@ std::vector<std::string> generate_tfim_samples_cpp(double J, double h, size_t z,
188188
return output;
189189
}
190190

191-
double tfim_magnetization(double J, double h, size_t z, double theta, double t, size_t n_qubits) {
191+
double tfim_magnetization(double J, double h, double z, double theta, double t, size_t n_qubits) {
192192
const std::vector<double> bias = probability_by_hamming_weight(J, h, z, theta, t, n_qubits);
193193
double magnetization = 0.0;
194194
for (size_t q = 0U; q < bias.size(); ++q) {
@@ -199,7 +199,7 @@ double tfim_magnetization(double J, double h, size_t z, double theta, double t,
199199
return magnetization;
200200
}
201201

202-
double tfim_square_magnetization(double J, double h, size_t z, double theta, double t, size_t n_qubits) {
202+
double tfim_square_magnetization(double J, double h, double z, double theta, double t, size_t n_qubits) {
203203
const std::vector<double> bias = probability_by_hamming_weight(J, h, z, theta, t, n_qubits);
204204
double square_magnetization = 0.0;
205205
for (size_t q = 0U; q < bias.size(); ++q) {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "PyQrackIsing"
11-
version = "1.2.0"
11+
version = "1.3.0"
1212
requires-python = ">=3.8"
1313
description = "Near-ideal closed-form solutions for transverse field Ising model (TFIM)"
1414
readme = {file = "README.txt", content-type = "text/markdown"}

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.2.0',
43+
version='1.3.0',
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)