quantum-loop 0.2.2__py3-none-any.whl → 0.2.3__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.

ql/loop.py CHANGED
@@ -27,11 +27,11 @@ class QuantumLoop:
27
27
 
28
28
  Examples:
29
29
  >>> from ql import QuantumLoop
30
- >>> def task(item):
31
- ... return item * item
32
- >>> data = range(10)
30
+ >>> def task(num: int) -> int | None:
31
+ ... return num * num if num % 2 == 0 else None
32
+ >>> data = range(1, 10)
33
33
  >>> QuantumLoop(task, data).run()
34
- [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
34
+ [4, 16, 36, 64]
35
35
 
36
36
  Args:
37
37
  task: Function with a task algorithm.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantum-loop
3
- Version: 0.2.2
3
+ Version: 0.2.3
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
@@ -31,7 +31,7 @@ Description-Content-Type: text/markdown
31
31
  <p align="center">
32
32
  <a href="https://github.com/kebasyaty/quantum-loop">
33
33
  <img
34
- height="90"
34
+ height="80"
35
35
  alt="Logo"
36
36
  src="https://raw.githubusercontent.com/kebasyaty/quantum-loop/main/assets/logo.svg">
37
37
  </a>
@@ -0,0 +1,8 @@
1
+ ql/__init__.py,sha256=NLJqDzx9z_phVVusAGUxDyKJhW35_1Ex0PoiZbvStsQ,607
2
+ ql/loop.py,sha256=93zLjIp2_ao7AcQYtYKcpNd5wtaNEs46KoPy4obP0ZY,3802
3
+ ql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ ql/utils.py,sha256=7q9hj1Z3Yqmo2t4EpXDu5aQ8AaRpS984TsjHbiNaeCA,868
5
+ quantum_loop-0.2.3.dist-info/METADATA,sha256=U0QE-6IsCvOY15-0GRdTC9fRa1DK3LBwwpT--WT2jEQ,5990
6
+ quantum_loop-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ quantum_loop-0.2.3.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
8
+ quantum_loop-0.2.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- ql/__init__.py,sha256=NLJqDzx9z_phVVusAGUxDyKJhW35_1Ex0PoiZbvStsQ,607
2
- ql/loop.py,sha256=4gU1lv_YbDfB3Ed03gzmFIhwOKlOwCCsw0zCfTUE4bI,3778
3
- ql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ql/utils.py,sha256=7q9hj1Z3Yqmo2t4EpXDu5aQ8AaRpS984TsjHbiNaeCA,868
5
- quantum_loop-0.2.2.dist-info/METADATA,sha256=VjBC02si27KKEXmuTpLTzfXppY2j6lMWcFBGP0Cx44o,5990
6
- quantum_loop-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- quantum_loop-0.2.2.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
8
- quantum_loop-0.2.2.dist-info/RECORD,,