class_docstr: Tests for the probs function
class_docstr_tok: ["Tests","for","the","probs","function"]
docstr: Test that we can cannot give simultaneously wires and a hermitian.
docstr_tok: ["Test","that","we","can","can","not","give","simultaneously","wires","and","a","hermitian","."]
code: def test_prob_wires_and_hermitian(self, hermitian):
      """Test that we can cannot give simultaneously wires and a hermitian."""
  
      dev = qml.device("default.qubit.legacy", wires=2)
  
      @qml.qnode(dev)
      def circuit():
          qml.PauliX(wires=0)
          return qml.probs(
              op=qml.Hermitian(hermitian, wires=0), wires=1
          )
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Cannot specify the wires to probs if an observable is "
          "provided. The wires for probs will be determined directly from the observable.",
      ):
          circuit()
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ProbabilityMP, Shots
  from pennylane.devices.qubit.measure import flatten_state
label_desc: Use image node_id 22 for calling the TestProbs obj's underlying member method code with example usage: obj.test_prob_wires_and_hermitian(hermitian) and returns: qml