pyqrack-cpu 1.53.0__tar.gz → 1.53.2__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 might be problematic. Click here for more details.
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/MANIFEST.in +1 -0
- pyqrack_cpu-1.53.2/Makefile +55 -0
- {pyqrack_cpu-1.53.0/pyqrack_cpu.egg-info → pyqrack_cpu-1.53.2}/PKG-INFO +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_ace_backend.py +1 -1
- pyqrack_cpu-1.53.2/pyqrack/qrack_system/qrack_cl_precompile/qrack_cl_precompile +0 -0
- pyqrack_cpu-1.53.2/pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so +0 -0
- pyqrack_cpu-1.53.2/pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.20.0 +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack_cpu.egg-info/SOURCES.txt +4 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/setup.py +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/LICENSE +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/README.md +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyproject.toml +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack_cpu.egg-info/requires.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/pyqrack_cpu.egg-info/top_level.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.2}/setup.cfg +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
PYTHON3 := $(shell which python3 2>/dev/null)
|
|
2
|
+
|
|
3
|
+
PYTHON := python3
|
|
4
|
+
|
|
5
|
+
UNAME_S := $(shell uname -s)
|
|
6
|
+
UNAME_P := $(shell uname -p)
|
|
7
|
+
QRACK_PRESENT := $(wildcard qrack/.)
|
|
8
|
+
|
|
9
|
+
.PHONY: help
|
|
10
|
+
help:
|
|
11
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
|
12
|
+
@echo " build-deps to build PennyLane-Qrack C++ dependencies"
|
|
13
|
+
@echo " install to install PennyLane-Qrack"
|
|
14
|
+
@echo " wheel to build the PennyLane-Qrack wheel"
|
|
15
|
+
@echo " dist to package the source distribution"
|
|
16
|
+
|
|
17
|
+
.PHONY: build-deps
|
|
18
|
+
build-deps:
|
|
19
|
+
ifneq ($(OS),Windows_NT)
|
|
20
|
+
ifeq ($(QRACK_PRESENT),)
|
|
21
|
+
git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout f0738286f49fb0ffaeb46d6e5d2294dbfc7f6138; cd ..
|
|
22
|
+
endif
|
|
23
|
+
mkdir -p qrack/build
|
|
24
|
+
ifeq ($(UNAME_S),Linux)
|
|
25
|
+
ifeq ($(UNAME_P),x86_64)
|
|
26
|
+
cd qrack/build; cmake -DENABLE_RDRAND=OFF -DENABLE_DEVRAND=ON -DQBCAPPOW=8 ..; make qrack_pinvoke qrack_cl_precompile
|
|
27
|
+
else
|
|
28
|
+
cd qrack/build; cmake -DENABLE_RDRAND=OFF -DENABLE_DEVRAND=ON -DENABLE_COMPLEX_X2=OFF -DENABLE_SSE3=OFF -DQBCAPPOW=8 ..; make qrack_pinvoke qrack_cl_precompile
|
|
29
|
+
endif
|
|
30
|
+
endif
|
|
31
|
+
ifeq ($(UNAME_S),Darwin)
|
|
32
|
+
ifeq ($(UNAME_P),x86_64)
|
|
33
|
+
cd qrack/build; cmake -DQBCAPPOW=8 ..; make qrack_pinvoke qrack_cl_precompile
|
|
34
|
+
else
|
|
35
|
+
cd qrack/build; cmake -DENABLE_OPENCL=OFF -DENABLE_RDRAND=OFF -DENABLE_COMPLEX_X2=OFF -DENABLE_SSE3=OFF -DQBCAPPOW=8 ..; make qrack_pinvoke qrack_cl_precompile
|
|
36
|
+
endif
|
|
37
|
+
endif
|
|
38
|
+
endif
|
|
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 ../../..
|
|
41
|
+
|
|
42
|
+
.PHONY: install
|
|
43
|
+
install:
|
|
44
|
+
ifndef PYTHON3
|
|
45
|
+
@echo "To install PyQrack you need to have Python 3 installed"
|
|
46
|
+
endif
|
|
47
|
+
$(PYTHON) setup.py install
|
|
48
|
+
|
|
49
|
+
.PHONY: wheel
|
|
50
|
+
wheel:
|
|
51
|
+
$(PYTHON) setup.py bdist_wheel
|
|
52
|
+
|
|
53
|
+
.PHONY: dist
|
|
54
|
+
dist:
|
|
55
|
+
$(PYTHON) setup.py sdist
|
|
@@ -132,7 +132,7 @@ class QrackAceBackend:
|
|
|
132
132
|
|
|
133
133
|
# You can still "monkey-patch" this, after the constructor.
|
|
134
134
|
if "QRACK_QUNIT_SEPARABILITY_THRESHOLD" not in os.environ:
|
|
135
|
-
self.sim[i].set_sdrp(0.
|
|
135
|
+
self.sim[i].set_sdrp(0.03)
|
|
136
136
|
|
|
137
137
|
def clone(self):
|
|
138
138
|
return QrackAceBackend(toClone=self)
|
|
Binary file
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
MANIFEST.in
|
|
3
|
+
Makefile
|
|
3
4
|
README.md
|
|
4
5
|
pyproject.toml
|
|
5
6
|
setup.py
|
|
@@ -15,6 +16,9 @@ pyqrack/qrack_stabilizer.py
|
|
|
15
16
|
pyqrack/quimb_circuit_type.py
|
|
16
17
|
pyqrack/qrack_system/__init__.py
|
|
17
18
|
pyqrack/qrack_system/qrack_system.py
|
|
19
|
+
pyqrack/qrack_system/qrack_cl_precompile/qrack_cl_precompile
|
|
20
|
+
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so
|
|
21
|
+
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.20.0
|
|
18
22
|
pyqrack/stats/__init__.py
|
|
19
23
|
pyqrack/stats/load_quantized_data.py
|
|
20
24
|
pyqrack/stats/quantize_by_range.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|