class_docstr: Integration tests for the vn_entropy measurement function.
class_docstr_tok: ["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_finite_shots_error(self, shots):
      """Test an error is raised when using shot vectors with vn_entropy."""
      dev = qml.device("default.qubit", wires=2, shots=shots)
  
      @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(
          qml.DeviceError,
          match="not accepted with finite shots on default.qubit",
      ):
          circuit(0.5)
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import VnEntropy, Shots
  from pennylane.measurements.vn_entropy import VnEntropyMP
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_finite_shots_error(shots) and returns: qml