@@ -132,12 +132,12 @@ def test_accepted_observables(self):
132
132
@pytest .mark .parametrize (
133
133
"obs, expected" ,
134
134
[
135
- (qml .operation . Tensor (qml .Projector ([0 ], 0 ), qml .PauliZ (1 )), False ),
135
+ (qml .prod (qml .Projector ([0 ], 0 ), qml .PauliZ (1 )), False ),
136
136
(qml .prod (qml .Projector ([0 ], 0 ), qml .PauliZ (1 )), False ),
137
137
(qml .s_prod (1.5 , qml .Projector ([0 ], 0 )), False ),
138
138
(qml .sum (qml .Projector ([0 ], 0 ), qml .Hadamard (1 )), False ),
139
139
(qml .sum (qml .prod (qml .Projector ([0 ], 0 ), qml .Y (1 )), qml .PauliX (1 )), False ),
140
- (qml .operation . Tensor (qml .Y (0 ), qml .Z (1 )), True ),
140
+ (qml .prod (qml .Y (0 ), qml .Z (1 )), True ),
141
141
(qml .prod (qml .Y (0 ), qml .PauliZ (1 )), True ),
142
142
(qml .s_prod (1.5 , qml .Y (1 )), True ),
143
143
(qml .sum (qml .Y (1 ), qml .Hadamard (1 )), True ),
@@ -429,7 +429,6 @@ def test_preprocess_state_prep_middle_op_decomposition(self, op, decomp_depth):
429
429
)
430
430
assert qml .equal (new_tape , expected_tape )
431
431
432
- @pytest .mark .usefixtures ("use_legacy_and_new_opmath" )
433
432
@pytest .mark .parametrize ("theta, phi" , list (zip (THETA , PHI )))
434
433
@pytest .mark .parametrize (
435
434
"mp" ,
@@ -443,7 +442,7 @@ def test_preprocess_state_prep_middle_op_decomposition(self, op, decomp_depth):
443
442
qml .expval (qml .Hamiltonian ([- 0.5 , 1.5 ], [qml .Y (1 ), qml .X (1 )])),
444
443
qml .expval (2.5 * qml .Z (0 )),
445
444
qml .expval (qml .Z (0 ) @ qml .X (1 )),
446
- qml .expval (qml .operation . Tensor (qml .Z (0 ), qml .X (1 ))),
445
+ qml .expval (qml .prod (qml .Z (0 ), qml .X (1 ))),
447
446
qml .expval (
448
447
qml .SparseHamiltonian (
449
448
qml .Hamiltonian ([- 1.0 , 1.5 ], [qml .Z (1 ), qml .X (1 )]).sparse_matrix (
@@ -483,7 +482,6 @@ def test_execute_single_measurement(self, theta, phi, mp, dev):
483
482
expected = self .calculate_reference (qs )[0 ]
484
483
assert np .allclose (res , expected )
485
484
486
- @pytest .mark .usefixtures ("use_legacy_and_new_opmath" )
487
485
@pytest .mark .parametrize ("theta, phi" , list (zip (THETA , PHI )))
488
486
@pytest .mark .parametrize (
489
487
"mp1" ,
@@ -652,7 +650,6 @@ def test_supports_derivatives(self, dev, config, tape, expected, batch_obs):
652
650
"""Test that supports_derivative returns the correct boolean value."""
653
651
assert dev .supports_derivatives (config , tape ) == expected
654
652
655
- @pytest .mark .usefixtures ("use_legacy_and_new_opmath" )
656
653
@pytest .mark .parametrize ("theta, phi" , list (zip (THETA , PHI )))
657
654
@pytest .mark .parametrize (
658
655
"obs" ,
@@ -1038,7 +1035,6 @@ def test_supports_vjp(self, dev, config, tape, expected, batch_obs):
1038
1035
"""Test that supports_vjp returns the correct boolean value."""
1039
1036
assert dev .supports_vjp (config , tape ) == expected
1040
1037
1041
- @pytest .mark .usefixtures ("use_legacy_and_new_opmath" )
1042
1038
@pytest .mark .parametrize ("theta, phi" , list (zip (THETA , PHI )))
1043
1039
@pytest .mark .parametrize (
1044
1040
"obs" ,
0 commit comments