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 the subsystems overlap
docstr_tok: ["Test","that","an","error","is","raised","when","the","subsystems","overlap"]
code: def test_subsystem_overlap_error(self, device, interface, params):
      """Test that an error is raised when the subsystems overlap"""
      dev = qml.device(device, wires=3)
  
      params = qml.math.asarray(params, like=interface)
  
      @qml.qnode(dev, interface=interface)
      def circuit(params):
          qml.RY(params[0], wires=0)
          qml.RY(params[1], wires=1)
          qml.CNOT(wires=[0, 1])
          qml.CNOT(wires=[0, 2])
          return qml.mutual_info(wires0=[0, 1], wires1=[1, 2])
  
      msg = (
          "Subsystems for computing mutual information must not overlap"
      )
      with pytest.raises(qml.QuantumFunctionError, match=msg):
          circuit(params)
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MutualInfo, Shots
  from pennylane.measurements.mutual_info import MutualInfoMP
  from pennylane.wires import Wires
label_desc: Use image node_id 15 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_subsystem_overlap_error(device, interface, params) and returns: qml