Skip to content

Commit

Permalink
Merge pull request #89 from BrunoRosendo/feature/qaoa-fork
Browse files Browse the repository at this point in the history
Solved ISA error by adding fixed qiskit-algorithms fork
  • Loading branch information
BrunoRosendo authored May 15, 2024
2 parents ebf7f76 + c26ed86 commit 309b282
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/qiskit_algorithms"]
path = src/qiskit_algorithms
url = https://github.com/BrunoRosendo/qiskit-algorithms
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dotenv import load_dotenv

from src.solver.qubo.CplexSolver import CplexSolver
from src.solver.qubo.CplexSolver import CplexSolver, get_backend_sampler

if __name__ == "__main__":
load_dotenv()
Expand All @@ -16,6 +16,8 @@
(0, 1, 6),
],
True,
sampler=get_backend_sampler(),
warm_start=True,
)
result = cvrp.solve()
result.print()
1 change: 1 addition & 0 deletions src/qiskit_algorithms
Submodule qiskit_algorithms added at a5df93
2 changes: 1 addition & 1 deletion src/solver/qubo/CplexSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from docplex.util.status import JobSolveStatus
from numpy import ndarray
from qiskit.primitives import Sampler
from qiskit_algorithms import QAOA
from qiskit_algorithms.optimizers import COBYLA, Optimizer
from qiskit_ibm_runtime import (
QiskitRuntimeService,
Expand All @@ -28,6 +27,7 @@

from src.model.VRPSolution import VRPSolution
from src.model.adapter.CplexAdapter import CplexAdapter
from src.qiskit_algorithms.qiskit_algorithms import QAOA
from src.solver.qubo.QuboSolver import QuboSolver

DEFAULT_SAMPLER = Sampler()
Expand Down

0 comments on commit 309b282

Please sign in to comment.