class_docstr: Tests for the probs function
class_docstr_tok: ["Tests","for","the","probs","function"]
docstr: Tests that non-commuting probs with expval does not raise an error.
code: def test_non_commuting_probs_does_not_raises_error(self):
      """Tests that non-commuting probs with expval does not raise an error."""
      dev = qml.device("default.qubit", wires=5)
  
      @qml.qnode(dev)
      def circuit(x, y):
          qml.RX(x, wires=[0])
          qml.RY(y, wires=[1])
          qml.CNOT(wires=[0, 1])
          return qml.expval(qml.PauliX(1)), qml.probs(wires=[0, 1])
  
      res = circuit(1, 2)
      assert isinstance(res, tuple) and len(res) == 2
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import MeasurementProcess, Probability, ProbabilityMP, Shots
  from pennylane.queuing import AnnotatedQueue
label_desc: Use image node_id 35 for calling the TestProbs obj's underlying member method code with example usage: obj.test_non_commuting_probs_does_not_raises_error() and returns: qml,  qml