Skip to content

Commit

Permalink
Revert "add process state test"
Browse files Browse the repository at this point in the history
This reverts commit 0ddc80f.
  • Loading branch information
andrijapau committed Feb 10, 2025
1 parent 0ddc80f commit a412b99
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/measurements/test_expval.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ def test_process_density_matrix_dtype(self, coeffs, state, expected):
result = mp.process_density_matrix(state, wire_order=qml.wires.Wires([0]))
assert qml.math.allclose(result, expected * coeffs)

@pytest.mark.parametrize("coeffs", [1, 1j, 1 + 1j])
def test_process_state_dtype(self, coeffs):
"""Test that the return type of the process_state function is correct"""
res = qml.measurements.ExpectationMP(obs=coeffs * qml.Z(0)).process_state(
state=[1, 0], wire_order=qml.wires.Wires(0)
)
assert np.allclose(res, coeffs)

@pytest.mark.parametrize("shots", [None, 1111, [1111, 1111]])
def test_value(self, tol, shots, seed):
"""Test that the expval interface works"""
Expand Down

0 comments on commit a412b99

Please sign in to comment.