diff --git a/tests/test_operation.py b/tests/test_operation.py index b473f4c5b39..f0fa8ecf334 100644 --- a/tests/test_operation.py +++ b/tests/test_operation.py @@ -46,6 +46,18 @@ I_broadcasted = I[pnp.newaxis] +def test_that_opmath_is_enabled(): + """Confirm that the tests are running by default with new_opmath enabled""" + if not qml.operation.active_new_opmath(): + raise RuntimeError + + +def test_that_opmath_is_disabled(): + """Confirm that the tests are running by default with new_opmath disabled""" + if qml.operation.active_new_opmath(): + raise RuntimeError + + class TestOperatorConstruction: """Test custom operators' construction."""