xloft 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.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 xloft might be problematic. Click here for more details.
xloft/quantum.py
CHANGED
|
@@ -10,9 +10,9 @@ but it is a concept of the principle of operation of quantum calculations on a r
|
|
|
10
10
|
|
|
11
11
|
The module contains the following tools:
|
|
12
12
|
|
|
13
|
-
- `count_qubits()` - Counting the number of qubits of your computer.
|
|
14
13
|
- `LoopMode` - Quantum loop mode.
|
|
15
|
-
- `
|
|
14
|
+
- `count_qubits()` - Counting the number of conceptual qubits of your computer.
|
|
15
|
+
- `QuantumLoop` - Separation of the cycle into quantum algorithms for multiprocessing data processing.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
@@ -24,6 +24,13 @@ from enum import Enum
|
|
|
24
24
|
from typing import Any, Never, assert_never
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
class LoopMode(Enum):
|
|
28
|
+
"""Quantum loop mode."""
|
|
29
|
+
|
|
30
|
+
PROCESS_POOL = 1
|
|
31
|
+
THREAD_POOL = 2
|
|
32
|
+
|
|
33
|
+
|
|
27
34
|
def count_qubits() -> int:
|
|
28
35
|
"""Counting the number of conceptual qubits of your computer.
|
|
29
36
|
|
|
@@ -43,13 +50,6 @@ def count_qubits() -> int:
|
|
|
43
50
|
return multiprocessing.cpu_count()
|
|
44
51
|
|
|
45
52
|
|
|
46
|
-
class LoopMode(Enum):
|
|
47
|
-
"""Quantum loop mode."""
|
|
48
|
-
|
|
49
|
-
PROCESS_POOL = 1
|
|
50
|
-
THREAD_POOL = 2
|
|
51
|
-
|
|
52
|
-
|
|
53
53
|
class QuantumLoop:
|
|
54
54
|
"""Separation of the cycle into quantum algorithms for multiprocessing data processing.
|
|
55
55
|
|
|
@@ -3,8 +3,8 @@ xloft/errors.py,sha256=hZcmF0QVVdvE5oM1jsXymRk_pPGgDSnUDM9wx9zJAYQ,895
|
|
|
3
3
|
xloft/humanism.py,sha256=odRbUF_58YuFWC_VQeRDZ-6ifHDiiAH2HNb5G5K6JIM,1106
|
|
4
4
|
xloft/namedtuple.py,sha256=a_l3bZF-L2I7MGxuF2CXzAHgNai-Vyj6SY1ODwxs7TU,6856
|
|
5
5
|
xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
xloft/quantum.py,sha256=
|
|
7
|
-
xloft-0.3.
|
|
8
|
-
xloft-0.3.
|
|
9
|
-
xloft-0.3.
|
|
10
|
-
xloft-0.3.
|
|
6
|
+
xloft/quantum.py,sha256=6Na7_4JrcWIjgst-mfpKeahyWanreocLKqxd87I9AGU,4721
|
|
7
|
+
xloft-0.3.1.dist-info/METADATA,sha256=jV8OFpQnScSwWVwMZ2x1GugwayQw0yzm_omagriIoA8,7235
|
|
8
|
+
xloft-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
+
xloft-0.3.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
10
|
+
xloft-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|