pyqrack 1.70.0__py3-none-macosx_13_0_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.
- pyqrack/__init__.py +20 -0
- pyqrack/neuron_activation_fn.py +21 -0
- pyqrack/pauli.py +19 -0
- pyqrack/qrack_ace_backend.py +1544 -0
- pyqrack/qrack_circuit.py +584 -0
- pyqrack/qrack_neuron.py +262 -0
- pyqrack/qrack_neuron_torch_layer.py +170 -0
- pyqrack/qrack_simulator.py +4498 -0
- pyqrack/qrack_stabilizer.py +58 -0
- pyqrack/qrack_system/__init__.py +9 -0
- pyqrack/qrack_system/qrack_cl_precompile/qrack_cl_precompile +0 -0
- pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.9.29.0.dylib +0 -0
- pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.dylib +0 -0
- pyqrack/qrack_system/qrack_system.py +1351 -0
- pyqrack/quimb_circuit_type.py +17 -0
- pyqrack/stats/__init__.py +6 -0
- pyqrack/stats/load_quantized_data.py +35 -0
- pyqrack/stats/quantize_by_range.py +56 -0
- pyqrack-1.70.0.dist-info/LICENSE +21 -0
- pyqrack-1.70.0.dist-info/METADATA +82 -0
- pyqrack-1.70.0.dist-info/RECORD +23 -0
- pyqrack-1.70.0.dist-info/WHEEL +5 -0
- pyqrack-1.70.0.dist-info/top_level.txt +1 -0
pyqrack/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# (C) Daniel Strano and the Qrack contributors 2017-2025. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Use of this source code is governed by an MIT-style license that can be
|
|
4
|
+
# found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
5
|
+
|
|
6
|
+
from .pauli import Pauli
|
|
7
|
+
from .neuron_activation_fn import NeuronActivationFn
|
|
8
|
+
from .quimb_circuit_type import QuimbCircuitType
|
|
9
|
+
from .qrack_ace_backend import QrackAceBackend
|
|
10
|
+
from .qrack_circuit import QrackCircuit
|
|
11
|
+
from .qrack_neuron import QrackNeuron
|
|
12
|
+
from .qrack_neuron_torch_layer import (
|
|
13
|
+
QrackTorchNeuron,
|
|
14
|
+
QrackNeuronFunction,
|
|
15
|
+
QrackNeuronTorchLayer,
|
|
16
|
+
)
|
|
17
|
+
from .qrack_simulator import QrackSimulator
|
|
18
|
+
from .qrack_stabilizer import QrackStabilizer
|
|
19
|
+
from .qrack_system import QrackSystem, Qrack
|
|
20
|
+
from .stats.quantize_by_range import quantize_by_range
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# (C) Daniel Strano and the Qrack contributors 2017-2025. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Pauli operators are specified for "b" (or "basis") parameters.
|
|
4
|
+
#
|
|
5
|
+
# Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
# found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
7
|
+
|
|
8
|
+
from enum import IntEnum
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class NeuronActivationFn(IntEnum):
|
|
12
|
+
# Default
|
|
13
|
+
Sigmoid = 0
|
|
14
|
+
# Rectified linear
|
|
15
|
+
ReLU = 1
|
|
16
|
+
# Gaussian linear
|
|
17
|
+
GeLU = 2
|
|
18
|
+
# Version of (default) "Sigmoid" with tunable sharpness
|
|
19
|
+
Generalized_Logistic = 3
|
|
20
|
+
# Leaky rectified linear
|
|
21
|
+
LeakyReLU = 4
|
pyqrack/pauli.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# (C) Daniel Strano and the Qrack contributors 2017-2025. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Pauli operators are specified for "b" (or "basis") parameters.
|
|
4
|
+
#
|
|
5
|
+
# Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
# found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
7
|
+
|
|
8
|
+
from enum import IntEnum
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Pauli(IntEnum):
|
|
12
|
+
# Pauli Identity operator. Corresponds to Q# constant "PauliI."
|
|
13
|
+
PauliI = 0
|
|
14
|
+
# Pauli X operator. Corresponds to Q# constant "PauliX."
|
|
15
|
+
PauliX = 1
|
|
16
|
+
# Pauli Y operator. Corresponds to Q# constant "PauliY."
|
|
17
|
+
PauliY = 3
|
|
18
|
+
# Pauli Z operator. Corresponds to Q# constant "PauliZ."
|
|
19
|
+
PauliZ = 2
|