From 54dc05cac34ccea13f9931b79f76bf625d6e6454 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 27 Aug 2024 12:46:15 -0400 Subject: [PATCH] xfails --- tests/test_qiskit_device.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_qiskit_device.py b/tests/test_qiskit_device.py index fbab8f1c..66183759 100644 --- a/tests/test_qiskit_device.py +++ b/tests/test_qiskit_device.py @@ -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( @@ -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: