quantum-loop 0.2.0__py3-none-any.whl → 0.2.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 quantum-loop might be problematic. Click here for more details.
- {quantum_loop-0.2.0.dist-info → quantum_loop-0.2.1.dist-info}/METADATA +17 -11
- {quantum_loop-0.2.0.dist-info → quantum_loop-0.2.1.dist-info}/RECORD +4 -4
- {quantum_loop-0.2.0.dist-info → quantum_loop-0.2.1.dist-info}/WHEEL +0 -0
- {quantum_loop-0.2.0.dist-info → quantum_loop-0.2.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantum-loop
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A set of tools for quantum calculations.
|
|
5
5
|
Project-URL: Homepage, https://github.com/kebasyaty/quantum-loop
|
|
6
6
|
Project-URL: Repository, https://github.com/kebasyaty/quantum-loop
|
|
@@ -94,22 +94,28 @@ uv add quantum-loop
|
|
|
94
94
|
## Usage
|
|
95
95
|
|
|
96
96
|
```python
|
|
97
|
-
from ql import
|
|
97
|
+
from ql import QuantumLoop, count_qubits
|
|
98
98
|
|
|
99
|
-
# Counting the number of conceptual qubits of your computer.
|
|
100
|
-
num = count_qubits()
|
|
101
|
-
print(num) # => 16
|
|
102
99
|
|
|
103
|
-
def task(item):
|
|
100
|
+
def task(item: int) -> int:
|
|
104
101
|
"""Quantum."""
|
|
105
102
|
return item * item
|
|
106
103
|
|
|
107
|
-
data = range(10)
|
|
108
104
|
|
|
109
|
-
|
|
110
|
-
#
|
|
111
|
-
|
|
112
|
-
print(
|
|
105
|
+
def main() -> None:
|
|
106
|
+
# Counting the number of conceptual qubits of your computer.
|
|
107
|
+
num = count_qubits()
|
|
108
|
+
print(num) # => 16
|
|
109
|
+
|
|
110
|
+
# Separation of the cycle into quantum algorithms for
|
|
111
|
+
# multiprocessing data processing.
|
|
112
|
+
data = range(10)
|
|
113
|
+
results = QuantumLoop(task, data).run()
|
|
114
|
+
print(results) # => [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
if __name__ == "__main__":
|
|
118
|
+
main()
|
|
113
119
|
```
|
|
114
120
|
|
|
115
121
|
## Changelog
|
|
@@ -2,7 +2,7 @@ ql/__init__.py,sha256=ZRQ0z14P0H_TEUnAspjNJuWxDul-S03U8iVa5Tg8SQc,607
|
|
|
2
2
|
ql/loop.py,sha256=Lcx_b_FQHOnf7HDJKAll8rzU_6f8EU4V5ozaLPj5kMI,4132
|
|
3
3
|
ql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ql/utils.py,sha256=MPRUYSlD8DN7Hb28X3ru9bBnsiQ39IPAQ0w23sikRZM,579
|
|
5
|
-
quantum_loop-0.2.
|
|
6
|
-
quantum_loop-0.2.
|
|
7
|
-
quantum_loop-0.2.
|
|
8
|
-
quantum_loop-0.2.
|
|
5
|
+
quantum_loop-0.2.1.dist-info/METADATA,sha256=RuaNLOFrZ9msd50f2PSI8TH0GgmRbxigqR-f79Mvb6Y,5978
|
|
6
|
+
quantum_loop-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
quantum_loop-0.2.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
+
quantum_loop-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|