PyQrackIsing 1.0.1__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.0.1
3
+ Version: 1.2.0
4
4
  Summary: Near-ideal closed-form solutions for transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -0,0 +1,3 @@
1
+ from .generate_tfim_samples import generate_tfim_samples
2
+ from .tfim_magnetization import tfim_magnetization
3
+ from .tfim_square_magnetization import tfim_square_magnetization
@@ -0,0 +1,5 @@
1
+ import tfim_sampler
2
+
3
+
4
+ def generate_tfim_samples(J=-1.0, h=2.0, z=4, theta=0.174532925199432957, t=5, n_qubits=56, shots=100):
5
+ return [int(s) for s in tfim_sampler._generate_tfim_samples(J, h, z, theta, t, n_qubits, shots)]
@@ -0,0 +1,5 @@
1
+ import tfim_sampler
2
+
3
+
4
+ def tfim_magnetization(J=-1.0, h=2.0, z=4, theta=0.174532925199432957, t=5, n_qubits=56):
5
+ return tfim_sampler._tfim_magnetization(J, h, z, theta, t, n_qubits)
@@ -0,0 +1,5 @@
1
+ import tfim_sampler
2
+
3
+
4
+ def tfim_square_magnetization(J=-1.0, h=2.0, z=4, theta=0.174532925199432957, t=5, n_qubits=56):
5
+ return tfim_sampler._tfim_square_magnetization(J, h, z, theta, t, n_qubits)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.0.1
3
+ Version: 1.2.0
4
4
  Summary: Near-ideal closed-form solutions for transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -4,6 +4,8 @@ pyproject.toml
4
4
  setup.py
5
5
  PyQrackIsing/__init__.py
6
6
  PyQrackIsing/generate_tfim_samples.py
7
+ PyQrackIsing/tfim_magnetization.py
8
+ PyQrackIsing/tfim_square_magnetization.py
7
9
  PyQrackIsing.egg-info/PKG-INFO
8
10
  PyQrackIsing.egg-info/SOURCES.txt
9
11
  PyQrackIsing.egg-info/dependency_links.txt
@@ -37,6 +37,8 @@ samples = generate_tfim_samples(
37
37
  )
38
38
  ```
39
39
 
40
+ There are two more functions, `tfim_magnetization()` and `tfim_square_magnetization()`, that follow the same function signature except without the `shots` argument.
41
+
40
42
  ## About
41
43
  Transverse field Ising model (TFIM) is the basis of most claimed algorithmic "quantum advantage," circa 2025, with the notable exception of Shor's integer factoring algorithm.
42
44
 
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
8
8
 
9
9
  [project]
10
10
  name = "PyQrackIsing"
11
- version = "1.0.1"
11
+ version = "1.2.0"
12
12
  requires-python = ">=3.8"
13
13
  description = "Near-ideal closed-form solutions for transverse field Ising model (TFIM)"
14
14
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -40,7 +40,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
40
40
 
41
41
  setup(
42
42
  name='PyQrackIsing',
43
- version='1.0.1',
43
+ version='1.2.0',
44
44
  author='Dan Strano',
45
45
  author_email='stranoj@gmail.com',
46
46
  description='Near-ideal closed-form solutions for transverse field Ising model (TFIM)',
@@ -1 +0,0 @@
1
- from .generate_tfim_samples import generate_tfim_samples
@@ -1,5 +0,0 @@
1
- import tfim_sampler
2
-
3
-
4
- def generate_tfim_samples(J=-1.0, h=2.0, theta=0.174532925199432957, t=5, n_qubits=56, shots=100):
5
- return [int(s) for s in tfim_sampler._generate_tfim_samples(J, h, theta, t, n_qubits, shots)]
File without changes
File without changes