qhyper 0.3.0__tar.gz → 0.3.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.
Files changed (57) hide show
  1. {qhyper-0.3.0/qhyper.egg-info → qhyper-0.3.1}/PKG-INFO +3 -2
  2. {qhyper-0.3.0 → qhyper-0.3.1/qhyper.egg-info}/PKG-INFO +3 -2
  3. qhyper-0.3.1/setup.py +29 -0
  4. qhyper-0.3.0/setup.py +0 -69
  5. {qhyper-0.3.0 → qhyper-0.3.1}/LICENSE.txt +0 -0
  6. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/__init__.py +0 -0
  7. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/constraint.py +0 -0
  8. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/converter.py +0 -0
  9. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/__init__.py +0 -0
  10. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/base.py +0 -0
  11. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/basinhopping.py +0 -0
  12. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/cem.py +0 -0
  13. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/dummy.py +0 -0
  14. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/grid_search.py +0 -0
  15. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/qml_gradient_descent.py +0 -0
  16. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/random.py +0 -0
  17. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/scipy_minimizer.py +0 -0
  18. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/optimizers/util.py +0 -0
  19. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/parser.py +0 -0
  20. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/polynomial.py +0 -0
  21. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/__init__.py +0 -0
  22. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/base.py +0 -0
  23. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/community_detection.py +0 -0
  24. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/knapsack.py +0 -0
  25. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/maxcut.py +0 -0
  26. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/tsp.py +0 -0
  27. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/problems/workflow_scheduling.py +0 -0
  28. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/__init__.py +0 -0
  29. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/base.py +0 -0
  30. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/classical/__init__.py +0 -0
  31. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/classical/gurobi/__init__.py +0 -0
  32. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/classical/gurobi/gurobi.py +0 -0
  33. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/__init__.py +0 -0
  34. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/pennylane/__init__.py +0 -0
  35. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/pennylane/h_qaoa.py +0 -0
  36. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/pennylane/qaoa.py +0 -0
  37. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/pennylane/qml_qaoa.py +0 -0
  38. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/gate_based/pennylane/wf_qaoa.py +0 -0
  39. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/hyper_optimizer.py +0 -0
  40. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/quantum_annealing/__init__.py +0 -0
  41. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/quantum_annealing/dwave/__init__.py +0 -0
  42. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/quantum_annealing/dwave/advantage.py +0 -0
  43. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/quantum_annealing/dwave/cqm.py +0 -0
  44. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/solvers/quantum_annealing/dwave/dqm.py +0 -0
  45. {qhyper-0.3.0 → qhyper-0.3.1}/QHyper/util.py +0 -0
  46. {qhyper-0.3.0 → qhyper-0.3.1}/README.md +0 -0
  47. {qhyper-0.3.0 → qhyper-0.3.1}/qhyper.egg-info/SOURCES.txt +0 -0
  48. {qhyper-0.3.0 → qhyper-0.3.1}/qhyper.egg-info/dependency_links.txt +0 -0
  49. {qhyper-0.3.0 → qhyper-0.3.1}/qhyper.egg-info/requires.txt +0 -0
  50. {qhyper-0.3.0 → qhyper-0.3.1}/qhyper.egg-info/top_level.txt +0 -0
  51. {qhyper-0.3.0 → qhyper-0.3.1}/setup.cfg +0 -0
  52. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_converter.py +0 -0
  53. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_optimizers.py +0 -0
  54. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_optimizers_full.py +0 -0
  55. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_problems.py +0 -0
  56. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_util.py +0 -0
  57. {qhyper-0.3.0 → qhyper-0.3.1}/tests/test_vqa.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: qhyper
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Quantum and classical problem solvers
5
5
  Author: ACK Cyfronet AGH
6
6
  Author-email: tomasz.lamza@cyfronet.pl
@@ -29,6 +29,7 @@ Dynamic: description
29
29
  Dynamic: description-content-type
30
30
  Dynamic: keywords
31
31
  Dynamic: license
32
+ Dynamic: license-file
32
33
  Dynamic: requires-dist
33
34
  Dynamic: summary
34
35
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: qhyper
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Quantum and classical problem solvers
5
5
  Author: ACK Cyfronet AGH
6
6
  Author-email: tomasz.lamza@cyfronet.pl
@@ -29,6 +29,7 @@ Dynamic: description
29
29
  Dynamic: description-content-type
30
30
  Dynamic: keywords
31
31
  Dynamic: license
32
+ Dynamic: license-file
32
33
  Dynamic: requires-dist
33
34
  Dynamic: summary
34
35
 
qhyper-0.3.1/setup.py ADDED
@@ -0,0 +1,29 @@
1
+ from setuptools import setup, find_packages
2
+
3
+
4
+ DESCRIPTION = 'Quantum and classical problem solvers'
5
+ LONG_DESCRIPTION = 'A package that allows to build and solve quantum and classical problems using predefined solvers and problems.'
6
+
7
+
8
+ # Setting up
9
+ setup(
10
+ name="qhyper",
11
+ version='0.3.1',
12
+ author="ACK Cyfronet AGH",
13
+ author_email="tomasz.lamza@cyfronet.pl",
14
+ description=DESCRIPTION,
15
+ long_description_content_type="text/markdown",
16
+ long_description=LONG_DESCRIPTION,
17
+ packages=find_packages(exclude=['tests']),
18
+ install_requires=['numpy~=1.26.4', 'PennyLane~=0.38', 'tdqm', 'sympy==1.13.1', 'dwave-system', 'gurobipy', 'pandas', 'wfcommons'],
19
+ keywords=['python', 'qhyper', 'quantum', 'solver', 'experiment'],
20
+ license='MIT',
21
+ classifiers=[
22
+ "Development Status :: 1 - Planning",
23
+ "Intended Audience :: Developers",
24
+ "Programming Language :: Python :: 3",
25
+ "Operating System :: Unix",
26
+ "Operating System :: MacOS :: MacOS X",
27
+ "Operating System :: Microsoft :: Windows",
28
+ ]
29
+ )
qhyper-0.3.0/setup.py DELETED
@@ -1,69 +0,0 @@
1
- from setuptools import setup, find_packages
2
- import codecs
3
- import os
4
- import re
5
- import subprocess
6
-
7
-
8
- here = os.path.abspath(os.path.dirname(__file__))
9
-
10
- with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
11
- long_description = "\n" + fh.read()
12
-
13
-
14
- def is_valid_version(tag: str) -> bool:
15
- # Basic PEP 440 version regex (supporting versions like 1.0.0, 1.0, 1.0a1, 1.0.dev1, etc.)
16
- pattern = r"^\d+(\.\d+){0,2}([a-z]+\d+)?(\.post\d+)?(\.dev\d+)?$"
17
- return bool(re.match(pattern, tag))
18
-
19
-
20
- def get_version():
21
- try:
22
- tag = subprocess.check_output(["git", "describe", "--tags"]).strip().decode("utf-8")
23
- tag = tag.replace('test/', '')
24
- has_v_prefix = tag.startswith('v')
25
- version_core = tag[1:] if has_v_prefix else tag
26
- final_version = None
27
- if is_valid_version(version_core):
28
- final_version = f"v{version_core}" if has_v_prefix else version_core
29
- else:
30
- git_describe_pattern = r"^(\d+\.\d+\.\d+)-(\d+)-g[0-9a-f]+$"
31
- match = re.match(git_describe_pattern, version_core)
32
- if match:
33
- base_version, commit_count = match.groups()
34
- fixed_version = f"{base_version}.post{commit_count}"
35
- final_version = f"v{fixed_version}" if has_v_prefix else fixed_version
36
-
37
- raise ValueError(f"Cannot automatically fix version '{tag}'")
38
- return final_version
39
- except Exception as e:
40
- print("Error:", e)
41
- return "0.dev1" # Default version if Git tag extraction fails
42
-
43
-
44
- DESCRIPTION = 'Quantum and classical problem solvers'
45
- LONG_DESCRIPTION = 'A package that allows to build and solve quantum and classical problems using predefined solvers and problems.'
46
-
47
-
48
- # Setting up
49
- setup(
50
- name="qhyper",
51
- version=get_version(),
52
- author="ACK Cyfronet AGH",
53
- author_email="tomasz.lamza@cyfronet.pl",
54
- description=DESCRIPTION,
55
- long_description_content_type="text/markdown",
56
- long_description=LONG_DESCRIPTION,
57
- packages=find_packages(exclude=['tests']),
58
- install_requires=['numpy~=1.26.4', 'PennyLane~=0.38', 'tdqm', 'sympy==1.13.1', 'dwave-system', 'gurobipy', 'pandas', 'wfcommons'],
59
- keywords=['python', 'qhyper', 'quantum', 'solver', 'experiment'],
60
- license='MIT',
61
- classifiers=[
62
- "Development Status :: 1 - Planning",
63
- "Intended Audience :: Developers",
64
- "Programming Language :: Python :: 3",
65
- "Operating System :: Unix",
66
- "Operating System :: MacOS :: MacOS X",
67
- "Operating System :: Microsoft :: Windows",
68
- ]
69
- )
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