pyqrack-cuda 1.42.1__tar.gz → 1.42.3__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 (27) hide show
  1. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/Makefile +1 -1
  2. {pyqrack_cuda-1.42.1/pyqrack_cuda.egg-info → pyqrack_cuda-1.42.3}/PKG-INFO +1 -1
  3. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_neuron_torch_layer.py +4 -5
  4. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/stats/quantize_by_range.py +2 -2
  5. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3/pyqrack_cuda.egg-info}/PKG-INFO +1 -1
  6. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/setup.py +1 -1
  7. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/LICENSE +0 -0
  8. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/MANIFEST.in +0 -0
  9. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/README.md +0 -0
  10. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyproject.toml +0 -0
  11. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/__init__.py +0 -0
  12. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/neuron_activation_fn.py +0 -0
  13. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/pauli.py +0 -0
  14. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_circuit.py +0 -0
  15. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_neuron.py +0 -0
  16. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_simulator.py +0 -0
  17. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_system/__init__.py +0 -0
  18. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/qrack_system/qrack_system.py +0 -0
  19. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/quimb_circuit_type.py +0 -0
  20. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/stats/__init__.py +0 -0
  21. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack/stats/load_quantized_data.py +0 -0
  22. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack_cuda.egg-info/SOURCES.txt +0 -0
  23. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack_cuda.egg-info/dependency_links.txt +0 -0
  24. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack_cuda.egg-info/not-zip-safe +0 -0
  25. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack_cuda.egg-info/requires.txt +0 -0
  26. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/pyqrack_cuda.egg-info/top_level.txt +0 -0
  27. {pyqrack_cuda-1.42.1 → pyqrack_cuda-1.42.3}/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 e68917fdcd2d2ca0da0fabe5e8aea7da5602cfae; cd ..
21
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout a91518f5c7acafb00306698b46221c9b31366aa7; 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-cuda
3
- Version: 1.42.1
3
+ Version: 1.42.3
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -14,7 +14,6 @@ try:
14
14
  except ImportError:
15
15
  _IS_TORCH_AVAILABLE = False
16
16
 
17
- from .qrack_simulator import QrackSimulator
18
17
  from .qrack_neuron import QrackNeuron
19
18
  from .neuron_activation_fn import NeuronActivationFn
20
19
 
@@ -34,7 +33,7 @@ class QrackTorchNeuron(nn.Module if _IS_TORCH_AVAILABLE else object):
34
33
  Attributes:
35
34
  neuron(QrackNeuron): QrackNeuron backing this torch wrapper
36
35
  """
37
- def __init__(self, neuron: QrackNeuron) -> None:
36
+ def __init__(self, neuron: QrackNeuron):
38
37
  super().__init__()
39
38
  self.neuron = neuron
40
39
 
@@ -48,7 +47,7 @@ class QrackTorchNeuron(nn.Module if _IS_TORCH_AVAILABLE else object):
48
47
  class QrackNeuronFunction(Function if _IS_TORCH_AVAILABLE else object):
49
48
  """Static forward/backward/apply functions for QrackTorchNeuron"""
50
49
  @staticmethod
51
- def forward(ctx, neuron: object):
50
+ def forward(ctx, neuron):
52
51
  # Save for backward
53
52
  ctx.neuron = neuron
54
53
 
@@ -75,8 +74,8 @@ class QrackNeuronFunction(Function if _IS_TORCH_AVAILABLE else object):
75
74
 
76
75
  class QrackNeuronTorchLayer(nn.Module if _IS_TORCH_AVAILABLE else object):
77
76
  """Torch layer wrapper for QrackNeuron (with power set of neurons between inputs and outputs)"""
78
- def __init__(self, simulator: object, input_indices: list[int], output_indices: list[int],
79
- activation: int = int(NeuronActivationFn.Generalized_Logistic), parameters: list[float] = None):
77
+ def __init__(self, simulator, input_indices, output_indices,
78
+ activation=int(NeuronActivationFn.Generalized_Logistic), parameters=None):
80
79
  """
81
80
  Initialize a QrackNeuron layer for PyTorch with a power set of neurons connecting inputs to outputs.
82
81
  The inputs and outputs must take the form of discrete, binary features (loaded manually into the backing QrackSimulator)
@@ -7,7 +7,7 @@ try:
7
7
  # Written by Elara (custom OpenAI GPT)
8
8
  import numpy as np
9
9
 
10
- def quantize_by_range(data: np.ndarray, feature_indices: list[int], bits: int) -> np.ndarray:
10
+ def quantize_by_range(data, feature_indices, bits):
11
11
  """
12
12
  Discretize selected features of a dataset into binary variables using numpy.linspace binning.
13
13
 
@@ -35,7 +35,7 @@ try:
35
35
 
36
36
  return np.hstack(new_features)
37
37
  except ImportError:
38
- def quantize_by_range(data, feature_indices: list[int], bits: int):
38
+ def quantize_by_range(data, feature_indices, bits):
39
39
  """
40
40
  Discretize selected features of a dataset into binary variables using numpy.linspace binning.
41
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cuda
3
- Version: 1.42.1
3
+ Version: 1.42.3
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -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.42.1"
10
+ VERSION = "1.42.3"
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
File without changes