pyqrack-cpu 1.53.0__tar.gz → 1.53.1__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.1}/MANIFEST.in +1 -0
- pyqrack_cpu-1.53.1/Makefile +55 -0
- {pyqrack_cpu-1.53.0/pyqrack_cpu.egg-info → pyqrack_cpu-1.53.1}/PKG-INFO +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack_cpu.egg-info/SOURCES.txt +1 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/setup.py +1 -1
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/LICENSE +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/README.md +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyproject.toml +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_ace_backend.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack_cpu.egg-info/requires.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/pyqrack_cpu.egg-info/top_level.txt +0 -0
- {pyqrack_cpu-1.53.0 → pyqrack_cpu-1.53.1}/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
|
|
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
|
|
File without changes
|