qhyper 0.3.3__tar.gz → 0.3.4__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.
- {qhyper-0.3.3/qhyper.egg-info → qhyper-0.3.4}/PKG-INFO +1 -1
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/quantum_annealing/dwave/advantage.py +5 -13
- {qhyper-0.3.3 → qhyper-0.3.4/qhyper.egg-info}/PKG-INFO +1 -1
- {qhyper-0.3.3 → qhyper-0.3.4}/setup.py +1 -1
- {qhyper-0.3.3 → qhyper-0.3.4}/LICENSE.txt +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/constraint.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/converter.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/base.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/basinhopping.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/cem.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/dummy.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/grid_search.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/qml_gradient_descent.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/random.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/scipy_minimizer.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/optimizers/util.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/parser.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/polynomial.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/base.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/community_detection.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/knapsack.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/maxcut.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/tsp.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/problems/workflow_scheduling.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/base.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/classical/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/classical/gurobi/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/classical/gurobi/gurobi.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/pennylane/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/pennylane/h_qaoa.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/pennylane/qaoa.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/pennylane/qml_qaoa.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/gate_based/pennylane/wf_qaoa.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/hyper_optimizer.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/quantum_annealing/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/quantum_annealing/dwave/__init__.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/quantum_annealing/dwave/cqm.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/solvers/quantum_annealing/dwave/dqm.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/QHyper/util.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/README.md +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/qhyper.egg-info/SOURCES.txt +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/qhyper.egg-info/dependency_links.txt +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/qhyper.egg-info/requires.txt +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/qhyper.egg-info/top_level.txt +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/setup.cfg +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_converter.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_optimizers.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_optimizers_full.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_problems.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_util.py +0 -0
- {qhyper-0.3.3 → qhyper-0.3.4}/tests/test_vqa.py +0 -0
|
@@ -28,10 +28,6 @@ class Advantage(Solver):
|
|
|
28
28
|
----------
|
|
29
29
|
problem : Problem
|
|
30
30
|
The problem to be solved.
|
|
31
|
-
version: str, default 'Advantage_system5.4'
|
|
32
|
-
The version of the D-Wave Advantage system.
|
|
33
|
-
region : str, default 'eu-central-1'
|
|
34
|
-
The region in which D-Wave Advantage is available.
|
|
35
31
|
num_reads: int, default 1
|
|
36
32
|
The number of times the solver is run.
|
|
37
33
|
chain_strength: float or None, default None
|
|
@@ -42,12 +38,12 @@ class Advantage(Solver):
|
|
|
42
38
|
The initial parameter settings.
|
|
43
39
|
use_clique_embedding: bool, default False
|
|
44
40
|
Find clique for the embedding
|
|
41
|
+
**config: Any
|
|
42
|
+
Config for the D-Wave solver. Documentation available at https://docs.dwavequantum.com
|
|
45
43
|
"""
|
|
46
44
|
|
|
47
45
|
problem: Problem
|
|
48
46
|
penalty_weights: list[float] | None = None
|
|
49
|
-
version: str = "Advantage_system5.4"
|
|
50
|
-
region: str = "eu-central-1"
|
|
51
47
|
num_reads: int = 1
|
|
52
48
|
chain_strength: float | None = None
|
|
53
49
|
token: str | None = None
|
|
@@ -55,22 +51,18 @@ class Advantage(Solver):
|
|
|
55
51
|
def __init__(self,
|
|
56
52
|
problem: Problem,
|
|
57
53
|
penalty_weights: list[float] | None = None,
|
|
58
|
-
version: str = "Advantage_system5.4",
|
|
59
|
-
region: str = "eu-central-1",
|
|
60
54
|
num_reads: int = 1,
|
|
61
55
|
chain_strength: float | None = None,
|
|
62
56
|
use_clique_embedding: bool = False,
|
|
63
|
-
token: str | None = None
|
|
57
|
+
token: str | None = None,
|
|
58
|
+
**config: Any) -> None:
|
|
64
59
|
self.problem = problem
|
|
65
60
|
self.penalty_weights = penalty_weights
|
|
66
|
-
self.version = version
|
|
67
|
-
self.region = region
|
|
68
61
|
self.num_reads = num_reads
|
|
69
62
|
self.chain_strength = chain_strength
|
|
70
63
|
self.use_clique_embedding = use_clique_embedding
|
|
71
64
|
self.sampler = DWaveSampler(
|
|
72
|
-
|
|
73
|
-
token=token or DWAVE_API_TOKEN)
|
|
65
|
+
token=token or DWAVE_API_TOKEN, **config)
|
|
74
66
|
self.token = token
|
|
75
67
|
|
|
76
68
|
if use_clique_embedding:
|
|
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
|
|
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
|
|
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
|