diff --git a/frontend/test/pytest/test_adjoint.py b/frontend/test/pytest/test_adjoint.py index 35069a6ebf..c7d5f42049 100644 --- a/frontend/test/pytest/test_adjoint.py +++ b/frontend/test/pytest/test_adjoint.py @@ -745,7 +745,7 @@ def test_hamiltonian_base(self): assert op.base is base assert op.hyperparameters["base"] is base - assert op.name == "Adjoint(LinearCombination)" + assert op.name == "Adjoint(Sum)" assert op.num_params == 2 assert qml.math.allclose(op.parameters, [2.0, 1.0]) diff --git a/frontend/test/pytest/test_measurements_shots_results.py b/frontend/test/pytest/test_measurements_shots_results.py index 6d4c678a79..241242c1fd 100644 --- a/frontend/test/pytest/test_measurements_shots_results.py +++ b/frontend/test/pytest/test_measurements_shots_results.py @@ -438,7 +438,7 @@ def circuit(theta, phi, varphi): # TODO: only raises with the new API, Kokkos should also raise an error. with pytest.raises( TypeError, - match=r"VarianceMP(Sum) cannot be computed with samples", + match=r"VarianceMP\(Sum\) cannot be computed with samples.", ): circuit(0.432, 0.123, -0.543)