pyqrack-cuda 1.52.8__tar.gz → 1.53.1__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.
Files changed (29) hide show
  1. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/Makefile +1 -0
  2. {pyqrack_cuda-1.52.8/pyqrack_cuda.egg-info → pyqrack_cuda-1.53.1}/PKG-INFO +2 -2
  3. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/README.md +1 -1
  4. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyproject.toml +2 -1
  5. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_ace_backend.py +3 -4
  6. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1/pyqrack_cuda.egg-info}/PKG-INFO +2 -2
  7. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/setup.py +1 -1
  8. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/LICENSE +0 -0
  9. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/MANIFEST.in +0 -0
  10. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/__init__.py +0 -0
  11. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/neuron_activation_fn.py +0 -0
  12. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/pauli.py +0 -0
  13. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_circuit.py +0 -0
  14. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_neuron.py +0 -0
  15. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  16. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_simulator.py +0 -0
  17. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_stabilizer.py +0 -0
  18. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_system/__init__.py +0 -0
  19. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/qrack_system/qrack_system.py +0 -0
  20. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/quimb_circuit_type.py +0 -0
  21. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/stats/__init__.py +0 -0
  22. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/stats/load_quantized_data.py +0 -0
  23. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack/stats/quantize_by_range.py +0 -0
  24. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack_cuda.egg-info/SOURCES.txt +0 -0
  25. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack_cuda.egg-info/dependency_links.txt +0 -0
  26. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack_cuda.egg-info/not-zip-safe +0 -0
  27. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack_cuda.egg-info/requires.txt +0 -0
  28. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/pyqrack_cuda.egg-info/top_level.txt +0 -0
  29. {pyqrack_cuda-1.52.8 → pyqrack_cuda-1.53.1}/setup.cfg +0 -0
@@ -37,6 +37,7 @@ endif
37
37
  endif
38
38
  endif
39
39
  mkdir pyqrack/qrack_system/qrack_lib; cp qrack/build/libqrack_pinvoke.* pyqrack/qrack_system/qrack_lib/; cd ../../..
40
+ mkdir pyqrack/qrack_system/qrack_cl_precompile; cp qrack/build/qrack_cl_precompile pyqrack/qrack_system/qrack_cl_precompile/; cd ../../..
40
41
 
41
42
  .PHONY: install
42
43
  install:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cuda
3
- Version: 1.52.8
3
+ Version: 1.53.1
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -58,7 +58,7 @@ Pure Python bindings for the pure C++11/OpenCL Qrack quantum computer simulator
58
58
 
59
59
  (**PyQrack** is just pure Qrack.)
60
60
 
61
- **Note, if building from source**: You must build and install [unitaryfund/qrack](https://github.com/unitaryfund/qrack) to build the `main` branch from source. CI/CD builds wheels that contain pre-compiled Qrack binaries, and that is the form published on PyPi. **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
61
+ **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
62
62
 
63
63
  **If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
64
64
 
@@ -5,7 +5,7 @@ Pure Python bindings for the pure C++11/OpenCL Qrack quantum computer simulator
5
5
 
6
6
  (**PyQrack** is just pure Qrack.)
7
7
 
8
- **Note, if building from source**: You must build and install [unitaryfund/qrack](https://github.com/unitaryfund/qrack) to build the `main` branch from source. CI/CD builds wheels that contain pre-compiled Qrack binaries, and that is the form published on PyPi. **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
8
+ **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
9
9
 
10
10
  **If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
11
11
 
@@ -1,6 +1,7 @@
1
1
  [build-system]
2
2
  requires = [
3
3
  "setuptools>=42",
4
- "wheel"
4
+ "wheel",
5
+ "cmake"
5
6
  ]
6
7
  build-backend = "setuptools.build_meta"
@@ -146,8 +146,7 @@ class QrackAceBackend:
146
146
  col_len -= 1
147
147
  row_len = width // col_len
148
148
 
149
- self.col_length = row_len if reverse else col_len
150
- self.row_length = col_len if reverse else row_len
149
+ self.col_length, self.row_length = (row_len, col_len) if reverse else (col_len, row_len)
151
150
 
152
151
  def _ct_pair_prob(self, q1, q2):
153
152
  p1 = self.sim[q1[0]].prob(q1[1])
@@ -534,8 +533,6 @@ class QrackAceBackend:
534
533
  hq1 = self._unpack(lq1)
535
534
  hq2 = self._unpack(lq2)
536
535
 
537
- self._correct(lq1)
538
-
539
536
  if lq1_lr and lq2_lr:
540
537
  b1 = hq1[0]
541
538
  b2 = hq2[0]
@@ -546,6 +543,8 @@ class QrackAceBackend:
546
543
  shadow(b1, b2)
547
544
  return
548
545
 
546
+ self._correct(lq1)
547
+
549
548
  if (lq2_col in connected_cols) and (connected_cols.index(lq2_col) < boundary):
550
549
  # lq2_col < lq1_col
551
550
  self._encode_decode(hq1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cuda
3
- Version: 1.52.8
3
+ Version: 1.53.1
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -58,7 +58,7 @@ Pure Python bindings for the pure C++11/OpenCL Qrack quantum computer simulator
58
58
 
59
59
  (**PyQrack** is just pure Qrack.)
60
60
 
61
- **Note, if building from source**: You must build and install [unitaryfund/qrack](https://github.com/unitaryfund/qrack) to build the `main` branch from source. CI/CD builds wheels that contain pre-compiled Qrack binaries, and that is the form published on PyPi. **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
61
+ **For PyQrack-CUDA, the package is distributed as source-only on PyPi, so that the Qrack build step can do its best to try to automatically detect your available CUDA architectures.**
62
62
 
63
63
  **If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
64
64
 
@@ -7,7 +7,7 @@ from setuptools import setup
7
7
  from setuptools.command.build_py import build_py
8
8
 
9
9
 
10
- VERSION = "1.52.8"
10
+ VERSION = "1.53.1"
11
11
 
12
12
  # Read long description from README.
13
13
  README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
File without changes
File without changes
File without changes