From 5d016aae425c2e0bea3265821a78a2889ea667d0 Mon Sep 17 00:00:00 2001 From: basiav <82549088+basiav@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:05:55 +0200 Subject: [PATCH] Small fix with args for convert_qubo func in advantage.py --- QHyper/solvers/quantum_annealing/dwave/advantage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QHyper/solvers/quantum_annealing/dwave/advantage.py b/QHyper/solvers/quantum_annealing/dwave/advantage.py index 481ba1d..9a7b4c5 100644 --- a/QHyper/solvers/quantum_annealing/dwave/advantage.py +++ b/QHyper/solvers/quantum_annealing/dwave/advantage.py @@ -66,7 +66,7 @@ def __init__(self, self.token = token if use_clique_embedding: - args = self.weigths if self.weigths else [] + args = getattr(self, "weights", []) qubo = Converter.create_qubo(self.problem, args) qubo_terms, offset = convert_qubo_keys(qubo) bqm = BinaryQuadraticModel.from_qubo(qubo_terms, offset=offset)