class_docstr: Test for the properties
class_docstr_tok: ["Test","for","the","properties"]
docstr: Test the string representation of a MeasurementProcess.
docstr_tok: ["Test","the","string","representation","of","a","MeasurementProcess","."]
code: def test_repr(self):
      """Test the string representation of a MeasurementProcess."""
      m = qml.expval(op=qml.PauliZ(wires="a") @ qml.PauliZ(wires="b"))
      expected = "expval(PauliZ(wires=['a']) @ PauliZ(wires=['b']))"
      assert str(m) == expected
  
      m = qml.probs(op=qml.PauliZ(wires="a"))
      expected = "probs(PauliZ(wires=['a']))"
      assert str(m) == expected
  
      m = ProbabilityMP(eigvals=(1, 0), wires=qml.wires.Wires(0))
      assert repr(m) == "probs(eigvals=[1 0], wires=[0])"
  
      m0 = MeasurementValue(
          [MidMeasureMP(Wires(0), id="0")], lambda v: v
      )
      m1 = MeasurementValue(
          [MidMeasureMP(Wires(1), id="1")], lambda v: v
      )
      m = ProbabilityMP(obs=[m0, m1])
      expected = "probs([MeasurementValue(wires=[0]), MeasurementValue(wires=[1])])"
      assert repr(m) == expected
  
      m = ProbabilityMP(obs=m0 * m1)
      expected = "probs(MeasurementValue(wires=[0, 1]))"
  
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 7 for calling the TestProperties obj's underlying member method code with example usage: obj.test_repr() without return types