pyqrack-cpu 1.42.0__py3-none-manylinux_2_39_x86_64.whl → 1.42.2__py3-none-manylinux_2_39_x86_64.whl

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 might be problematic. Click here for more details.

@@ -28,13 +28,13 @@ def powerset(iterable):
28
28
  return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
29
29
 
30
30
 
31
- class QrackTorchNeuron(nn.Module):
31
+ class QrackTorchNeuron(nn.Module if _IS_TORCH_AVAILABLE else object):
32
32
  """Torch wrapper for QrackNeuron
33
33
 
34
34
  Attributes:
35
35
  neuron(QrackNeuron): QrackNeuron backing this torch wrapper
36
36
  """
37
- def __init__(self, neuron: QrackNeuron) -> None:
37
+ def __init__(self, neuron: QrackNeuron):
38
38
  super().__init__()
39
39
  self.neuron = neuron
40
40
 
@@ -48,7 +48,7 @@ class QrackTorchNeuron(nn.Module):
48
48
  class QrackNeuronFunction(Function if _IS_TORCH_AVAILABLE else object):
49
49
  """Static forward/backward/apply functions for QrackTorchNeuron"""
50
50
  @staticmethod
51
- def forward(ctx, neuron: object):
51
+ def forward(ctx, neuron):
52
52
  # Save for backward
53
53
  ctx.neuron = neuron
54
54
 
@@ -75,8 +75,8 @@ class QrackNeuronFunction(Function if _IS_TORCH_AVAILABLE else object):
75
75
 
76
76
  class QrackNeuronTorchLayer(nn.Module if _IS_TORCH_AVAILABLE else object):
77
77
  """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):
78
+ def __init__(self, simulator, input_indices, output_indices,
79
+ activation=int(NeuronActivationFn.Generalized_Logistic), parameters=None):
80
80
  """
81
81
  Initialize a QrackNeuron layer for PyTorch with a power set of neurons connecting inputs to outputs.
82
82
  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-cpu
3
- Version: 1.42.0
3
+ Version: 1.42.2
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -3,7 +3,7 @@ pyqrack/neuron_activation_fn.py,sha256=NYG78IFCiJ586E9oA6lJl38Rl18_WFfcdL6I2NYfi
3
3
  pyqrack/pauli.py,sha256=wg500wDOwdIU4lEVJoMmjtbAdmtakZYzLPjdzC2rwUQ,654
4
4
  pyqrack/qrack_circuit.py,sha256=TyppOMNk_0nolChMRewf4CfQGuYiEUJ8qUWWN6y03PE,19093
5
5
  pyqrack/qrack_neuron.py,sha256=oEvMnkFFOUBXFbIXYYY-Nir3yTo0nyw_xoRdNXeSEgk,8843
6
- pyqrack/qrack_neuron_torch_layer.py,sha256=pXl-gYmhCWR1cmZs3OCpfzv-r6x7v-UeCjpFqa-Fy_I,5901
6
+ pyqrack/qrack_neuron_torch_layer.py,sha256=3eI69O6RRDsuBVjJWjrxidquQVjnbYzY1pZYuutgn-s,5868
7
7
  pyqrack/qrack_simulator.py,sha256=Q3xMsX299EgMtjikgBGjivy3bFxcoQF7MHcEy9xoaO8,133692
8
8
  pyqrack/quimb_circuit_type.py,sha256=Sk-Tmn38kUYmAkJJ75btWuhYZyTXOOezmowFhfdiGDc,621
9
9
  pyqrack/qrack_system/__init__.py,sha256=-oZ9dsb1hixsnrkUJRY_C5DzQ_l6MtifF_Z465BgqV4,334
@@ -12,9 +12,9 @@ pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so,sha256=zFSjONnDBmXvK42O_5LP_7
12
12
  pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.18.6,sha256=zFSjONnDBmXvK42O_5LP_7_FipCky-RBMxLQqUiO5TM,3526496
13
13
  pyqrack/stats/__init__.py,sha256=Hla85my2fY_roR9lIjGBVpEG7ySOTMwjWa8D6-kgCnY,276
14
14
  pyqrack/stats/load_quantized_data.py,sha256=10-ZULlnSX45br7fDtJuiCzcMTAL4eI3QyhSENXZjgM,1162
15
- pyqrack/stats/quantize_by_range.py,sha256=dcJPokBoL5Slkhelw7MkW0svdBMo3z-eGDjlyGDpx9c,2269
16
- pyqrack_cpu-1.42.0.dist-info/licenses/LICENSE,sha256=HxB-7SaWTuewAk1nz-3_3FUD6QhgX73kNT_taKVUTq8,1069
17
- pyqrack_cpu-1.42.0.dist-info/METADATA,sha256=r7kryOKVQ-MyvANhCS5PCRoN-w_MYXlBk-0t99AATTo,6702
18
- pyqrack_cpu-1.42.0.dist-info/WHEEL,sha256=2dDEv1OnJh6_EFnhSLUygQ_09It4h5t5g-sSAIbZVs0,109
19
- pyqrack_cpu-1.42.0.dist-info/top_level.txt,sha256=YE_3q9JTGRLMilNg2tGP1y7uU-Dx8PDao2OhwoIbv8E,8
20
- pyqrack_cpu-1.42.0.dist-info/RECORD,,
15
+ pyqrack/stats/quantize_by_range.py,sha256=OjY0I8PGbellrRfdIyiC0RLdpdbbJex3C2D_bapNIqE,2211
16
+ pyqrack_cpu-1.42.2.dist-info/licenses/LICENSE,sha256=HxB-7SaWTuewAk1nz-3_3FUD6QhgX73kNT_taKVUTq8,1069
17
+ pyqrack_cpu-1.42.2.dist-info/METADATA,sha256=kANvQ-vyWzUCo5T3InFGPG6nk7ieAzfGjB1gOHPXIVI,6702
18
+ pyqrack_cpu-1.42.2.dist-info/WHEEL,sha256=2dDEv1OnJh6_EFnhSLUygQ_09It4h5t5g-sSAIbZVs0,109
19
+ pyqrack_cpu-1.42.2.dist-info/top_level.txt,sha256=YE_3q9JTGRLMilNg2tGP1y7uU-Dx8PDao2OhwoIbv8E,8
20
+ pyqrack_cpu-1.42.2.dist-info/RECORD,,