class_docstr: Test for the properties
class_docstr_tok: ["Test","for","the","properties"]
docstr: Test that eigenvalues of the measurement process
  are correct if the internal observable is a
  MeasurementValue.
docstr_tok: ["Test","that","eigenvalues","of","the","measurement","process","are","correct","if","the","internal","observable","is","a","MeasurementValue","."]
code: def test_measurement_value_eigvals(self):
      """Test that eigenvalues of the measurement process
      are correct if the internal observable is a
      MeasurementValue."""
      m0 = qml.measure(0)
      m0.measurements[0].id = "abc"
      m1 = qml.measure(1)
      m1.measurements[0].id = "def"
  
      mp1 = qml.sample(op=[m0, m1])
      assert np.all(mp1.eigvals() == [0, 1, 2, 3])
  
      mp2 = qml.sample(op=3 * m0 - m1 / 2)
      assert np.all(mp2.eigvals() == [0, -0.5, 3, 2.5])
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import ClassicalShadowMP, Counts, CountsMP, Expectation, ExpectationMP, MeasurementProcess, MeasurementTransform, MeasurementValue, MidMeasure, MidMeasureMP, MutualInfoMP, PurityMP, Probability, ProbabilityMP, Sample, SampleMeasurement, SampleMP, ShadowExpvalMP, Shots, State, StateMeasurement, StateMP, Variance, VarianceMP, VnEntropyMP, expval, sample, var
  from pennylane.operation import DecompositionUndefinedError
  from pennylane.queuing import AnnotatedQueue
  from pennylane.wires import Wires
label_desc: Use image node_id 3 for calling the TestProperties obj's underlying member method code with example usage: obj.test_measurement_value_eigvals() without return types