pyqrack-cpu 1.34.8__py3-none-win_amd64.whl → 1.35.4__py3-none-win_amd64.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.
- pyqrack/qrack_simulator.py +2 -2
- pyqrack/qrack_system/qrack_lib/qrack_pinvoke.dll +0 -0
- {pyqrack_cpu-1.34.8.dist-info → pyqrack_cpu-1.35.4.dist-info}/METADATA +8 -6
- {pyqrack_cpu-1.34.8.dist-info → pyqrack_cpu-1.35.4.dist-info}/RECORD +7 -7
- {pyqrack_cpu-1.34.8.dist-info → pyqrack_cpu-1.35.4.dist-info}/LICENSE +0 -0
- {pyqrack_cpu-1.34.8.dist-info → pyqrack_cpu-1.35.4.dist-info}/WHEEL +0 -0
- {pyqrack_cpu-1.34.8.dist-info → pyqrack_cpu-1.35.4.dist-info}/top_level.txt +0 -0
pyqrack/qrack_simulator.py
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import copy
|
|
7
7
|
import ctypes
|
|
8
8
|
import math
|
|
9
|
+
import os
|
|
9
10
|
import re
|
|
10
11
|
from .qrack_system import Qrack
|
|
11
12
|
from .pauli import Pauli
|
|
12
13
|
|
|
13
14
|
_IS_QISKIT_AVAILABLE = True
|
|
14
15
|
try:
|
|
15
|
-
from qiskit.circuit import QuantumRegister, Qubit
|
|
16
16
|
from qiskit.circuit.quantumcircuit import QuantumCircuit
|
|
17
17
|
from qiskit.compiler import transpile
|
|
18
18
|
from qiskit.qobj.qasm_qobj import QasmQobjExperiment
|
|
@@ -60,7 +60,7 @@ class QrackSimulator:
|
|
|
60
60
|
isPaged=True,
|
|
61
61
|
isCpuGpuHybrid=True,
|
|
62
62
|
isOpenCL=True,
|
|
63
|
-
isHostPointer=False,
|
|
63
|
+
isHostPointer=True if os.environ.get('PYQRACK_HOST_POINTER_DEFAULT_ON') else False,
|
|
64
64
|
noise=0,
|
|
65
65
|
pyzxCircuit=None,
|
|
66
66
|
qiskitCircuit=None,
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyqrack-cpu
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.35.4
|
|
4
4
|
Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
|
|
5
5
|
Home-page: https://github.com/vm6502q/pyqrack
|
|
6
6
|
Author: Daniel Strano
|
|
@@ -47,13 +47,15 @@ Pure Python bindings for the pure C++11 Qrack quantum computer simulator library
|
|
|
47
47
|
|
|
48
48
|
(**PyQrack** is just pure Qrack.)
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
This is the **purely CPU-based** variant of PyQrack (with module name `pyqrack-cpu`). This alternate build of PyQrack is provided so that systems that won't use OpenCL or CUDA anyway (such as because they lack any GPUs or other accelerators like the Intel HD) do not need to install the OpenCL library in order to use PyQrack. In this form, both the PyQrack module and the underlying C++ Qrack library are entirely external **dependency-free.**
|
|
51
|
+
|
|
52
|
+
**If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
|
|
52
53
|
|
|
53
54
|
(**If you installing from source,** it doesn't matter whether you use `pyqrack` or `pyqrack-cpu`, because the build version of C++ Qrack you intend to use must already be installed locally.)
|
|
54
|
-
|
|
55
|
-
**
|
|
56
|
-
|
|
55
|
+
|
|
56
|
+
**If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
|
|
57
|
+
|
|
58
|
+
**Performance can benefit greatly from following the [Qrack repository "Quick Start" and "Power user considerations."](https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start)**
|
|
57
59
|
|
|
58
60
|
Import and instantiate [`QrackSimulator`](https://github.com/unitaryfund/pyqrack/blob/main/pyqrack/qrack_simulator.py) instances. This simulator can perform arbitrary single qubit and controlled-single-qubit gates, as well as other specific gates like `SWAP`.
|
|
59
61
|
|
|
@@ -3,15 +3,15 @@ pyqrack/neuron_activation_fn.py,sha256=cvljN3vvoH71uPva8EFKxJomgiQMo7zqud2JoSpKT
|
|
|
3
3
|
pyqrack/pauli.py,sha256=NgtZd4aBN4l8Car14Ris9lZ1Y5JDfNNCN7kDRuo9vWk,673
|
|
4
4
|
pyqrack/qrack_circuit.py,sha256=6Km-AMtt2aG6cjriSMBULGPOzPzNCp8ewyPEG2ii7Ic,19649
|
|
5
5
|
pyqrack/qrack_neuron.py,sha256=kMQH2vlajXvkrycNcCs1A1odyp8-CMmaJKEujP4mi0I,9086
|
|
6
|
-
pyqrack/qrack_simulator.py,sha256=
|
|
6
|
+
pyqrack/qrack_simulator.py,sha256=3mawPZArtQKVmKL5Rqi0v4nl7n9mmiXEHJZYwzWZDig,137224
|
|
7
7
|
pyqrack/quimb_circuit_type.py,sha256=fNsmfK9JoNdYN1_Clm9pmS_FTinNsGKJnKQID6L4Bgk,638
|
|
8
8
|
pyqrack/qrack_system/__init__.py,sha256=PUterej-xpA4BqFmiBrQCMeTQlsRf-K8Dxnwp-iVvUQ,343
|
|
9
9
|
pyqrack/qrack_system/qrack_system.py,sha256=fj58altw0xryjrb-Oi-S_HDcUb2Ft0Alp1UNOvtSF9E,43081
|
|
10
|
-
pyqrack/qrack_system/qrack_lib/qrack_pinvoke.dll,sha256=
|
|
10
|
+
pyqrack/qrack_system/qrack_lib/qrack_pinvoke.dll,sha256=TlfYDckM_zNWmRet5kOrATM8tSGyATpr1OWi8s56I48,1696768
|
|
11
11
|
pyqrack/util/__init__.py,sha256=cx9yH6Px9cIpBdLO3rftxscbXKUneB36nGRoA68x42c,341
|
|
12
12
|
pyqrack/util/convert_qiskit_circuit_to_qasm_experiment.py,sha256=tcICZbIhTpM4hU_OfiS_n142cVoER9vR3ZWMaVf9-Zs,2126
|
|
13
|
-
pyqrack_cpu-1.
|
|
14
|
-
pyqrack_cpu-1.
|
|
15
|
-
pyqrack_cpu-1.
|
|
16
|
-
pyqrack_cpu-1.
|
|
17
|
-
pyqrack_cpu-1.
|
|
13
|
+
pyqrack_cpu-1.35.4.dist-info/LICENSE,sha256=IdAVedmFOPQtHi_XeEI9OhJwUuwlT6tCJwrT55zAn3w,1090
|
|
14
|
+
pyqrack_cpu-1.35.4.dist-info/METADATA,sha256=TYiif4TAiiFyWSbP-ZFm-aQzc_NIyyMs6d7rGm9pb34,6560
|
|
15
|
+
pyqrack_cpu-1.35.4.dist-info/WHEEL,sha256=JMWfR_Dj7ISokcwe0cBhCfK6JKnIi-ZX11L6d_ntt6o,98
|
|
16
|
+
pyqrack_cpu-1.35.4.dist-info/top_level.txt,sha256=YE_3q9JTGRLMilNg2tGP1y7uU-Dx8PDao2OhwoIbv8E,8
|
|
17
|
+
pyqrack_cpu-1.35.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|