pyqrack-cpu-complex128 1.64.1__tar.gz → 1.65.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.

Potentially problematic release.


This version of pyqrack-cpu-complex128 might be problematic. Click here for more details.

Files changed (29) hide show
  1. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/Makefile +1 -1
  2. {pyqrack_cpu_complex128-1.64.1/pyqrack_cpu_complex128.egg-info → pyqrack_cpu_complex128-1.65.0}/PKG-INFO +2 -2
  3. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/README.md +1 -1
  4. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_simulator.py +10 -3
  5. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_system/qrack_system.py +3 -0
  6. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0/pyqrack_cpu_complex128.egg-info}/PKG-INFO +2 -2
  7. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/setup.py +1 -1
  8. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/LICENSE +0 -0
  9. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/MANIFEST.in +0 -0
  10. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyproject.toml +0 -0
  11. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/__init__.py +0 -0
  12. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/neuron_activation_fn.py +0 -0
  13. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/pauli.py +0 -0
  14. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_ace_backend.py +0 -0
  15. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_circuit.py +0 -0
  16. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_neuron.py +0 -0
  17. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  18. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_stabilizer.py +0 -0
  19. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/qrack_system/__init__.py +0 -0
  20. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/quimb_circuit_type.py +0 -0
  21. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/stats/__init__.py +0 -0
  22. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/stats/load_quantized_data.py +0 -0
  23. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack/stats/quantize_by_range.py +0 -0
  24. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack_cpu_complex128.egg-info/SOURCES.txt +0 -0
  25. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack_cpu_complex128.egg-info/dependency_links.txt +0 -0
  26. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack_cpu_complex128.egg-info/not-zip-safe +0 -0
  27. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack_cpu_complex128.egg-info/requires.txt +0 -0
  28. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/pyqrack_cpu_complex128.egg-info/top_level.txt +0 -0
  29. {pyqrack_cpu_complex128-1.64.1 → pyqrack_cpu_complex128-1.65.0}/setup.cfg +0 -0
@@ -18,7 +18,7 @@ help:
18
18
  build-deps:
19
19
  ifneq ($(OS),Windows_NT)
20
20
  ifeq ($(QRACK_PRESENT),)
21
- git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout a2824a9ebaac0bddfb2f5fef86231a4582de0a12; cd ..
21
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout c77f88361c74ff09812307da54ced519e6dcfc9d; cd ..
22
22
  endif
23
23
  mkdir -p qrack/build
24
24
  ifeq ($(UNAME_S),Linux)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu-complex128
3
- Version: 1.64.1
3
+ Version: 1.65.0
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -52,7 +52,7 @@ Dynamic: provides-extra
52
52
  Dynamic: summary
53
53
 
54
54
  # pyqrack
55
- [![Downloads](https://pepy.tech/badge/pyqrack-cpu)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://pepy.tech/badge/pyqrack-cpu/month)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu/week)](https://pepy.tech/project/pyqrack-cpu)
55
+ [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128/month)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu-complex128/week)](https://pepy.tech/project/pyqrack-cpu-complex128)
56
56
 
57
57
  Pure Python bindings for the pure C++11 Qrack quantum computer simulator library
58
58
 
@@ -1,5 +1,5 @@
1
1
  # pyqrack
2
- [![Downloads](https://pepy.tech/badge/pyqrack-cpu)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://pepy.tech/badge/pyqrack-cpu/month)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu/week)](https://pepy.tech/project/pyqrack-cpu)
2
+ [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128/month)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu-complex128/week)](https://pepy.tech/project/pyqrack-cpu-complex128)
3
3
 
4
4
  Pure Python bindings for the pure C++11 Qrack quantum computer simulator library
5
5
 
@@ -1053,9 +1053,16 @@ class QrackSimulator:
1053
1053
  Returns:
1054
1054
  Measurement result of all qubits.
1055
1055
  """
1056
- result = Qrack.qrack_lib.MAll(self.sid)
1057
- self._throw_if_error()
1058
- return result
1056
+ num_q = self.num_qubits()
1057
+ num_words = (num_q + 63) // 64
1058
+ _r = (ctypes.c_ulonglong * num_words)()
1059
+ Qrack.qrack_lib.MAllLong(self.sid, _r)
1060
+ self._throw_if_error()
1061
+ r = 0
1062
+ for w in range(num_words):
1063
+ r <<= 64
1064
+ r |= _r[w]
1065
+ return r
1059
1066
 
1060
1067
  def measure_pauli(self, b, q):
1061
1068
  """Pauli Measurement gate
@@ -790,6 +790,9 @@ class QrackSystem:
790
790
  self.qrack_lib.MAll.restype = c_ulonglong
791
791
  self.qrack_lib.MAll.argtypes = [c_ulonglong]
792
792
 
793
+ self.qrack_lib.MAllLong.restype = None
794
+ self.qrack_lib.MAllLong.argtypes = [c_ulonglong, POINTER(c_ulonglong)]
795
+
793
796
  self.qrack_lib.Measure.restype = c_ulonglong
794
797
  self.qrack_lib.Measure.argtypes = [
795
798
  c_ulonglong,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu-complex128
3
- Version: 1.64.1
3
+ Version: 1.65.0
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -52,7 +52,7 @@ Dynamic: provides-extra
52
52
  Dynamic: summary
53
53
 
54
54
  # pyqrack
55
- [![Downloads](https://pepy.tech/badge/pyqrack-cpu)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://pepy.tech/badge/pyqrack-cpu/month)](https://pepy.tech/project/pyqrack-cpu) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu/week)](https://pepy.tech/project/pyqrack-cpu)
55
+ [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://pepy.tech/badge/pyqrack-cpu-complex128/month)](https://pepy.tech/project/pyqrack-cpu-complex128) [![Downloads](https://static.pepy.tech/badge/pyqrack-cpu-complex128/week)](https://pepy.tech/project/pyqrack-cpu-complex128)
56
56
 
57
57
  Pure Python bindings for the pure C++11 Qrack quantum computer simulator library
58
58
 
@@ -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.64.1"
10
+ VERSION = "1.65.0"
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')