class_docstr: Tests for the sign_expand transform
class_docstr_tok: ["Tests","for","the","sign_expand","transform"]
docstr: Test if hamiltonians that are not jointly measurable throw an error
docstr_tok: ["Test","if","hamiltonians","that","are","not","jointly","measurable","throw","an","error"]
code: def test_hamiltonian_error_not_jointly_measurable(self):
      """Test if hamiltonians that are not jointly measurable throw an error"""
  
      with pennylane.tape.QuantumTape() as tape:
          H_mult = (
              1.5 * qml.PauliZ(0)
              + 2 * qml.PauliZ(1)
              + 0.3 * qml.PauliX(0)
          )
          qml.expval(H_mult)
  
      with pytest.raises(ValueError, match=r"Passed hamiltonian"):
          qml.transforms.sign_expand(tape)
  
file_path: pennylane/tests/transforms/test_sign_expand.py
imports: import functools
  import pytest
  import numpy
  import pennylane
  import pennylane.tape
label_desc: Use image node_id 7 for calling the TestSignExpand obj's underlying member method code with example usage: obj.test_hamiltonian_error_not_jointly_measurable() without return types