class_docstr: Integration tests for ``qml.transforms.split_non_commuting()``
class_docstr_tok: ["Integration","tests","for","``","qml.transforms.split_non_commuting","(",")","``"]
docstr: Test expval with multiple non-commuting operators and probs with non-commuting wires as a
  transform program on the qnode.
docstr_tok: ["Test","expval","with","multiple","non-commuting","operators","and","probs","with","non-commuting","wires","as","a","transform","program","on","the","qnode","."]
code: def test_expval_probs_non_commuting_observables_qnode(self):
      """Test expval with multiple non-commuting operators and probs with non-commuting wires as a
      transform program on the qnode."""
      dev = qml.device("default.qubit", wires=6)
  
      @qml.qnode(dev)
      def circuit():
          qml.Hadamard(1)
          qml.Hadamard(0)
          qml.PauliZ(0)
          qml.Hadamard(3)
          qml.Hadamard(5)
          qml.T(5)
          return (
              qml.probs(wires=[0, 1]),
              qml.probs(wires=[1]),
              qml.expval(qml.PauliZ(0)),
              qml.expval(qml.PauliX(1) @ qml.PauliX(4)),
              qml.expval(qml.PauliX(3)),
              qml.expval(qml.PauliY(5)),
          )
  
      res = split_non_commuting(circuit)()
  
      assert isinstance(res, tuple)
      assert len(res) == 6
      assert all(isinstance(r, np.ndarray) for r in res)
  
      res_probs = qml.math.concatenate(res[:2], axis=0)
      res_expval = qml.math.stack(res[2:])
  
      assert all(
          np.isclose(
              res_probs, np.array([0.25, 0.25, 0.25, 0.25, 0.5, 0.5])
          )
      )
  
      assert all(
          np.isclose(
              res_expval, np.array([0.0, 0.0, 1.0, 1 / np.sqrt(2)])
          )
      )
  
imports: import itertools
  import pytest
  import numpy
  import pennylane
  import pennylane.numpy
  from pennylane.transforms import split_non_commuting
label_desc: Use image node_id 3 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_expval_probs_non_commuting_observables_qnode() and returns: qml,  qml,  qml,  qml,  qml,  qml