Skip to content

Commit

Permalink
Mark two more tests as new opmath only (#5862)
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai committed Jun 17, 2024
1 parent 2da3b69 commit 1bf7682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/devices/default_tensor/test_scalability.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def circuit():

_ = qml.QNode(circuit, dev)()

@pytest.mark.usefixtures("new_opmath_only")
def test_hamiltonian(self, method):
"""Test that the device can compute the expval of a multi-qubit Hamiltonian."""

Expand Down
1 change: 1 addition & 0 deletions tests/ops/op_math/test_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def test_eigendecompostion(self):
assert np.allclose(eig_vals, true_eigvals)
assert np.allclose(eig_vecs, true_eigvecs)

@pytest.mark.usefixtures("new_opmath_only")
def test_eigendecomposition_repeat_operations(self):
"""Test that the eigendecomposition works with a repeated operation."""
op1 = qml.X(0) + qml.X(0) + qml.X(0)
Expand Down

0 comments on commit 1bf7682

Please sign in to comment.