class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Test that an error is raised when an unsupported type is passed
docstr_tok: ["Test","that","an","error","is","raised","when","an","unsupported","type","is","passed"]
code: def test_invalid_type(self, state):
      """Test that an error is raised when an unsupported type is passed"""
      with pytest.raises(
          ValueError, match="Density matrix must be of shape"
      ):
          qml.math.mutual_info(
              state, indices0=[0], indices1=[1], check_state=True
          )
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestMutualInformation obj's underlying member method code with example usage: obj.test_invalid_type(state) without return types