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: