Skip to content

Commit

Permalink
now runs on all available simulators
Browse files Browse the repository at this point in the history
  • Loading branch information
rsln-s committed Sep 9, 2023
1 parent 6357f42 commit d3f3524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_maxcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


qiskit_backend = AerSimulator(method="statevector")
SIMULATORS = get_available_simulators("x")
SIMULATORS = get_available_simulators("x") + get_available_simulators("xyring") + get_available_simulators("xycomplete")


def test_maxcut_obj():
Expand Down Expand Up @@ -95,7 +95,7 @@ def test_maxcut_precompute(simclass):
terms = get_maxcut_terms(G)
sim = simclass(N, terms=terms)
cuts = sim.get_cost_diagonal()
assert np.allclose(precomputed_cuts, cuts, atol=1e-7)
assert np.allclose(precomputed_cuts, cuts, atol=1e-6)


def test_sk_ini_maxcut():
Expand Down

0 comments on commit d3f3524

Please sign in to comment.