Skip to content

Commit

Permalink
Revert "Skip Aer tests that rely on Qiskit/qiskit-aer#2023"
Browse files Browse the repository at this point in the history
This reverts commit 5dbe66d.
  • Loading branch information
Cryoris committed Jan 17, 2024
1 parent f0af74c commit 23c444b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions test/python/primitives/test_backend_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ def test_layout(self, backend):
else:
self.assertEqual(value, -1)

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "qiskit-aer is required to run this test")
def test_circuit_with_measurement(self):
"""Test estimator with a dynamic circuit"""
Expand All @@ -427,7 +426,6 @@ def test_circuit_with_measurement(self):
result = estimator.run(bell, observable).result()
self.assertAlmostEqual(result.values[0], 1, places=1)

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "qiskit-aer is required to run this test")
def test_dynamic_circuit(self):
"""Test estimator with a dynamic circuit"""
Expand Down
1 change: 0 additions & 1 deletion test/python/primitives/test_backend_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def test_primitive_job_size_limit_backend_v1(self):
self.assertDictAlmostEqual(result.quasi_dists[0], {0: 1}, 0.1)
self.assertDictAlmostEqual(result.quasi_dists[1], {1: 1}, 0.1)

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "qiskit-aer is required to run this test")
def test_circuit_with_dynamic_circuit(self):
"""Test BackendSampler with QuantumCircuit with a dynamic circuit"""
Expand Down
2 changes: 0 additions & 2 deletions test/python/providers/fake_provider/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def get_test_circuit():
class FakeBackendsTest(QiskitTestCase):
"""fake backends test."""

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "qiskit-aer is required to run this test")
def test_fake_backends_get_kwargs(self):
"""Fake backends honor kwargs passed."""
Expand All @@ -50,7 +49,6 @@ def test_fake_backends_get_kwargs(self):

self.assertEqual(sum(raw_counts.values()), 1000)

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "qiskit-aer is required to run this test")
def test_fake_backend_v2_noise_model_always_present(self):
"""Test that FakeBackendV2 instances always run with noise."""
Expand Down
5 changes: 0 additions & 5 deletions test/python/providers/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def setUpClass(cls):
)
def test_circuit_on_fake_backend_v2(self, backend, optimization_level):
if not optionals.HAS_AER and backend.num_qubits > 20:
self.skipTest("Skipping until Qiskit/qiskit-aer#2023 is released.")
self.skipTest("Unable to run fake_backend %s without qiskit-aer" % backend.backend_name)
else:
print(backend.num_qubits)
job = execute(
self.circuit,
backend,
Expand All @@ -125,7 +122,6 @@ def test_circuit_on_fake_backend_v2(self, backend, optimization_level):
)
def test_circuit_on_fake_backend(self, backend, optimization_level):
if not optionals.HAS_AER and backend.configuration().num_qubits > 20:
self.skipTest("Skipping until Qiskit/qiskit-aer#2023 is released.")
self.skipTest(
"Unable to run fake_backend %s without qiskit-aer"
% backend.configuration().backend_name
Expand Down Expand Up @@ -246,7 +242,6 @@ def test_non_cx_tests(self):
backend = FakeSherbrooke()
self.assertIsInstance(backend.target.operation_from_name("ecr"), ECRGate)

@unittest.skip("Skipped until Qiskit/qiskit-aer#2023 is released.")
@unittest.skipUnless(optionals.HAS_AER, "Aer required for this test")
def test_converter_simulator(self):
class MCSXGate(ControlledGate):
Expand Down

0 comments on commit 23c444b

Please sign in to comment.