Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved ISA error by adding fixed qiskit-algorithms fork #89

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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