class_docstr: Unit tests on ``qml.transforms.split_non_commuting()``
class_docstr_tok: ["Unit","tests","on","``","qml.transforms.split_non_commuting","(",")","``"]
docstr: Test that mixing different combintations of MPs initialized using obs works correctly.
docstr_tok: ["Test","that","mixing","different","combintations","of","MPs","initialized","using","obs","works","correctly","."]
code: def test_mixed_measurement_types(self, meas_type_1, meas_type_2):
      """Test that mixing different combintations of MPs initialized using obs works correctly."""
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.Hadamard(0)
          qml.Hadamard(1)
          meas_type_1(op=qml.PauliX(0))
          meas_type_1(op=qml.PauliZ(1))
          meas_type_2(op=qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      split, _ = split_non_commuting(tape)
  
      assert len(split) == 2
      assert qml.equal(
          split[0].measurements[0], meas_type_1(op=qml.PauliX(0))
      )
      assert qml.equal(
          split[0].measurements[1], meas_type_1(op=qml.PauliZ(1))
      )
      assert qml.equal(
          split[1].measurements[0], meas_type_2(op=qml.PauliZ(0))
      )
  
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 7 for calling the TestUnittestSplitNonCommuting obj's underlying member method code with example usage: obj.test_mixed_measurement_types(meas_type_1, meas_type_2) without return types