class_docstr: Integration tests for the vn_entropy measurement function.
docstr: Test an error is raised when using shot vectors with vn_entropy.
docstr_tok: ["Test","an","error","is","raised","when","using","shot","vectors","with","vn_entropy","."]
code: def test_shot_vec_error(self):
      """Test an error is raised when using shot vectors with vn_entropy."""
      dev = qml.device(
          "default.qubit.legacy", wires=2, shots=[1, 10, 10, 1000]
      )
  
      @qml.qnode(device=dev)
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.vn_entropy(wires=[0])
  
      with pytest.raises(
          NotImplementedError,
          match="Von Neumann entropy is not supported with shot vectors",
      ):
          circuit(0.5)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.workflow import INTERFACE_MAP
  from pennylane.measurements import Shots
  from pennylane.measurements.vn_entropy import VnEntropyMP
label_desc: Use image node_id 1 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_shot_vec_error() and returns: qml