class_docstr: Unit tests for classical_shadow measurement
class_docstr_tok: ["Unit","tests","for","classical_shadow","measurement"]
docstr: Test that an error is raised when classical shadows is returned
  with other measurement processes
docstr_tok: ["Test","that","an","error","is","raised","when","classical","shadows","is","returned","with","other","measurement","processes"]
code: def test_multi_measurement_error(self, wires, shots):
      """Test that an error is raised when classical shadows is returned
      with other measurement processes"""
      dev = qml.device("default.qubit", wires=wires, shots=shots)
  
      @qml.qnode(dev)
      def circuit():
          qml.Hadamard(wires=0)
  
          for target in range(1, wires):
              qml.CNOT(wires=[0, target])
  
          return qml.classical_shadow(wires=range(wires)), qml.expval(
              qml.PauliZ(0)
          )
  
      res = circuit()
      assert isinstance(res, tuple) and len(res) == 2
      assert qml.math.shape(res[0]) == (2, shots, wires)
      assert qml.math.shape(res[1]) == ()
  
imports: import copy
  import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ClassicalShadowMP, Shots
  from pennylane.measurements.classical_shadow import ShadowExpvalMP
label_desc: Use image node_id 8 for calling the TestClassicalShadow obj's underlying member method code with example usage: obj.test_multi_measurement_error(wires, shots) and returns: qml,  qml