Skip to content

Commit

Permalink
Disable Aer plugin that causes test failures with Qiskit 1.1
Browse files Browse the repository at this point in the history
This change is a workaround until
Qiskit/qiskit-aer#2142 is released.
  • Loading branch information
wshanks committed May 21, 2024
1 parent fe4ccff commit 86445b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import testtools
import uncertainties
from qiskit.utils.deprecation import deprecate_func
import qiskit_aer.backends.aerbackend

from qiskit_experiments.framework import (
ExperimentDecoder,
Expand All @@ -33,6 +34,13 @@
from qiskit_experiments.framework.experiment_data import ExperimentStatus
from .extended_equality import is_equivalent


# Workaround until https://github.com/Qiskit/qiskit-aer/pull/2142 is released
try:
del qiskit_aer.backends.aerbackend.AerBackend.get_translation_stage_plugin
except AttributeError:
pass

# Fail tests that take longer than this
TEST_TIMEOUT = int(os.environ.get("TEST_TIMEOUT", 60))
# Use testtools by default as a (mostly) drop in replacement for
Expand Down

0 comments on commit 86445b8

Please sign in to comment.