Skip to content

Commit

Permalink
add nox file
Browse files Browse the repository at this point in the history
  • Loading branch information
DeborahVolpe committed May 22, 2024
1 parent e320550 commit a29d931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"setuptools>=66.1",
"setuptools_scm>=7",
"wheel>=0.40",
"qiskit==0.45.3"
"qiskit_optimization==0.4.0"
"qiskit_ibm_runtime==0.14.0"
"qiskit==0.45.3",
"qiskit_optimization==0.4.0",
"qiskit_ibm_runtime==0.14.0",
]

if os.environ.get("CI", None):
Expand Down
9 changes: 3 additions & 6 deletions tests/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,9 @@ def test_simulated_annealing_cost_function_matrix(
solution.optimal_solution_cost_functions_values() == {"M1_0_0*M2_0_0 + M1_0_1*M2_1_0": -4.0}
or not all_satisfy
)
else:
assert solution
else:
assert solution


def test_gas_solver_basic() -> None:
"""Test for the problem constructions"""
Expand Down Expand Up @@ -1515,7 +1516,6 @@ def test_gas_solver_basic() -> None:
assert solution



def test_qaoa_solver_qubo_basic() -> None:
"""Test for the problem constructions"""
variables = Variables()
Expand Down Expand Up @@ -1574,6 +1574,3 @@ def test_vqe_solver_qubo_basic() -> None:
assert all_satisfy
else:
assert solution



0 comments on commit a29d931

Please sign in to comment.