Skip to content

Commit

Permalink
xfails
Browse files Browse the repository at this point in the history
  • Loading branch information
austingmhuang committed Aug 27, 2024
1 parent 9a775f5 commit 54dc05c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_qiskit_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def test_warning_raised_for_hardware_backend_analytic_expval(self, recorder):
"device are estimates based on samples."
)

# Three warnings are being raised: one about analytic calculations and two about deprecations.
assert len(record) == 3
# Three warnings are being raised: one about analytic calculations.
assert len(record) == 1

@pytest.mark.parametrize("method", ["unitary", "statevector"])
def test_no_warning_raised_for_software_backend_analytic_expval(
Expand All @@ -194,10 +194,8 @@ def test_no_warning_raised_for_software_backend_analytic_expval(

_ = qml.device("qiskit.aer", backend="aer_simulator", method=method, wires=2, shots=None)

# These simulators are being deprecated. Warnins are raised in Qiskit 1.2
# Migrate to AerSimulator with AerSimulator(method=method) and append
# run circuits with the `save_state` instruction.
assert len(recwarn) == 2
# These simulators are being deprecated. Warnings are raised in Qiskit <1.1
assert len(recwarn) == 0


class TestAerBackendOptions:
Expand Down

0 comments on commit 54dc05c

Please sign in to comment.